You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe/explain the bug
With a simple ResponsiveBarCanvas chart, if I turn on the enableGridX feature, the vertical lines extend below the bottom of the chart, into the area where tick labels are. I've hunted and searched and I can't find a "stop at the bottom" property. I'm certain I'm missing something simple, but I just can't figure it out. The only thing I've got turned on is margins, which I need to even be able to see the tick labels. I've tried setting minValue to 0 since that works for my data, but no change.
Doing a little more fiddling, if I change the top margin on the demo to -50 (instead of 50), the gridlines don't extend into the label area, so it seems like the grid doesn't take into account the margins when being drawn. The same thing happens with the Y gridlines (horizontal lines) on the demo: if you enable the legend, the gridlines plow right through it. I glanced at the BarCanvas code and it calls renderGridLinesToCanvas without accommodating the margins, so maybe it is a simple fix...?
Describe/explain the bug
With a simple
ResponsiveBarCanvas
chart, if I turn on theenableGridX
feature, the vertical lines extend below the bottom of the chart, into the area where tick labels are. I've hunted and searched and I can't find a "stop at the bottom" property. I'm certain I'm missing something simple, but I just can't figure it out. The only thing I've got turned on is margins, which I need to even be able to see the tick labels. I've tried settingminValue
to 0 since that works for my data, but no change.To Reproduce
Please have a look at this codesandbox for reproduction: https://codesandbox.io/p/sandbox/cranky-night-nvmpgg?file=%2Fsrc%2Findex.tsx%3A39%2C1
Expected behavior
I would expect that the lines stop at the bottom of the bars, especially since I have no negative numbers.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: