Mohammad Samdi
Mohammad Samdi

Reputation: 111

how to set min value for highchart bullet chart to start in that point

I want a bullet chart start at a point like 150.(you can see in the bellow image)

enter image description here

but when I trying to set pointStart value for bullet chart it dose not work.

Upvotes: 0

Views: 200

Answers (1)

Sebastian Wędzel
Sebastian Wędzel

Reputation: 11633

You need to set the min value on the yAxis (because bullet chart is inverted).

Demo: https://jsfiddle.net/BlackLabel/skLd7qf0/

  yAxis: {
    min: 150,
    plotBands: [{
      from: 150,
      to: 225,
      color: '#999'
    }, {
      from: 225,
      to: 9e9,
      color: '#bbb'
    }],
  },

API: https://api.highcharts.com/highcharts/yAxis.min

Upvotes: 1

Related Questions