| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
<![if !(IE 8)]> |
| 8 |
<!DOCTYPE> |
| 9 |
<html lang="en"> |
| 10 |
<head> |
| 11 |
<![endif]> |
| 12 |
<script type="text/javascript" src="../../../dojo/dojo.js" |
| 13 |
data-dojo-config="isDebug: true"></script> |
| 14 |
</head> |
| 15 |
|
| 16 |
<body> |
| 17 |
<script type="text/javascript"> |
| 18 |
dojo.require("dojox.charting.Chart2D"); |
| 19 |
dojo.require("dojox.charting.themes.PrimaryColors"); |
| 20 |
|
| 21 |
var chartData = [10000,1,10000,1,10000,1]; |
| 22 |
dojo.ready(function() { |
| 23 |
var pieChart1 = new dojox.charting.Chart2D("chartNode1"); |
| 24 |
pieChart1.setTheme(dojox.charting.themes.PrimaryColors); |
| 25 |
pieChart1.addPlot("default", { |
| 26 |
type: "Pie", |
| 27 |
omitLabels: true, |
| 28 |
radius: 100 |
| 29 |
}); |
| 30 |
pieChart1.addSeries("test",chartData); |
| 31 |
pieChart1.render(); |
| 32 |
|
| 33 |
var pieChart2 = new dojox.charting.Chart2D("chartNode2"); |
| 34 |
pieChart2.setTheme(dojox.charting.themes.PrimaryColors); |
| 35 |
pieChart2.addPlot("default", { |
| 36 |
type: "Pie", |
| 37 |
radius: 100 |
| 38 |
}); |
| 39 |
pieChart2.addSeries("test",chartData); |
| 40 |
pieChart2.render(); |
| 41 |
|
| 42 |
var pieChart3 = new dojox.charting.Chart2D("chartNode3"); |
| 43 |
pieChart3.setTheme(dojox.charting.themes.PrimaryColors); |
| 44 |
pieChart3.addPlot("default", { |
| 45 |
type: "Pie", |
| 46 |
labelStyle: "columns", |
| 47 |
omitLabels: true, |
| 48 |
radius: 100 |
| 49 |
}); |
| 50 |
pieChart3.addSeries("test",chartData); |
| 51 |
pieChart3.render(); |
| 52 |
|
| 53 |
var pieChart4 = new dojox.charting.Chart2D("chartNode4"); |
| 54 |
pieChart4.setTheme(dojox.charting.themes.PrimaryColors); |
| 55 |
pieChart4.addPlot("default", { |
| 56 |
type: "Pie", |
| 57 |
labelStyle: "columns", |
| 58 |
radius: 100 |
| 59 |
}); |
| 60 |
pieChart4.addSeries("test",chartData); |
| 61 |
pieChart4.render(); |
| 62 |
}); |
| 63 |
</script> |
| 64 |
<p>Omit true</p> |
| 65 |
<div id="chartNode1" style="width: 400px; height: 300px;"></div> |
| 66 |
<p>Omit false<p> |
| 67 |
<div id="chartNode2" style="width: 400px; height: 300px;"></div> |
| 68 |
<p>Omit true</p> |
| 69 |
<div id="chartNode3" style="width: 400px; height: 300px;"></div> |
| 70 |
<p>Omit false</p> |
| 71 |
<div id="chartNode4" style="width: 400px; height: 300px;"></div> |
| 72 |
|
| 73 |
</body> |
| 74 |
</html> |