Enable ticks customisation in the bullet
See original GitHub issueIs your feature request related to a problem? Please describe.
When using a Bullet/ResponsiveBullet
component, it’s impossible to customize ticks on the main axis. For example, when range=[0,200]
ticks generate automatically as [0, 20, 40, ..., 200]
(see the picture below)
Describe the solution you’d like
I would like the ticks to be customisable through for example a step
parameter, so when defining the data I could write
const data = [ { id: 'first element', range: [0,200], step: 10 }]
Describe alternatives you’ve considered
Another customisation I see might be possible is with providing an array of ticks as in Python’s matplotlib. I think this might be not the most optimal one in terms of data usage. In this approach I see it as something like:
const data = [ { id: 'first element', range: [0,200], ticks: [0, 10, 20, ..., 200] }]
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:10
Top GitHub Comments
+1. I have similar issue as it will be great to support something like axisBottom { format: <codes go here> }
+1