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
First I think we need a couple of examples that reproduces the bug!
Your screen shots in #749 look good, can you provide example code? I guess the height of the plot view is important - can this be reproduced in the example browser with the default window size?
A workaround would be to use the public property IntervalLength of Axis class. It defaults to 60.0. If you have one (or more) short dimension for the plot area, then the corresponding axis could lower the IntervalLength and get more major steps. So, you could halve it to 30.0 and get twice as many major steps. Mathematically, this is not going to guarantee you that you will get more than one label on the axis. But in certain situations this might be sufficient.
I've just thrown together a PR: any feedback would be welcome. It will need to be reviewed by the another maintainer before it can go any further. I've drafted this sort of thing many times in the past and never been happy with it, so there is probably a big issue with the design I'm missing.
Activity
tomkuijsten commentedon Dec 3, 2014
Any news on this item?
Orcomp commentedon Dec 3, 2014
It would be nice if the first and last tick labels were always present on the Y-axis regardless of the height.
objorke commentedon Dec 3, 2014
I think the labels should always show 'nice' numbers. The scaling may be changed to make sure at least two labels are visible.
Showing minimum/maximum values (#19) is another possible enhancement, but I think that one should be optional and not affected by this issue.
objorke commentedon Dec 3, 2014
I think this one is more a bug than an enhancement...
Trass3r commentedon Jan 26, 2016
Does any one have an idea how to implement this?
objorke commentedon Jan 26, 2016
First I think we need a couple of examples that reproduces the bug!
Your screen shots in #749 look good, can you provide example code? I guess the height of the plot view is important - can this be reproduced in the example browser with the default window size?
Trass3r commentedon Jan 28, 2016
Yes depends on the plot height. Visible in the BindingObservableCollection example when clicking on load points with:
Trass3r commentedon Jan 10, 2017
Were you able to reproduce it?
Trass3r commentedon Jan 30, 2017
A sort of workaround is to bind MajorStep to (calculatedMax - calculatedMin) / NUM_TICKS.
Though still the upper bound tick is often missing.
mpInterO commentedon Apr 18, 2018
This is still a significant issue. Trass3r, did you find any better solution?
dwInterO commentedon Apr 19, 2018
A workaround would be to use the public property IntervalLength of Axis class. It defaults to 60.0. If you have one (or more) short dimension for the plot area, then the corresponding axis could lower the IntervalLength and get more major steps. So, you could halve it to 30.0 and get twice as many major steps. Mathematically, this is not going to guarantee you that you will get more than one label on the axis. But in certain situations this might be sufficient.
kraptor23 commentedon Jul 17, 2018
Any updates on this - it's really important to get at least two labels - even forcing it to show the min / max values would be really helpful.
coffinshaker commentedon Nov 18, 2020
Any update on this?
Add MinimumMajorIntervalCount and MaximumMajorIntervalCount Axis Prop…
VisualMelon commentedon Nov 18, 2020
@coffinshaker No progress.
I've just thrown together a PR: any feedback would be welcome. It will need to be reviewed by the another maintainer before it can go any further. I've drafted this sort of thing many times in the past and never been happy with it, so there is probably a big issue with the design I'm missing.
coffinshaker commentedon Dec 2, 2020
Thanks @VisualMelon. In the end I found a workaround. I change MajorStep on the fly based on the data min/max.
Add MinimumMajorIntervalCount and MaximumMajorIntervalCount Axis Prop…
Add MinimumMajorIntervalCount and MaximumMajorIntervalCount Axis Prop…