diff --git a/index.html b/index.html index 1cdc7a6..5bbe281 100644 --- a/index.html +++ b/index.html @@ -39,33 +39,50 @@ }, "mouseWheelZoomEnabled": true, "legend": { + "valueText": "[[value]]℃", "position": "left" }, "graphs": [ - {"type":"line", "valueField": "temp-1", "title": "1" }, - {"type":"line", "valueField": "temp-2", "title": "2" }, - {"type":"line", "valueField": "temp-4", "title": "4" }, - {"type":"line", "valueField": "temp-8", "title": "8 outside" }, - {"type":"line", "valueField": "temp-11", "title": "11" }, - {"type":"line", "valueField": "temp-12", "title": "12" }, - {"type":"line", "valueField": "temp-13", "title": "13" }, - {"type":"line", "valueField": "temp-14", "title": "14" }, - {"type":"line", "valueField": "temp-15", "title": "15" }, - {"type":"line", "valueField": "temp-16", "title": "16" }, - {"type":"line", "valueField": "temp-17", "title": "17" }, - {"type":"line", "valueField": "temp-18", "title": "18" }, - {"type":"line", "valueField": "temp-19", "title": "19" }, + {"type":"line", "valueField": "temp-1", "title": "01", + "balloonText": "01: [[value]]℃", }, + {"type":"line", "valueField": "temp-2", "title": "02", + "balloonText": "02: [[value]]℃", }, + {"type":"line", "valueField": "temp-4", "title": "04", + "balloonText": "03: [[value]]℃", }, + {"type":"line", "valueField": "temp-8", "title": "8 outside", + "balloonText": "08 out: [[value]]℃", }, + {"type":"line", "valueField": "temp-11", "title": "11", + "balloonText": "11: [[value]]℃", }, + {"type":"line", "valueField": "temp-12", "title": "12", + "balloonText": "12: [[value]]℃", }, + {"type":"line", "valueField": "temp-13", "title": "13", + "balloonText": "13: [[value]]℃", }, + {"type":"line", "valueField": "temp-14", "title": "14", + "balloonText": "14: [[value]]℃", }, + {"type":"line", "valueField": "temp-15", "title": "15", + "balloonText": "15: [[value]]℃", }, + {"type":"line", "valueField": "temp-16", "title": "16", + "balloonText": "16: [[value]]℃", }, + {"type":"line", "valueField": "temp-17", "title": "17", + "balloonText": "17: [[value]]℃", }, + {"type":"line", "valueField": "temp-18", "title": "18", + "balloonText": "18: [[value]]℃", }, + {"type":"line", "valueField": "temp-19", "title": "19", + "balloonText": "19: [[value]]℃", }, {"type":"line", "valueField": "temp-20", + "balloonText": "20 out: [[value]]℃", "title": "20 outside", "id": "tempscale" }, ] }); - var amchart= AmCharts.makeChart("humiddiv", { + + var humidchart = AmCharts.makeChart("humiddiv", { "type": "serial", "pathToImages": "../smart/images/", "dataProvider": data, "categoryField": "datetime", "chartCursor": { "cursorPosition": "mouse", + "valueLineEnabled": true, "categoryBalloonDateFormat": "MMM DD, YYYY JJ:NN" }, "categoryAxis": { @@ -74,23 +91,38 @@ }, "mouseWheelZoomEnabled": true, "legend": { + "valueText": "[[value]]%", "position": "left" }, "graphs": [ - {"type":"line", "valueField": "humid-1", "title": "1" }, - {"type":"line", "valueField": "humid-2", "title": "2" }, - {"type":"line", "valueField": "humid-4", "title": "4" }, - {"type":"line", "valueField": "humid-8", "title": "8 outside" }, - {"type":"line", "valueField": "humid-11", "title": "11" }, - {"type":"line", "valueField": "humid-12", "title": "12" }, - {"type":"line", "valueField": "humid-13", "title": "13" }, - {"type":"line", "valueField": "humid-14", "title": "14" }, - {"type":"line", "valueField": "humid-15", "title": "15" }, - {"type":"line", "valueField": "humid-16", "title": "16" }, - {"type":"line", "valueField": "humid-17", "title": "17" }, - {"type":"line", "valueField": "humid-18", "title": "18" }, - {"type":"line", "valueField": "humid-19", "title": "19" }, + {"type":"line", "valueField": "humid-1", "title": "01", + "balloonText": "01: [[value]]%"}, + {"type":"line", "valueField": "humid-2", "title": "02", + "balloonText": "02: [[value]]%"}, + {"type":"line", "valueField": "humid-4", "title": "04", + "balloonText": "04: [[value]]%"}, + {"type":"line", "valueField": "humid-8", "title": "08 outside", + "balloonText": "08 out : [[value]]%"}, + {"type":"line", "valueField": "humid-11", "title": "11", + "balloonText": "11: [[value]]%"}, + {"type":"line", "valueField": "humid-12", "title": "12", + "balloonText": "12: [[value]]%"}, + {"type":"line", "valueField": "humid-13", "title": "13", + "balloonText": "13: [[value]]%"}, + {"type":"line", "valueField": "humid-14", "title": "14", + "balloonText": "14: [[value]]%"}, + {"type":"line", "valueField": "humid-15", "title": "15", + "balloonText": "15: [[value]]%"}, + {"type":"line", "valueField": "humid-16", "title": "16", + "balloonText": "16: [[value]]%"}, + {"type":"line", "valueField": "humid-17", "title": "17", + "balloonText": "17: [[value]]%"}, + {"type":"line", "valueField": "humid-18", "title": "18", + "balloonText": "18: [[value]]%"}, + {"type":"line", "valueField": "humid-19", "title": "19", + "balloonText": "19: [[value]]%"}, {"type":"line", "valueField": "humid-20", + "balloonText": "20 out: [[value]]%", "title": "20 outside", "id": "humidscale" }, ]