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
370
Add CrosshairLayer when creating series dynamically
posted

Hi,

I have a XamDataChart with ScatterSplineSeries that I create dynamically as described here: https://ko.infragistics.com/community/forums/f/ultimate-ui-for-wpf/105114/create-series-dynamically-via-mvvm-binding.

Now I need to add a crosshair layer to this, but I don't know how since the ScatterSplineSeries are created in the SeriesTemplate and I only need one crosshair layer for all the series.

Is there a solution to this? My application is strict MVVM.

BR,

Hilma Maria

Parents
  • 34690
    Offline posted

    Hello Hilma,

    I have been investigating into the behavior you are looking to achieve, and unfortunately at the time of writing this, the CrosshairLayer won’t really help you here, as the data point tracking for the CrosshairLayer does not work for the “scatter” related series. It only works for the “category” series (e.g. LineSeries, ColumnSeries, etc.). Support for the scatter-related series is something that is in development internally and should be available in a future version.

    With that said, if you are just looking to have crosshairs appear on the chart and follow the mouse, then it is worth noting that the XamDataChart has a built-in crosshair that can be enabled by setting the CrosshairVisibility property on the chart to “Visible.”

    Please let me know if you have any other questions or concerns on this matter.

Reply Children