Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
DataChart ValueOverlay
posted

Hi,

i am using the ValueOverlay to Display a crosshair like horizontal and vertical line.

The horizontal line, is bound to the y-axis, and Setting the value of the ValueOverlay works fine.

But for the x-axis (vertical line) Setting the value as a double does not work, instead it seems that i have to set the index of the datapoint.

What do i do wrong here?

Thanks

Parents
  • 2575
    Verified Answer
    Offline posted

    Hello Thomas,

    Which series and x axes are you using? If you are using a CategoryXAxis, then the overlay does not read values of the categories and will treat the double you provide as the index you want it at. If this is the case, then you will have to compute the index at which you want to show the overlay. Please note that this would apply for the CategoryDateTimeXAxis.

    Please let me know if I can assist you further.

Reply Children