当前位置: 代码迷 >> Java Web开发 >> hightchats调用数据有关问题,
  详细解决方案

hightchats调用数据有关问题,

热度:3716   发布时间:2016-04-10 23:35:31.0
hightchats调用数据问题,急急急
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%'
                    }],
  相关解决方案