updated pdf design with value
authorFabian Eichhorner <fabian.eichhorner@gmail.com>
Tue, 11 Dec 2018 15:33:58 +0000 (16:33 +0100)
committerFabian Eichhorner <fabian.eichhorner@gmail.com>
Tue, 11 Dec 2018 15:33:58 +0000 (16:33 +0100)
service-reporting/Utility/TemplateGenerator.cs

index 5a7127399f646661aaf375b1ebddf2138f52dde9..b06987b9fa0918243888444d8bc9230a4dc72723 100644 (file)
@@ -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(@"<div class='container' style='margin-top:3em;'>  
-                            <p class='title is-5'>{0}</p>
+                            <p class='title is-5'>{0} (value: {3})</p>
                     <div class='content'>
                     Sentiment Analysis Result:
                         <div class='column'><progress class='progress {2}' value='{1}' max='100'>{1}%</progress></div>
                     
                     </div>
-                </div>", term.Name, System.Math.Ceiling(term.Sentiment*100), color);
+                </div>", term.Name, System.Math.Ceiling(term.Sentiment*100), color, term.Sentiment);
             }
  
             sb.Append(@" </div>