|
|
@@ -721,51 +721,53 @@
|
|
721
|
721
|
})
|
|
722
|
722
|
}
|
|
723
|
723
|
//图一
|
|
724
|
|
- var myChart1 = echarts.init(document.getElementById('flot-pie-chart'));
|
|
725
|
|
- var option1 = {
|
|
726
|
|
-
|
|
727
|
|
- tooltip: {},
|
|
728
|
|
-
|
|
729
|
|
- xAxis: {
|
|
730
|
|
- data: ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", ],
|
|
731
|
|
- axisLabel: {
|
|
732
|
|
- interval: 0, //横轴信息全部显示
|
|
733
|
|
- rotate: -0, //-30度角倾斜显示
|
|
734
|
|
- }
|
|
735
|
|
- },
|
|
736
|
|
- yAxis: {},
|
|
737
|
|
- series: [{
|
|
738
|
|
- name: '业绩',
|
|
739
|
|
- type: 'bar',
|
|
740
|
|
- itemStyle: {
|
|
741
|
|
- normal: {
|
|
742
|
|
- color: '#d5d5d5'
|
|
743
|
|
- }
|
|
744
|
|
- },
|
|
745
|
|
- barGap: '-100%',
|
|
746
|
|
- barMaxWidth: '100',
|
|
747
|
|
- data: [51, 30, 40, 25, 80, 40, 42, 86, 50, 26, 12, 30, 55, 15, 18, 55, 28, 26, 50, 46, 98, 66, 50, 85]
|
|
748
|
|
- }, {
|
|
749
|
|
- name: '销量',
|
|
750
|
|
- type: 'bar',
|
|
751
|
|
- itemStyle: {
|
|
752
|
|
- normal: {
|
|
753
|
|
- color: '#7abf62'
|
|
754
|
|
- }
|
|
755
|
|
- },
|
|
756
|
|
- barMaxWidth: '100',
|
|
757
|
|
- data: [5, 20, 36, 10, 15, 20, 28, 36, 20, 36, 5, 20, 36, 10, 15, 20, 28, 36, 20, 36, 88, 46, 30, 45]
|
|
758
|
|
- }]
|
|
759
|
|
- };
|
|
760
|
|
-
|
|
|
724
|
+// var myChart1 = $('#flot-pie-chart').highcharts(option1);
|
|
|
725
|
+// myChart1.setOptions()
|
|
|
726
|
+ $('#flot-pie-chart').highcharts({
|
|
|
727
|
+ chart: {
|
|
|
728
|
+ type: 'column'
|
|
|
729
|
+ },
|
|
|
730
|
+ credits:{
|
|
|
731
|
+ enabled:false // 禁用版权信息
|
|
|
732
|
+ },
|
|
|
733
|
+ title: {
|
|
|
734
|
+ text: ''
|
|
|
735
|
+ },
|
|
|
736
|
+ xAxis: {
|
|
|
737
|
+ categories:["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", ],
|
|
|
738
|
+ crosshair: true
|
|
|
739
|
+ },
|
|
|
740
|
+ yAxis: {
|
|
|
741
|
+ min: 0,
|
|
|
742
|
+ title: {
|
|
|
743
|
+ text: ''
|
|
|
744
|
+ }
|
|
|
745
|
+ },
|
|
|
746
|
+ tooltip: {
|
|
|
747
|
+ headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
|
|
|
748
|
+ pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
|
|
|
749
|
+ '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
|
|
|
750
|
+ footerFormat: '</table>',
|
|
|
751
|
+ shared: true,
|
|
|
752
|
+ useHTML: true
|
|
|
753
|
+ },
|
|
|
754
|
+ series: [{
|
|
|
755
|
+ name: '业绩',
|
|
|
756
|
+ data:[51, 30, 40, 25, 80, 40, 42, 86, 50, 26, 12, 30, 55, 15, 18, 55, 28, 26, 50, 46, 98, 66, 50, 85]
|
|
|
757
|
+ },{
|
|
|
758
|
+ name: '销量',
|
|
|
759
|
+ data:[5, 20, 36, 10, 15, 20, 28, 36, 20, 36, 5, 20, 36, 10, 15, 20, 28, 36, 20, 36, 88, 46, 30, 45]
|
|
|
760
|
+ }]
|
|
|
761
|
+ });
|
|
|
762
|
+
|
|
761
|
763
|
function telhour() {
|
|
762
|
764
|
$.getJSON(huayi.config.callcenter_url + 'Index/GetTelRecordsByHour', {
|
|
763
|
765
|
"token": $.cookie("token")
|
|
764
|
766
|
}, function(result) {
|
|
765
|
767
|
if(result.state.toLowerCase() == "success") {
|
|
766
|
|
- option1.series[0].data = result.data.total;
|
|
767
|
|
- option1.series[1].data = result.data.count;
|
|
768
|
|
- myChart1.setOption(option1);
|
|
|
768
|
+// option1.series[0].data = result.data.total;
|
|
|
769
|
+// option1.series[1].data = result.data.count;
|
|
|
770
|
+// myChart1.setOptions(option1);
|
|
769
|
771
|
}
|
|
770
|
772
|
})
|
|
771
|
773
|
}
|