-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix: barchart disappearance bars issue #72
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this, working as expected ! nice job 🚀
One thing, the minimum of the domain axis is set to 0. This is should be discussed with @marrouchi.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @yassinedorbozgithub , I left you some comment. Please LTMK if it makes sense to you.
nice: xAxis.nice || 0, | ||
reverse: isRTL, | ||
domain: [0, xAxisDomainMaxValue], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice: xAxis.nice || 0, | |
reverse: isRTL, | |
domain: [0, xAxisDomainMaxValue], | |
nice: typeof xAxis.nice !== 'undefined' ? xAxis.nice : 1, | |
reverse: isRTL, |
Note that values could be negative, so we cannot set zero as lower band. By default the scale will compute the min and max by using the xAxis.domainKey, so there's no need to re-calculate the max value. I think we should set nice to "1" if none is provided to solve the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @marrouchi still have the problem after applying the request update
@@ -172,6 +174,7 @@ export default class BarChart extends mixins(ToggleDatumMixin) { | |||
domainKey: xAxis.domainKey, | |||
nice: xAxis.nice || 0, | |||
reverse: isRTL, | |||
domain: [0, xAxisDomainMaxValue], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
Motivation
I find that Gamma data is hidden from the bar chart when we click on the legend at the bottom of the chart as mentioned in the screenshot below.
This PR fixes this issue.
Fixes #71
Type of change
Please delete options that are not relevant.
Checklist: