| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <!doctype html>
- <html lang="en">
- <head>
-
- <script type="text/javascript" src="../ThirdParty/js/jquery-1.8.3.min.js"></script>
-
- <script type="text/javascript" src="../ThirdParty/js/highcharts.js"></script>
-
- <script type="text/javascript" src="../ThirdParty/js/modules/exporting.js"></script>
-
- <script>
- $(function() {
- $('#container').highcharts({
- chart: {
- },
- title: {
- text: '洛阳市12369服务热线通话时长统计'
- },
- xAxis: {
- categories: ['刘一', '陈二', '张三', '李四', '王五']
- },
- yAxis: [{
- title: {
- text: '通话时长(s)'
- },
- },
- {
- title: {
- text: '通话次数(通)',
- style: {
- color: '#4572A7'
- }
- },
opposite: true
}
- ],
- tooltip: {
- shared: true
- },
- series: [{
- type: 'column',
- name: '呼入次数',
- yAxis: 1,
- tooltip: {
- valueSuffix: '通'
- },
- data: [3, 2, 1, 3, 4],
- color:Highcharts.getOptions().colors[6],
- }, {
- type: 'column',
- name: '呼出次数',
- yAxis: 1,
- tooltip: {
- valueSuffix: '通'
- },
- data: [2, 3, 5, 7, 6],
- color:Highcharts.getOptions().colors[7],
- },{
- type: 'spline',
- name: '通话总时长',
- data: [5, 3, 2, 4, 2],
- tooltip: {
- valueSuffix: 's'
- },
- marker: {
- lineWidth: 2,
- lineColor: Highcharts.getOptions().colors[5],
- fillColor: 'white'
- }
- }, {
- type: 'spline',
- name: '平均通话时长',
- tooltip: {
- valueSuffix: 's'
- },
- data: [3, 2.67, 3, 6.33, 3.33],
- marker: {
- lineWidth: 2,
- lineColor: Highcharts.getOptions().colors[5],
- fillColor: 'white'
- }
- }]
- });
- });
- </script>
-
- </head>
- <body>
- <div id="container" style="min-width: 700px; height: 400px">
- </div>
- </body>
- </html>
|