DEPRECATED: dijit.form.CheckBox::attr() is deprecated. Use get() or set() instead, called from function(){
chart = new dojox.charting.Chart2D("test");
chart.setTheme(dojox.charting.themes.CubanShirts);
if(dijit.byId("hAxis").attr("checked")){
chart.addAxis("x", {natural: true, includeZero: true, fixUpper: "minor"});
}
if(dijit.byId("vAxis").attr("checked")){
chart.addAxis("y", {vertical: true, natural: true, includeZero: true, fixUpper: "minor"});
}
chart.addPlot("default", {type: dijit.byId("plot").attr("value"), gap: 2});
if(dijit.byId("grid").attr("checked")){
chart.addPlot("grid", {type: "Grid", hMinorLines: true, vMinorLines: true});
}
for(var i = 1; i <= 5; ++i){
if(dijit.byId("s" + i).attr("checked")){
chart.addSeries("Series " + i, getData(), {stroke: {color: "black", width: 1}});
}
}
if(dijit.byId("s6").attr("checked")){
chart.addSeries("Series 6", getZeroes(), {stroke: {color: "black", width: 1}});
}
chart.render();
legend = new dojox.charting.widget.Legend({chart: chart}, "legend");
} -- will be removed in version: 2.0
Hover over HTML elements in the main page. Click to hold selection.