Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
776 lars 1
<html>
2
 
3
    <head>
4
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
7
        <!-- AmCharts includes -->
8
        <script src="http://www.amcharts.com/lib/3/amcharts.js"></script>
9
        <script src="http://www.amcharts.com/lib/3/pie.js"></script>
10
        <!-- Export plugin includes and styles -->
11
        <script src="../export.js"></script>
12
        <link type="text/css" href="../export.css" rel="stylesheet">
13
        <style>
14
            body,
15
            html {
16
                height: 100%;
17
                padding: 0;
18
                margin: 0;
19
                overflow: hidden;
20
                font-size: 11px;
21
                font-family: Verdana;
22
            }
23
 
24
            #chartdiv,
25
            #chartdiv2 {
26
                width: 50%;
27
                height: 100%;
28
                float: left;
29
                position: relative;
30
            }
31
        </style>
32
        <script type="text/javascript">
33
            var chart = AmCharts.makeChart("chartdiv",
34
            {
35
                "type": "pie",
36
                "dataProvider": [
37
                {
38
                    "country": "Czech Republic",
39
                    "litres": 156.9
40
                },
41
                {
42
                    "country": "Ireland",
43
                    "litres": 131.1
44
                },
45
                {
46
                    "country": "Germany",
47
                    "litres": 115.8
48
                },
49
                {
50
                    "country": "Australia",
51
                    "litres": 109.9
52
                },
53
                {
54
                    "country": "Austria",
55
                    "litres": 108.3
56
                },
57
                {
58
                    "country": "UK",
59
                    "litres": 65
60
                },
61
                {
62
                    "country": "Belgium",
63
                    "litres": 50
64
                }],
65
                "titleField": "country",
66
                "valueField": "litres",
67
                "balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>",
68
                "innerRadius": "30%",
69
                "labelsEnabled": false,
70
                "export":
71
                {
72
                    "enabled": true,
73
                    "libs":
74
                    {
75
                        "path": "../libs/"
76
                    }
77
                }
78
            });
79
            var chart2 = AmCharts.makeChart("chartdiv2",
80
            {
81
                "type": "pie",
82
                "pathToImages": "http://www.amcharts.com/lib/3/images/",
83
                "dataProvider": [
84
                {
85
                    "country": "Czech Republic",
86
                    "litres": 20
87
                },
88
                {
89
                    "country": "Ireland",
90
                    "litres": 30
91
                },
92
                {
93
                    "country": "Germany",
94
                    "litres": 15
95
                },
96
                {
97
                    "country": "Australia",
98
                    "litres": 10
99
                }],
100
                "titleField": "country",
101
                "valueField": "litres",
102
                "balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>",
103
                "innerRadius": "30%",
104
                "labelsEnabled": false,
105
                "export":
106
                {
107
                    "enabled": true
108
                }
109
            });
110
        </script>
111
    </head>
112
 
113
    <body>
114
        <div id="chartdiv"></div>
115
        <div id="chartdiv2"></div>
116
    </body>
117
 
118
</html>