0

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

var chart = new Highcharts.StockChart({ chart: { renderTo: 'container', 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
                }]
            });

在此处输入图像描述

4

0 回答 0