Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control BarChart 0 value bar height #320

Open
alex-mozolevsky-c opened this issue Jul 22, 2024 · 1 comment
Open

Control BarChart 0 value bar height #320

alex-mozolevsky-c opened this issue Jul 22, 2024 · 1 comment
Labels
bug Something isn't working issue-accepted The issue is confirmed and accepted by the maintainers

Comments

@alex-mozolevsky-c
Copy link

alex-mozolevsky-c commented Jul 22, 2024

Question

Hey guys, thanks for such perfect library, especially with 40.* update.

Question: I want to do those bars with 0 value (on image dashed border) as minimal as possible (like 5 px). Now the 0 value bar height is set up automatically, based on the max value (the more max value is - the smaller 0 bar will be, and vice versa).
Have not found any solution so far. Is it possible to do it?

Screenshot 2024-07-22 at 13 50 09

Background Info/Attempts

{({points, chartBounds}) => (
  <Bar
    points={points.yValue}
    chartBounds={chartBounds}
    color={styles.barColor.color}
    roundedCorners={{
      topLeft: barConfig.radius,
      topRight: barConfig.radius,
    }}
    barWidth={barConfig.barWidth}
    animate={{type: 'spring', duration: 500}}
  />
)}
@carbonrobot carbonrobot added bug Something isn't working issue-accepted The issue is confirmed and accepted by the maintainers labels Sep 5, 2024
@carbonrobot
Copy link
Contributor

@alex-mozolevsky-c I'm trying to think of a great way to handle this... should we just have the columns with a zero-height?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working issue-accepted The issue is confirmed and accepted by the maintainers
Projects
None yet
Development

No branches or pull requests

2 participants