1

I'm creating a chart using scichart. I want to display some markers (eg. small Ellipses) on Yaxis for every Data Series depending on where the cursor is.

So far by using:

<s:SciChartSurface.ChartModifier>
   <s:ModifierGroup>
      <s:CursorModifier/>
   </s:ModifierGroup>
</s:SciChartSurface.ChartModifier>

I've obtained a cursor that marks the datapoints directly on charts.

Here is a picture of what I want to obtain (see the markers on Yaxis):

enter image description here

Dr. Andrew Burnett-Thompson
  • 20,980
  • 8
  • 88
  • 178
Jaroslaw Matlak
  • 574
  • 1
  • 12
  • 23

1 Answers1

1

Interesting requirement! In SciChart the RolloverModifier exposes a collection of SeriesInfo - which are ViewModels used by all the cursor and legend types in SciChart.

enter image description here

You can bind anything to this data-source. The XySeriesInfo itself contains information about the series being viewed. For example, the SeriesName, the SeriesColor, the X,Y Values etc...

enter image description here

So, if you can bind to this collection of SeriesInfo as a data-source and create and add AxisMarkerAnnotations to the axis at the specified Y-Value then you can achieve what you want. The only problem is the Axis Markers will only be visible when the tooltips are visible.

enter image description here

For an idea of how to pull this together, consider creating your code to bind to SeriesInfo and add AxisMarkerAnnotations in a custom ChartModifier. (See the Custom ChartModifierBase API documentation for details on this powerful and flexible API.)

Dr. Andrew Burnett-Thompson
  • 20,980
  • 8
  • 88
  • 178
  • Thank for your answer. I Have another question - how to bind `SeriesInfo`? I've tried to bind `SeriesData` (``), but the debugger returns a nullReference error when reaching this point. – Jaroslaw Matlak Feb 27 '17 at 12:06
  • You know how Stackoverflow works right? It's one question / multiple answers. If you have a new Q I suggest creating one and formulating the question well with what you have tried etc... – Dr. Andrew Burnett-Thompson Feb 27 '17 at 15:35