From: Fabian Eichhorner Date: Tue, 11 Dec 2018 15:33:58 +0000 (+0100) Subject: updated pdf design with value X-Git-Tag: code-freeze~22^2 X-Git-Url: https://git.somenet.org/pub/jan/aic18.git/commitdiff_plain/327618a86488cb506a7a6ed005ee7d83f3392527?hp=1304428fd9a4631512867f07e7d46366d98431ef updated pdf design with value --- 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(@"