| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
<![if gte IE 9]> |
| 13 |
<!DOCTYPE HTML> |
| 14 |
<html lang="en"> |
| 15 |
<head> |
| 16 |
<![endif]> |
| 17 |
<script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, isDebug: true"></script> |
| 18 |
<script type="text/javascript"> |
| 19 |
require(["dojo/ready", "dojox/charting/Chart", "dojox/charting/axis2d/Default", |
| 20 |
"dojox/charting/plot2d/Markers", "dojox/charting/themes/PlotKit/blue"], function(ready, Chart, Default, Markers, |
| 21 |
blue){ |
| 22 |
ready(function(){ |
| 23 |
var chart = new Chart("chartDiv"). |
| 24 |
setTheme(blue). |
| 25 |
addAxis("x", {fixLower: "major", fixUpper: "major", natural: true, includeZero: true, |
| 26 |
majorTickStep: 0.5, minorTickStep: 0.1, dropLabels: true }). |
| 27 |
addAxis("y", {vertical: true, fixLower: "major", fixUpper: "major", natural: true, includeZero: true, |
| 28 |
labels: [{ value: 0, text: "0" }, { value: 1, text: "long label1" }, { value: 2, text: "long label2" }, |
| 29 |
{ value: 3, text: "long label3" }, { value: 4, text: "4" } ] |
| 30 |
}). |
| 31 |
addPlot("default", {type: Markers}). |
| 32 |
addSeries("Series A", [{x: 1, y: 1}, {x: 2, y: 2}, {x: 3, y: 1}]). |
| 33 |
addSeries("Series B", [{x: 5, y: 2}, {x: 6, y: 3}, {x: 7, y: 2}]). |
| 34 |
addSeries("Series C", [{x: 9, y: 3}, {x: 10, y: 4}, {x: 11, y: 3}]). |
| 35 |
render(); |
| 36 |
}); |
| 37 |
}); |
| 38 |
</script> |
| 39 |
</head> |
| 40 |
<body> |
| 41 |
<div id="chartDiv" style="width: 400px; height: 250px;"></div> |
| 42 |
</body> |
| 43 |
</html> |