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
                width: 100%;
26
                height: 100%;
27
            }
28
        </style>
29
        <script type="text/javascript">
30
            var chart = AmCharts.makeChart("chartdiv",
31
            {
32
                "type": "pie",
33
                "titles": [
34
                {
35
                    "text": "Visitors countries",
36
                    "size": 16
37
                }],
38
                "dataProvider": [
39
                {
40
                    "country": "United States",
41
                    "visits": 7252
42
                },
43
                {
44
                    "country": "China",
45
                    "visits": 3882
46
                },
47
                {
48
                    "country": "Japan",
49
                    "visits": 1809
50
                },
51
                {
52
                    "country": "Germany",
53
                    "visits": 1322
54
                },
55
                {
56
                    "country": "United Kingdom",
57
                    "visits": 1122
58
                },
59
                {
60
                    "country": "France",
61
                    "visits": 414
62
                },
63
                {
64
                    "country": "India",
65
                    "visits": 384
66
                },
67
                {
68
                    "country": "Spain",
69
                    "visits": 211
70
                }],
71
                "valueField": "visits",
72
                "titleField": "country",
73
                "startEffect": "elastic",
74
                "startDuration": 2,
75
                "labelRadius": 15,
76
                "innerRadius": "50%",
77
                "depth3D": 10,
78
                "balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>",
79
                "angle": 15,
80
                "legend":
81
                {
82
                    "position": "right"
83
                },
84
                "export":
85
                {
86
                    "enabled": true,
87
                    "menu": [
88
                    {
89
                        "class": "export-main",
90
                        "menu": [
91
                        {
92
                            "label": "Download",
93
                            "menu": ["PNG", "JPG", "CSV"]
94
                        },
95
                        {
96
                            "label": "Annotate",
97
                            "action": "draw",
98
                            "menu": [
99
                            {
100
                                "class": "export-drawing",
101
                                "menu": ["PNG", "JPG", "CANCEL"]
102
                            }]
103
                        }]
104
                    }]
105
                }
106
            });
107
        </script>
108
    </head>
109
 
110
    <body>
111
        <div id="chartdiv"></div>
112
    </body>
113
 
114
</html>