Maximum bar width in Highcharts column charts

后端 未结 8 1671
梦毁少年i
梦毁少年i 2021-02-18 14:20

I\'m using Highcharts to create some vertical bars (a.k.a. \"column charts\") a lot like here: highcharts.com/demo/column-basic

Thing is, sometimes there are 30 bars in

8条回答
  •  南笙
    南笙 (楼主)
    2021-02-18 14:32

    a better way would be has suggested

    http://highcharts.uservoice.com/forums/55896-general/suggestions/2079099-manually-set-the-column-width

    check this fiddle

    http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/column-pointwidth-20/

    just add

         series: {
                     pointWidth: 20
                 }
    

    in you plot options and thats it . :) enjoy cheers ...

提交回复
热议问题