highcharts solidgauge reverse angle direction

Viewed 47

So I have this solidgauge with options:

{
  pane: {
    startAngle: 0,
    endAngle: 360,
  },
}

But I want to add an option to have the gauge the other way round, so I went for:

{
  pane: {
    startAngle: this.inversed ? 360 : 0,
    endAngle: this.inversed ? 0 : 360,
  }
}

With this.inversed set to true, the animation goes well, but unfortunately, at the end I get an error:

Error: <rect> attribute height: A negative value is not valid. ("-298.45130209103036")

It feels like a bug because I don't change anything else.

Can someone help me on reversing the angle direction of my solidgauge?

Cheers

1 Answers
Related