ScatterSeries.Shape = DiamondShape

4 posts, 1 answers
  1. Steve
    Steve avatar
    43 posts
    Member since:
    May 2014

    Posted 17 Mar Link to this post

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

  2. Answer
    Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 21 Mar Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Steve
    Steve avatar
    43 posts
    Member since:
    May 2014

    Posted 23 Mar in reply to Dimitar Link to this post

    My problem was that it was an old build. I am using a newer build now and it works.
  5. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 24 Mar Link to this post

    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.
Back to Top