SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components



I’m using line series with LineDrawMode.Gaps, if dataseries contain single points with gaps, chars looks empty. I found only one way to see the data points – set PointMarker, but in other cases without gaps, point marhers are not needed for the line series. Is there any way to show single points when gaps are presented w/o point markers or paint point markers only for single series?

                    var renderableSeries = new FastLineRenderableSeries()
                        Stroke = DataManager.Instance.GetRandomColor(),
                        DataSeries = dataSeries,
                        StrokeThickness = 2,
                        DrawNaNAs = LineDrawMode.Gaps,
                    //renderableSeries.PointMarker = new EllipsePointMarker() { Width = 5, Height = 5, Fill = renderableSeries.Stroke, Stroke = renderableSeries.Stroke, StrokeThickness = 2 };
  • Andrew Burnett-Thompson
    Hi Ivan, please explain further (the data you are appending to chart). From my understanding so far, you have some datapoint like x x x x o x x x (where x = NaN, or empty point, and O = a real point) and the chart is empty. Wouldn’t this be expected? You can’t draw a line segment with one point.
  • Ivan Voyager
    The example added below.
  • You must to post comments

I attached the sample.

Observed behaviour: the series {4,2} is not visible. If uncomment line renderableSeries.PointMarker, the series is visible.
Expected behaviour: visualize {4,2} by same way as with PointMarker, but w/o PointMarkers for other points connected with lines. Or how set point marker only for {4,2}?

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.