new graph

This commit is contained in:
Martin Donnelly 2016-08-16 10:00:00 +01:00
parent 9ce89c23f4
commit 5431a05917

View File

@ -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]]<br><b><span style=\'font-size:14px;\'>value:[[value]]</span></b>';
/* graph.bullet = 'round';*/
graph.balloonText = '[[category]]<br><b><span style=\'font-size:14px;\'>' + this.titles[this.mode] + ':[[value]]</span></b>';
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);