source: code/Website/data-files/4.html@ 7849

Last change on this file since 7849 was 7849, checked in by dennisw, 15 years ago
File size: 1.9 KB
Line 
1<html><head>
2<meta http-equiv="content-type" content="text/html; charset=UTF-8">
3
4</head>
5<body>
6
7<script type="text/javascript" src="../js/swfobject.js"></script>
8
9<div id="my_chart"></div>
10
11<script type="text/javascript">
12var so = new SWFObject("../actionscript/open-flash-chart.swf", "ofc", "300", "200", "9", "#FFFFFF");
13//so.addVariable("data", "../data-files/data-20.txt");
14
15so.addVariable("variables","true");
16
17
18so.addVariable("pie", "60,#9933CC,#000000");
19so.addVariable("values", "3,2,1,1,1,1,0.2");
20so.addVariable("colours", "#d01f3c,#356aa0,#C79810");
21so.addVariable("links", "javascript:alert('Jan 3'),javascript:alert('äž­æ–‡ 2'),javascript:alert('March 1'),javascript:alert('April 1'),javascript:alert('May 1'),javascript:alert('June 1'),javascript:alert('July 0.2')");
22so.addVariable("pie_labels", "January,äž­æ–‡,March,April,May,June,July");
23so.addVariable("tool_tip", "äž­æ–‡<br>#x_label#<br>Value: #val#");
24
25
26so.addParam("allowScriptAccess", "always" );//"sameDomain");
27so.write("my_chart");
28</script>
29
30<hr>
31
32<div id="my_chart_2"></div>
33
34<script type="text/javascript">
35var so = new SWFObject("../actionscript/open-flash-chart.swf", "ofc", "200", "300", "9", "#FFFFFF");
36//so.addVariable("data", "../data-files/data-20.txt");
37
38so.addVariable("variables","true");
39
40
41so.addVariable("pie", "60,#9933CC,#000000");
42so.addVariable("values", "3,2,1,1,1,1,0.2");
43so.addVariable("colours", "#d01f3c,#356aa0,#C79810");
44so.addVariable("links", "javascript:alert('Jan 3'),javascript:alert('äž­æ–‡ 2'),javascript:alert('March 1'),javascript:alert('April 1'),javascript:alert('May 1'),javascript:alert('June 1'),javascript:alert('July 0.2')");
45so.addVariable("pie_labels", "January,äž­æ–‡,March,April,May,June,July");
46so.addVariable("tool_tip", "äž­æ–‡<br>#x_label#<br>Value: #val#");
47
48
49so.addParam("allowScriptAccess", "always" );//"sameDomain");
50so.write("my_chart_2");
51</script>
52
53</body>
54</html>
55
Note: See TracBrowser for help on using the repository browser.