1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
| //初始化highchart spline样式
| function initSplineStyle(){
| Highcharts.setOptions({
| chart:{
| type:'spline'
| },
| title: {
| text:'',
| enabled:false
| },
| colors: ['#7cb5ec','#3cc051', '#ffc500','#f43b49' ],
| xAxis: {
| labels: {
| staggerLines: 1,
| align: 'center'
| }
| },
| yAxis: {
| allowDecimals:false,
| title: {
| enabled:false
| },
| floor:0
| },plotOptions: {
| spline: {
| marker: {
| enabled: false,
| symbol: 'circle',
| lineWidth: 2
| }
| },
| bar: {
| pointWidth: 40
| }
| }
| });
| }
|
| //无数据显示
| function showNoDataWechat(containerId) {
| var strHrml = '<div class="nodate"><span>暂无数据</span></div>';
| $('#'+containerId).html(strHrml);
| }
|
|