CHAPTER 8 ■ IOT PATTERNS: WEB APPS
require([
"dojox/charting/Chart",
"dojox/charting/themes/PlotKit/orange",
"dojox/charting/plot2d/Columns",
"dojox/charting/plot2d/Markers",
"dojox/charting/axis2d/Default",
"dojo/domReady!"
], function(Chart, theme) {
var chart = new Chart("chartNode");
chart.setTheme(theme);
chart.addPlot("default", {type: "Columns",
gap: 5 , labels: true,
labelStyle: "outside"});
chart.addAxis("x", {title: "Readings (#)",
titleOrientation: "away"});
chart.addAxis("y", {title: "Temperature (F)",
titleOrientation: "axis" , min: 0,
max: 270, vertical: true, fixLower:
"major",
fixUpper: "major" });
chart.addSeries("TemperatureData",chartData);
chart.render();
});
Temperature Monitoring System – Dashboard