Initial Working Copy
This commit is contained in:
commit
0731843a82
357 changed files with 120880 additions and 0 deletions
46
html/mat-dashboard/assets/data/sensor.js
Normal file
46
html/mat-dashboard/assets/data/sensor.js
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue