样条与柱子Highstock图表的组合

时间:2013-05-31 07:45:59

标签: highcharts highstock

我想寻求Spline与Column Highstock Chart组合的解决方案。下面是我写的代码:

var chart = new Highcharts.StockChart({                     图表:{                         renderTo:'容器',                         zoomType:'xy'                     },

                xAxis: {
                    minTickInterval: 24 * 3600 * 1000,
                    ordinal: false
                },

                yAxis: [{ // Primary yAxis
                    title: {
                        text: 'Total Count'

                    },
                    height: 150,
                    lineWidth: 2

                }, { // Secondary yAxis
                    title: {
                        text: 'Member Count'

                    },
                    height: 150,
                    opposite: true,
                    lineWidth: 2

                }],

                series: [{
                    type: 'column',
                    name: 'Bet Count',
                    data: bc,
                    dataGrouping: {
                        enabled: false
                    }
                }, {
                    type: 'spline',
                    name: 'Bet Member Count',
                    data: bmc,
                    yAxis: 1
                }]
            });

enter image description here

0 个答案:

没有答案