This is a migrated thread and some comments may be shown as answers.

ScatterSeries.Shape = DiamondShape

3 Answers 48 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 17 Mar 2016, 10:00 PM

I have a scatter series, and setting the Shape to Telerik.WinControls.UI.DiamondShape does not work. It gives me no markers at all.

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 21 Mar 2016, 08:59 AM
Hi Steve,

Thank you for writing.

You should set the PointSize as well. For example:
ScatterSeries scatterSeries = new ScatterSeries();
scatterSeries.DataPoints.Add(new ScatterDataPoint(15, 19));
scatterSeries.DataPoints.Add(new ScatterDataPoint(18, 10));
scatterSeries.DataPoints.Add(new ScatterDataPoint(13, 15));
scatterSeries.DataPoints.Add(new ScatterDataPoint(10, 8));
scatterSeries.DataPoints.Add(new ScatterDataPoint(5, 2));
scatterSeries.PointSize = new SizeF(18, 18);
scatterSeries.Shape = new DiamondShape();
this.radChartView1.Series.Add(scatterSeries);

Let me know if you have additional questions.

Regards,
Dimitar
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Steve
Top achievements
Rank 1
answered on 23 Mar 2016, 07:04 PM
My problem was that it was an old build. I am using a newer build now and it works.
0
Dimitar
Telerik team
answered on 24 Mar 2016, 08:35 AM
Hello Steve,

I am glad that this is working fine on your side now. Do not hesitate to contact us if you have other questions.

Regards,
Dimitar
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
ChartView
Asked by
Steve
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Steve
Top achievements
Rank 1
Share this question
or