swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.28k stars 1.15k forks source link

Gauge chart with negative angle span doesn't work and reach always max value #1449

Open LorenzoDelpi opened 4 years ago

LorenzoDelpi commented 4 years ago

Describe the bug If you set a normal chart gauge with a negative angles span, the inside of the gauge fills all, it doesn't matter if the value is 1 or 20 and the max is 400. It seems like the gauge reach the max every time.

To Reproduce Steps to reproduce the behavior:

  1. Go to the demo page https://swimlane.github.io/ngx-charts/#/ngx-charts/gauge
  2. Click on angle span and set it to negative
  3. See error

Expected behavior I expected that works normally, like the positive angle span just in the opposite direction, instead of that it fills completely the gauge

Screenshots image image

Demo go to the demo page and try it

ngx-charts version ngx-charts version: 13.0.2

LorenzoDelpi commented 4 years ago

I have checked that this bug is present in the following version 13.0.3