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/radar.js" type="text/javascript"></script>
10
 
11
        <script>
12
            var chart;
13
 
14
            var chartData = [
15
                {
16
                    "country": "Czech Republic",
17
                    "litres": 156.9
18
                },
19
                {
20
                    "country": "Ireland",
21
                    "litres": 131.1
22
                },
23
                {
24
                    "country": "Germany",
25
                    "litres": 115.8
26
                },
27
                {
28
                    "country": "Australia",
29
                    "litres": 109.9
30
                },
31
                {
32
                    "country": "Austria",
33
                    "litres": 108.3
34
                },
35
                {
36
                    "country": "UK",
37
                    "litres": 99
38
                }
39
            ];
40
 
41
            AmCharts.ready(function () {
42
                // RADAR CHART
43
                chart = new AmCharts.AmRadarChart();
44
                chart.dataProvider = chartData;
45
                chart.categoryField = "country";
46
                chart.startDuration = 2;
47
 
48
                // VALUE AXIS
49
                var valueAxis = new AmCharts.ValueAxis();
50
                valueAxis.axisAlpha = 0.15;
51
                valueAxis.minimum = 0;
52
                valueAxis.dashLength = 3;
53
                valueAxis.axisTitleOffset = 20;
54
                valueAxis.gridCount = 5;
55
                chart.addValueAxis(valueAxis);
56
 
57
                // GRAPH
58
                var graph = new AmCharts.AmGraph();
59
                graph.valueField = "litres";
60
                graph.bullet = "round";
61
                graph.balloonText = "[[value]] litres of beer per year";
62
                chart.addGraph(graph);
63
 
64
                // WRITE
65
                chart.write("chartdiv");
66
            });
67
        </script>
68
    </head>
69
 
70
    <body>
71
        <div id="chartdiv" style="width:600px; height:400px;"></div>
72
    </body>
73
 
74
</html>