Hello guys,
I have an issue related to Y axis tick labels. If I decrease chart height I would see rounding(beautiful ) minimum, maxim and average labels on a Y axis, like on the picture below:
I tried to change some properties, but it didn't help. Also, we tried to use custom tick, but we need to round values like in automatic mode. Do you have any idea how we can set any properties to always see min and max labels?
see https://www.screencast.com/t/bBhywpzhVL for best understanding.
Missing Y axis major tick labels
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Missing Y axis major tick labels
Hello
I think there's not built-in feature for that.
Maybe in Chart.SizeChanged event handler, you could investigate graph segment's height, by chart.GetGraphSegmentInfo().SegmentHeight. If it's small, switch to use CustomAxisTicks. Add 3 Ticks with your preferred values, and labels. Remember to set axis.AutoFormatLabels = false, so labels will be outputted as text you give to CustomAxisTicks.
I think there's not built-in feature for that.
Maybe in Chart.SizeChanged event handler, you could investigate graph segment's height, by chart.GetGraphSegmentInfo().SegmentHeight. If it's small, switch to use CustomAxisTicks. Add 3 Ticks with your preferred values, and labels. Remember to set axis.AutoFormatLabels = false, so labels will be outputted as text you give to CustomAxisTicks.
LightningChart Support Team, PT