initially import ZendFramework-1.9.5 into repository
[cacert-mgr.git] / external / ZendFramework-1.9.5 / externals / dojo / demos / fonts / src / charts.js
1 dojo.provide("demos.fonts.src.charts");
2 dojo.require("demos.fonts.src.pie");
3
4 function init(){
5 var font = dojox.gfx.getVectorFont("resources/eurostyle.svg");
6
7 var set1 = [
8 { label: "Demos", value: 33382400 },
9 { label: "Dojo", value: 7602176 },
10 { label: "Dijit", value: 16642048 },
11 { label: "DojoX", value: 59453440 },
12 { label: "Util", value: 50647040 }
13 ];
14 var set2 = [
15 { label: "Bill Keese", value: 983 },
16 { label: "Adam Peller", value: 963 },
17 { label: "Alex Russell", value: 753 },
18 { label: "Pete Higgins", value: 572 },
19 { label: "Doug Hays", value: 430 },
20 { label: "Eugene Lazutkin", value: 395 },
21 { label: "James Burke", value: 311 },
22 { label: "Neil Roberts", value: 284 }
23 ];
24 var set3 = [
25 { label: "JavaScript", value: 170206 },
26 { label: "CSS", value: 18939 },
27 { label: "HTML", value: 41911 },
28 { label: "PHP", value: 12127 }
29 ];
30
31 // create the charts
32 var pie1 = new demos.fonts.src.pie(dojo.byId("pie1"), font, set1);
33 pie1.draw();
34
35 var pie2 = new demos.fonts.src.pie(dojo.byId("pie2"), font, set2, {
36 fill: "#aeb31d",
37 main: "#636608",
38 rotation: 37.5
39 });
40 pie2.draw();
41
42 var pie3 = new demos.fonts.src.pie(dojo.byId("pie3"), font, set3, {
43 fill: "#ffee00",
44 main: "#b1e07b",
45 stroke: "#4f6e2c",
46 rotation: 180
47 });
48 pie3.draw();
49 }
50
51 dojo.addOnLoad(init);