LineSeries always visualize Y value

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

xeo wrote at 2014-07-22 12:35:

I can't find a way to have the Y axis value visible, it shows randon values, sometimes min and max, sometimes in between.
Image
I've tried to set minimin and maximun but no luck.
Any hint?
Thank you.

Slxe wrote at 2014-07-22 16:37:

I've actually proposed that this be implemented for axes in general here. If you require it immediately though it shouldn't be too hard to extend your own axis and override paint to always print out the value on the absolute min and max (using the InverseTransform to get the value, I think). This is about as far as I've thought out how to implement it though, if you create a solution please share =).

Side note: a simple fix would be to alter MajorStep and MinorStep, and ShowMinorStep, but that'll only make them more frequent, not always show on the min and max.

xeo wrote at 2014-07-23 02:20:

Yep good advice, I will try to override it.
Thanks for your help and I agree, your proposal should be implemented.

xeo wrote at 2014-07-23 10:59:

I actually came up with a different solutions but I am not sure if it works with any value:

First I calculate the Maximun and Minimun and set them in the axe, then I set the MajorStep = MAximun - Minimun.

It works only for integers but for me it's enough till your advice will be implemented.

EDIT: forget it, it's bullshit, it works randomly... sic...