From 327618a86488cb506a7a6ed005ee7d83f3392527 Mon Sep 17 00:00:00 2001 From: Fabian Eichhorner Date: Tue, 11 Dec 2018 16:33:58 +0100 Subject: [PATCH] updated pdf design with value --- service-reporting/Utility/TemplateGenerator.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/service-reporting/Utility/TemplateGenerator.cs b/service-reporting/Utility/TemplateGenerator.cs index 5a71273..b06987b 100644 --- a/service-reporting/Utility/TemplateGenerator.cs +++ b/service-reporting/Utility/TemplateGenerator.cs @@ -32,21 +32,21 @@ namespace PdfService.Utility foreach (Term term in terms) { string color = ""; - if(term.Sentiment < 0.33) + if(term.Sentiment < 0.40) color = "is-danger"; - else if(term.Sentiment < 0.66) + else if(term.Sentiment < 0.60) color = "is-warning"; else color = "is-success"; sb.AppendFormat(@"
-

{0}

+

{0} (value: {3})

Sentiment Analysis Result:
{1}%
-
", term.Name, System.Math.Ceiling(term.Sentiment*100), color); + ", term.Name, System.Math.Ceiling(term.Sentiment*100), color, term.Sentiment); } sb.Append(@" -- 2.43.0