priceIndex-details.js
2.43 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
define(function( require, exports, module ) {
require( 'highcharts' );
$(function(){
$('#graphic').highcharts({
colors: ['#ff9d2c','#66cc22'],
credits:{
enabled:false
},
chart: {
type: 'line',
marginLeft: 30
},
legend:{
verticalAlign: 'top'
},
title: {
text: ''
},
subtitle: {
text: ''
},
xAxis: {
gridLineWidth: 1,
lineColor: '#ddd',
categories: ['02-01', '02-02', '02-03', '02-04', '02-05','02-06','02-07'],
title: {
text: '单位(月-日)'
// style: {
// color: '#666',
// fontFamily: '宋体'
// }
},
labels:{
style: {
color: '#666',
// fontSize: '12px',
// fontFamily: '宋体'
}
}
},
yAxis: {
title: {
text: ''
},
labels: {
// formatter: function() {
// // return this.value / 10000 +'万';
// },
style: {
color: '#666',
// fontSize: '12px',
// fontFamily: '宋体'
},
x: -5
},
min: 0
},
plotOptions: {
line: {
dataLabels: {
enabled: true// 是否显示节点数字
},
enableMouseTracking: true// 鼠标移动上去是否显示提示框
},
series: {
marker: {
radius: 3, //曲线点半径,默认是4
symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
}
}
},
series: [{
name: '单位(元/公斤)',
data: [200.00, 122.02, 123.04, 128.00, 134.04,122.02, 123.04]
}]
});
});
});