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

Not Showing lines properly in BarChart #543

Closed
sandeep-synclovis opened this issue Feb 15, 2024 · 5 comments
Closed

Not Showing lines properly in BarChart #543

sandeep-synclovis opened this issue Feb 15, 2024 · 5 comments

Comments

@sandeep-synclovis
Copy link

I'm encountering an issue when integrating a line view within a BarChart that utilizes a SecondaryYAxis. The challenge arises from the discrepancy between the maximum value I specify (e.g., 500) and the actual maximum value in the dataset (e.g., 400). Despite setting the maxValue to 500, the BarChart displays based on the second highest value, resulting in a displayed maximum of 500 while the max value for the lines remains at 400. Consequently, if any data point exceeds this adjusted maximum (e.g., 300), it won't be visible in the chart rendering.

Screenshot 2024-02-15 at 11 35 19 AM
@hkellou-vitalcare
Copy link
Contributor

hkellou-vitalcare commented Feb 20, 2024

Hi @sandeep-synclovis ,
I would suggest you dynamically change the max value of the YAxis based on your maximum value (plus an added value if you don't want the top of your chart to be on the very top of your chart)
Something like "Math.max(array)"

@Abhinandan-Kushwaha
Copy link
Owner

Hi @sandeep-synclovis
Were you able to solve this issue?

@sandeep-synclovis
Copy link
Author

sandeep-synclovis commented Jul 8, 2024 via email

@Abhinandan-Kushwaha
Copy link
Owner

Hi @sandeep-synclovis
The PR you mentioned above (Abhinandan-Kushwaha/gifted-charts-core#9) deals with Line charts, not with combined Bar-Line charts.
I gues you meant this issue- Abhinandan-Kushwaha/gifted-charts-core#4

@Abhinandan-Kushwaha
Copy link
Owner

Hi @sandeep-synclovis
I have made the fix that you suggested here through patch-package.
The fix is available from version 1.4.16 onwards.

Please use the latest version of the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants