Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
875 lars 1
<!DOCTYPE HTML>
2
<html>
3
	<head>
4
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
		<title>Highcharts Example</title>
6
 
7
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
8
		<style type="text/css">
9
${demo.css}
10
		</style>
11
		<script type="text/javascript">
12
$(function () {
13
 
14
    $('#container').highcharts({
15
        chart: {
16
            type: 'funnel',
17
            marginRight: 100
18
        },
19
        title: {
20
            text: 'Sales funnel',
21
            x: -50
22
        },
23
        plotOptions: {
24
            series: {
25
                dataLabels: {
26
                    enabled: true,
27
                    format: '<b>{point.name}</b> ({point.y:,.0f})',
28
                    color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black',
29
                    softConnector: true
30
                },
31
                neckWidth: '30%',
32
                neckHeight: '25%'
33
 
34
                //-- Other available options
35
                // height: pixels or percent
36
                // width: pixels or percent
37
            }
38
        },
39
        legend: {
40
            enabled: false
41
        },
42
        series: [{
43
            name: 'Unique users',
44
            data: [
45
                ['Website visits',   15654],
46
                ['Downloads',       4064],
47
                ['Requested price list', 1987],
48
                ['Invoice sent',    976],
49
                ['Finalized',    846]
50
            ]
51
        }]
52
    });
53
});
54
		</script>
55
	</head>
56
	<body>
57
<script src="../../js/highcharts.js"></script>
58
<script src="../../js/modules/funnel.js"></script>
59
<script src="../../js/modules/exporting.js"></script>
60
 
61
<div id="container" style="min-width: 410px; max-width: 600px; height: 400px; margin: 0 auto"></div>
62
 
63
	</body>
64
</html>