Initial Working Copy

This commit is contained in:
bkroberts 2020-02-28 19:15:20 +10:30
commit 0731843a82
357 changed files with 120880 additions and 0 deletions

View file

@ -0,0 +1,46 @@
sensor =
{
if ($('#TemperatureChart').length != 0)
{
initDashboardPageCharts: function()
{
var dataTemperatureChart =
{
labels: ['J', 'F', 'M', 'A'],
series: [
[10, 20, 12, 60]
]
};
var optionsTemperatureChart =
{
axisX: {
showGrid: false
},
low: 0,
high: 40,
chartPadding: {
top: 0,
right: 5,
bottom: 0,
left: 0
}
};
var responsiveOptions = [
['screen and (max-width: 640px)', {
seriesBarDistance: 5,
axisX: {
labelInterpolationFnc: function(value) {
return value[0];
}
}
}]
];
var TemperatureChart = Chartist.Bar('#TemperatureChart', dataTemperatureChart, optionsTemperatureChart, responsiveOptions);
//start animation for the Temperature Chart
md.startAnimationForBarChart(TemperatureChart);
}
}
}