Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Histogram bellcurve misaligned with standard deviation X-Axis with changes to chart element's width #7604
The distribution bell curve should maintain the same alignment with the X-Axis, regardless of element width.
The distribution bell curve is not always aligned with the mean/average on the X-Axis as the width of the containing element changes.
Live demo with steps to reproduce
This is pretty close to correct alignment.
The X axes have aligned ticks by default, which makes them go to great length to keep the same number of ticks. This is prevented by setting
Thanks for the additional info, @TorsteinHonsi !
I believe this is demonstrated well in the interval and points in interval example, where
In the demo both axes are hidden but, if they appear, the ticks from the top axis are not aligned as you would want. The bellcurve series is aware only about one axis and it is not concerned about computing/aligning other axes - use cases can differ so I believe that configuring other axes should be left to users.
In your case, if I understand it correctly, you can build third axis connected to the bellcurve axis with the ticks in specific positions and with the specific labels for the ticks.
live example: https://jsfiddle.net/dqfp48q6/
Yes, we can set
It fails since 4b0f2e3.
Do you agree that we set
added a commit
Jan 5, 2018
After further testing turns out that for
How to handle this?
Of course I'm happy to handle this any other way you choose.
What about another approach, simply disable
Plus this will probably be backwards compatible with v6.0.3.
What do you think?