0

On refining my problem statement, I came up with a column stacked stock chart.

I have set the plotOptions.series.pointPlacement to on for my application. Now the issue is that only half columns are plotted for first and last data.

      plotOptions: {
            column: {
                stacking: 'normal',
                dataLabels: {
                    enabled: true,
                    color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white'
                }
            },
            series: {            
                pointPlacement: "on"
            }
        },

Please refer to the fiddle: http://jsfiddle.net/vbjdF/

I need to somehow make sure the entire columns are plotted without truncating the columns. Any help is appreciated.

Thanks in advance.

4

2 回答 2

0

确实它看起来像一个问题,所以我向我们的开发人员报告了https://github.com/highslide-software/highcharts.com/issues/1933,请继续关注这个线程。

您可以添加 0 值作为第一个点和最后一个点,并添加 empty categories

http://jsfiddle.net/vbjdF/2/

于 2013-06-11T08:43:04.427 回答
0

您可以为 xAxis 添加 type: 'category' 而不是添加空类别数组

于 2018-12-18T10:18:56.510 回答