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
Overview
I am reporting an issue which I believe to be a bug with the ResponsiveBar component. I have read the ResponsiveBar documentation thoroughly. I believe the code I have is properly configured per the docs. Under the base section of the documentation there is the minValue and maxValue props which are set to "auto" by default. I am specifying custom number values for the minValue and maxValue.
Describe/explain the bug
The ResponsiveBar component bars overflow on the axisBottom when specifying custom number values for the minValue and maxValue props. There appears to be an issue with the bars calculating/rendering properly for the minValue causing the bottom of each bar to overflow beyond the minValue on the axisBottom of the chart.
To Reproduce
Here is the Codesandbox where I have included a minimal example to reproduce the issue.
Expected behavior
The bars in the chart should render properly based on the minValue/maxValue passed to the component and not overflow on the axisBottom.
Screenshots
Desktop
macOS Version 12.6 (Build 21G115)
Chrome 108.0.5359.124 (Official Build) (arm64)
@nivo/core (0.80.0)
@nivo/bar (0.80.0)
The text was updated successfully, but these errors were encountered:
Posted this question on Stack overflow and the user Scott Murphy had the answer. When specifying the min and max value you must include the "clamp: true" prop VIA valueScale for the chart to render properly when using custom min/max values.
Posted this question on Stack overflow and the user Scott Murphy had the answer. When specifying the min and max value you must include the "clamp: true" prop VIA valueScale for the chart to render properly when using custom min/max values.
Overview
I am reporting an issue which I believe to be a bug with the ResponsiveBar component. I have read the ResponsiveBar documentation thoroughly. I believe the code I have is properly configured per the docs. Under the base section of the documentation there is the minValue and maxValue props which are set to "auto" by default. I am specifying custom number values for the minValue and maxValue.
Describe/explain the bug
The ResponsiveBar component bars overflow on the axisBottom when specifying custom number values for the minValue and maxValue props. There appears to be an issue with the bars calculating/rendering properly for the minValue causing the bottom of each bar to overflow beyond the minValue on the axisBottom of the chart.
To Reproduce
Here is the Codesandbox where I have included a minimal example to reproduce the issue.
Expected behavior
The bars in the chart should render properly based on the minValue/maxValue passed to the component and not overflow on the axisBottom.
Screenshots
Desktop
The text was updated successfully, but these errors were encountered: