1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>Highcharts Example</title>
- <script type="text/javascript" src="http://cdn.hcharts.cn/jquery/jquery-1.8.3.min.js"></script>
- <style type="text/css">
- ${demo.css}
- </style>
- <script type="text/javascript">
- $(function () {
- $('#container').highcharts({
- chart: {
- polar: true,
- type: 'line'
- },
- title: {
- text: 'Budget vs spending',
- x: -80
- },
- pane: {
- size: '80%'
- },
- xAxis: {
- categories: ['Sales', 'Marketing', 'Development', 'Customer Support',
- 'Information Technology', 'Administration'],
- tickmarkPlacement: 'on',
- lineWidth: 0
- },
- yAxis: {
- gridLineInterpolation: 'polygon',
- lineWidth: 0,
- min: 0
- },
- tooltip: {
- shared: true,
- pointFormat: '<span style="color:{series.color}">{series.name}: <b>${point.y:,.0f}</b><br/>'
- },
- legend: {
- align: 'right',
- verticalAlign: 'top',
- y: 70,
- layout: 'vertical'
- },
- series: [{
- name: 'Allocated Budget',
- data: [43000, 19000, 60000, 35000, 17000, 10000],
- pointPlacement: 'on'
- }, {
- name: 'Actual Spending',
- data: [50000, 39000, 42000, 31000, 26000, 14000],
- pointPlacement: 'on'
- }]
- });
- });
- </script>
- </head>
- <body>
- <script src="http://cdn.hcharts.cn/highcharts/highcharts.js"></script>
- <script src="http://cdn.hcharts.cn/highcharts/highcharts-more.js"></script>
- <script src="http://cdn.hcharts.cn/highcharts/modules/exporting.js"></script>
- <div id="container" style="min-width: 400px; max-width: 600px; height: 400px; margin: 0 auto"></div>
- </body>
- </html>
|