Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
776 lars 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
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
7
        <title>amCharts Data Loader Example</title>
8
        <script src="http://www.amcharts.com/lib/3/amcharts.js"></script>
9
        <script src="http://www.amcharts.com/lib/3/gauge.js"></script>
10
        <script src="../dataloader.min.js"></script>
11
        <style>
12
            body,
13
            html {
14
                font-family: Verdana;
15
                font-size: 12px;
16
            }
17
 
18
            #chartdiv {
19
                width: 100%;
20
                height: 500px;
21
            }
22
        </style>
23
        <script>
24
            var chart = AmCharts.makeChart("chartdiv",
25
            {
26
                "type": "gauge",
27
                "startDuration": 0.1,
28
                "dataLoader":
29
                {
30
                    "url": "data/gauge.json"
31
                },
32
                "axes": [
33
                {
34
                    "id": "axis1",
35
                    "axisAlpha": 0,
36
                    "endAngle": 360,
37
                    "endValue": 12,
38
                    "minorTickInterval": 0.2,
39
                    "showFirstLabel": false,
40
                    "startAngle": 0,
41
                    "topTextYOffset": 100,
42
                    "valueInterval": 1
43
                },
44
                {
45
                    "id": "axis2",
46
                    "axisAlpha": 0,
47
                    "endAngle": 360,
48
                    "endValue": 60,
49
                    "radius": 60,
50
                    "showFirstLabel": false,
51
                    "startAngle": 0,
52
                    "valueInterval": 5,
53
                    "labelFrequency": 0,
54
                    "tickLength": 10
55
                }]
56
            });
57
        </script>
58
    </head>
59
 
60
    <body>
61
        <div id="chartdiv"></div>
62
    </body>
63
 
64
</html>