Skip to content
Snippets Groups Projects
Commit 41170a6d authored by Lillian Gray's avatar Lillian Gray
Browse files

Fix spacing and add comments in initializeLineChart #9

parent 207fba33
Branches
No related merge requests found
......@@ -66,26 +66,27 @@ function initializeLineChart(data){
controlType: 'ChartRangeFilter',
containerId: 'control',
options: {
// Filter by the date axis.
//filter by the date axis.
filterColumnIndex: 0,
ui: {
chartType: 'LineChart',
chartOptions: {
chartArea: {width: '100%'},
colors: buildingColors.slice(1),
hAxis: {baselineColor: 'none'}},
chartArea: {width: '100%'},
colors: buildingColors.slice(1),
hAxis: {baselineColor: 'none'}
},
//1 day in milliseconds = 24 * 60 * 60 * 1000 = 86,400,000
minRangeSize: 86400000
} //close ui
}, // Initial range: (yyyy-mm-dd)
}//close ui
},//close options
state: {range: {start: startDate, end: endDate}}
})
//chart settings
chartWrapper = new google.visualization.ChartWrapper({
chartType: 'LineChart',
containerId: 'lineChart',
options: {
chartType: 'LineChart',
containerId: 'lineChart',
options: {
fontName: 'Georgia',
vAxis: {title: 'Individual Building Usage in Kilowatts'},
hAxis: {
......@@ -107,7 +108,7 @@ function initializeLineChart(data){
hours: {format: ['']}
}
}
},
},//close hAxis
colors: buildingColors,
legend: 'none'
},//close options
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment