airbnb / visx

🐯 visx | visualization components
https://airbnb.io/visx
MIT License
19.49k stars 715 forks source link

XYChart: Default height to bars in BarSeries when datum value = 0 #1741

Open chromodome opened 1 year ago

chromodome commented 1 year ago

I want to be able to add a bar of a height of 1 or 2 pixels when the datum Y value is 0 so that it acts as a placeholder instead of not rendering anything or showing an empty space. Is this currently possible with the BarSeries in XYChart ?

Screenshot - 2023-08-10 21 50 33
williaster commented 1 year ago

hey @chromodome this is not currently possible, we would need to add it. but it seems like it should be fairly easy if you (or someone else) wants to take a shot.

to support both vertical and horizontal orientations, I'd probably add a new minLength prop.

Nagendra88688 commented 1 year ago

hey @williaster , can i pick this task? Please let me know.