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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

2
0

Hi folks,

I haven’t been able to produce scatter charts using a XyScatterRenderableSeries. To demonstrate, I took a sample project you sent me earlier and replaced one line as shown below:

_chartSeries = new ObservableCollection<IChartSeriesViewModel>();
//var renderableSeries = new FastLineRenderableSeries { SeriesColor = Colors.BlueViolet};
var renderableSeries = new XyScatterRenderableSeries { SeriesColor = Colors.BlueViolet};
_chartSeries.Add(new ChartSeriesViewModel(ds0, renderableSeries));

With the original FastLineRenderableSeries, I see the chart. But with XyScatterRenderableSeries, the data does not appear. (Annotations remain visible, of course.)

Am I doing something wrong, or does the ChartSeriesViewModel not work with scatter charts?

Thanks,
–George

  • You must to post comments
1
0

Came across this old question when I had a similar problem. It seems like today you can just do:

new XyScatterRenderableSeries
        {
            PointMarker = new Abt.Controls.SciChart.Visuals.PointMarkers.EllipsePointMarker()
        };

There are other point markers in the Abt.Controls.SciChart.Visuals.PointMarkers namespace (EllipsePointMarker, CrossPointMarker, SpritePointMarker, SquarePointMarker and TrianglePointMarker), which all derive from BasePointMarker.

I guess it’s possible to derive from BasePointMarker and make your own custom PointMarkers somehow.

  • You must to post comments
0
0

Hi George,

You’ll have to set the PointMarker property on the XyScatterRenderableSeries to get it to work. It ignores SeriesColor and uses only the PointMarker.

I believe there are a few posts in the forums about creating point-markers in code, including a helper class somewhere which generates a control template from size & color.

I realise its not an ideal API – we’re working on improving our MVVM API for SciChart v2.0

Thanks!
Andrew

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.