ngx-charts icon indicating copy to clipboard operation
ngx-charts copied to clipboard

feature: gauge range support

Open dboschm opened this issue 4 years ago • 0 comments

What kind of change does this PR introduce? (check one with "x")

  • [ ] Bugfix
  • [x] Feature
  • [ ] Code style update (formatting, local variables)
  • [ ] Refactoring (no functional changes, no api changes)
  • [ ] Build related changes
  • [ ] CI related changes
  • [ ] Other... Please describe:

What is the current behavior? (You can also link to an open issue here) currently all gauge arcs start at the min value provided by the results array. #1527

What is the new behavior? we can now display range arcs which will start at an optionally provided startValue and defaults to the min value. The new data format looks like this:

[
  {
    name: 'France',
    value: 36745,
    extra: {
      startValue: 20000,
      code: 'fr'
    }
  }.
  ...
]

Does this PR introduce a breaking change? (check one with "x")

  • [ ] Yes
  • [x] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information: image

dboschm avatar Oct 09 '20 10:10 dboschm