From 5431a059176d5a398ad7b635586483356ca5e0c6 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Tue, 16 Aug 2016 10:00:00 +0100 Subject: [PATCH] new graph --- app/js/mdot.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/js/mdot.js b/app/js/mdot.js index b1327a0..274941e 100644 --- a/app/js/mdot.js +++ b/app/js/mdot.js @@ -390,15 +390,14 @@ } - // GRAPH var graph = new AmCharts.AmGraph(); graph.dashLength = 3; graph.lineColor = '#00CC00'; graph.valueField = 'value'; graph.dashLength = 3; - graph.bullet = 'round'; - graph.balloonText = '[[category]]
value:[[value]]'; + /* graph.bullet = 'round';*/ + graph.balloonText = '[[category]]
' + this.titles[this.mode] + ':[[value]]'; self.chart.addGraph(graph); @@ -412,15 +411,15 @@ co2graph.lineThickness = 1; co2graph.legendValueText = '[[description]]/[[value]]'; - co2graph.bullet = 'round'; + /* co2graph.bullet = 'round'; co2graph.bulletSizeField = 'townSize'; // Indicate which field should be used for bullet size co2graph.bulletBorderColor = '#786c56'; co2graph.bulletBorderAlpha = 1; co2graph.bulletBorderThickness = 2; - co2graph.bulletColor = '#000000'; + co2graph.bulletColor = '#000000';*/ //Co2graph.labelText = "[[townName2]]"; // not all data points has townName2 specified, that's why labels are displayed only near some of the bullets. co2graph.labelPosition = 'right'; - //Co2graph.balloonText = "latitude:[[value]]"; + co2graph.balloonText = "Co2 Level:[[value]]"; co2graph.showBalloon = true; co2graph.dashLengthField = 'dashLength'; self.chart.addGraph(co2graph);