SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
I have a fix for this for now.
The problem was that public override string FormatLabel(IComparable dataValue) for my label provider was being called with interim values I wasn’t expecting as I have an integer XAxis i.e. it was being called for 0, 0.5, 1, 1.5, 2, 2.5 etc etc. which I was then converting this to an int and returning a string equivalent from the label array. thus causing the recurring labels.
My solution for was to check the dataValue for being an integer before returning the string, if it was one of these mid-points I just returned an empty string.
Not sure if this is the SciChart way of doing things (I’m probably setting the axis up incorrectly or something) – but it’s giving me the result I want 🙂
Please excuse the abrupt nature of this post as I don’t want to go into a load of detail for it post an empty one again. I’ll post more info if it’s necessary and there isn’t an obvious answer.
Basically the problem is that my BoxPlot xAxis isn’t displaying how I think it should when using a LabelFormater i.e. there are multiple labels of the same name for a single data entry. Admittedly I’m resetting the axis strings each time the data set changes but I’d still only expect 1 label.
Please see attached image.
Please login first to submit.