diff --git a/var/www/templates/sentiment_analysis_plot_tool.html b/var/www/templates/sentiment_analysis_plot_tool.html index ed4726bd..80861dc2 100644 --- a/var/www/templates/sentiment_analysis_plot_tool.html +++ b/var/www/templates/sentiment_analysis_plot_tool.html @@ -12,11 +12,20 @@ + + + + @@ -50,7 +59,83 @@
+ +
+
+
+
+
+
+ Select options +
+
+
+ +
+ +
+
+
    +
  • +
  • +
  • +
  • +
+
+
+
+
+
    +
  • +
  • +
  • +
  • +
+
+
+
+ +
+
+ Date:10/09/15 - 15/09/16 +
+
+ +
+ +
+
+ +
+
+ +
+ +
+
+ +
+
+
+
+
+
+ Graph +
+
+
+
+ +
+
+ +
+ +
+
+ +
@@ -63,6 +148,53 @@ activePage = $('h1.page-header').attr('data-page'); $("#"+activePage).addClass("active"); + $( ".sliderRange" ).slider({ + range: true, + min: 0, + max: 500, + values: [ 192, 470 ], + slide: function( event, ui ) { + $( ".sliderRangeLabel" ).html( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] ); + } + }); + + function randNum(){ + return ((Math.floor( Math.random()* (1+40-20) ) ) + 20)* 1200; + } + + + + +var likes = [[1, 5+randNum()], [2, 10+randNum()], [3, 15+randNum()], [4, 20+randNum()],[5, 25+randNum()],[6, 30+randNum()],[7, 35+randNum()],[8, 40+randNum()],[9, 45+randNum()],[10, 50+randNum()],[11, 55+randNum()],[12, 60+randNum()],[13, 65+randNum()],[14, 70+randNum()],[15, 75+randNum()],[16, 80+randNum()],[17, 85+randNum()],[18, 90+randNum()],[19, 85+randNum()],[20, 80+randNum()],[21, 75+randNum()],[22, 80+randNum()],[23, 75+randNum()],[24, 70+randNum()],[25, 65+randNum()],[26, 75+randNum()],[27,80+randNum()],[28, 85+randNum()],[29, 90+randNum()], [30, 95+randNum()]]; + + var plot = $.plot($("#graph"), + [ { data: likes, label: "Fans"} ], { + series: { + lines: { show: true, + lineWidth: 2, + fill: true, fillColor: { colors: [ { opacity: 0.5 }, { opacity: 0.2 } ] } + }, + points: { show: true, + lineWidth: 2 + }, + shadowSize: 0 + }, + grid: { hoverable: true, + clickable: true, + tickColor: "#f9f9f9", + borderWidth: 0 + }, + colors: ["#3B5998"], + xaxis: {ticks:6, tickDecimals: 0}, + yaxis: {ticks:3, tickDecimals: 0}, + }); + + + + + + + }); diff --git a/var/www/templates/sentiment_analysis_trending.html b/var/www/templates/sentiment_analysis_trending.html index 3d34101e..1fb6c1fd 100644 --- a/var/www/templates/sentiment_analysis_trending.html +++ b/var/www/templates/sentiment_analysis_trending.html @@ -255,7 +255,7 @@ arcFillEnd: 12, arcFillTotal: 20, - inc: 1.0, + inc: -0.7, incTot: 1.0, arcBgColorLight: 200, arcBgColorSat: 50,