hightcharts的data在页面调用只可以是实际的数吗?
代码如下:
$(function () {
$('#container3').highcharts({
chart: {
type: 'gauge',
plotBorderWidth: 1,
plotBackgroundColor: {
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
stops: [
[0, '#FFF4C6'],
[0.3, '#FFFFFF'],
[1, '#FFF4C6']
]
},
plotBackgroundImage: null,
height:165
},
title: {
text: '温度'
},
pane: [{
startAngle: -45,
endAngle: 45,
background: null,
center: ['50%', '105%'],
size: 200
}],
yAxis: [{
min: -50,
max: 50,
minorTickPosition: 'outside',
tickPosition: 'outside',
labels: {
rotation: 'auto',
distance: 20
},
plotBands: [{
from: 30,
to: 50,
color: '#C02316',
innerRadius: '100%',
outerRadius: '105%'
}],