Subversion Repositories php-qbpwcf

Rev

Rev 23 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 liveuser 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
<html>
3
 
4
    <head>
5
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6
        <title>amCharts examples</title>
7
        <link rel="stylesheet" href="style.css" type="text/css">
8
        <script src="../amcharts/amcharts.js" type="text/javascript"></script>
9
        <script src="../amcharts/pie.js" type="text/javascript"></script>
10
 
11
        <script>
12
            var chart;
13
            var legend;
14
 
15
            var chartData = [{
16
                country: "Czech Republic",
17
                litres: 301.90
18
            }, {
19
                country: "Ireland",
20
                litres: 201.10
21
            }, {
22
                country: "Germany",
23
                litres: 165.80
24
            }, {
25
                country: "Australia",
26
                litres: 139.90
27
            }, {
28
                country: "Austria",
29
                litres: 128.30
30
            }, {
31
                country: "UK",
32
                litres: 99.00
33
            }, {
34
                country: "Belgium",
35
                litres: 60.00
36
            }];
37
 
38
            AmCharts.ready(function () {
39
                // PIE CHART
40
                chart = new AmCharts.AmPieChart();
41
                chart.dataProvider = chartData;
42
                chart.titleField = "country";
43
                chart.valueField = "litres";
44
                chart.outlineColor = "#FFFFFF";
45
                chart.outlineAlpha = 0.8;
46
                chart.outlineThickness = 2;
47
 
48
                // WRITE
49
                chart.write("chartdiv");
50
            });
51
        </script>
52
    </head>
53
 
54
    <body>
55
        <div id="chartdiv" style="width: 100%; height: 400px;"></div>
56
    </body>
57
 
58
</html>