Using v12.1
My chart type is a ScatterSeries
I have a numeric y axis which will typically have anywhere from 2-20 series displayed.
Each series have 2 different modes or data points (actual, adjusted) for performance reasons I create each series in code behind and set the YMemberPath to equal a property in data callled YValue, then outside the chart the operator has the ability to choose the value display. The code then updates the YValue property with the correct value.
This all works fine, when the values change the yAxis will automatically re-scales depending on the values.
The problem began when I had a requirement to add a 'zero' line to the adjusted values. What I did was create a ValueOverlay at 0 and add it to the chart series. Then when the operator selects 'Actual' mode I remove the series from the chart collection. At this point I expected the chart to rescale the same way as it did before I added a zero line, however, the zero line is gone but the chart wont rescale, it seems to think that zero is still a valid Y value.
I can't figure out how to make the chart readjust its yAxis
Hello,
Thank you for your post. I have been looking into, but since this is not a known issue, I cannot be completely sure what can cause this behavior, so could you please send an isolated sample project, where this is reproduced, so I can investigate it further for you.
Looking forward for your reply.
Sent sample via email
If you want I can create a private case for you and you can send me the sample there.
Please do, we are anxious to get this resolved.
Thanks
Hi,
of course I did not want you to send me any private files, but a hint to get it solved (Solution had actually the other meaning in this case).
Pretty embarressing for me that I overlooked that the reference is responsible.
Thank you
Hello Axel,
I cannot sent you the other user's sample since it it has private data and code, but I can say that our developers said that this behavior is by design and if you remove the Overlay from the XamDataChart, it still has an Axis assigned. So its values are still counted, when the Axis updates its range. If you want the Axis to no longer take the overlay into account you must set the Axis property to null before removing it.
is it possible to share the solution to this problem.
Right now, I am possibly confronted with the same problem. My chart needs y-axis autoscaling and overlays that are added / removed dynamically. Y-axis min max do only update correctly when no overlays are used.
Regards, Axel
Your ticket's numer is CAS-105655-M4G0Z5. You can send me your sample there.