pointmark background in telerik rad chart

4 posts, 0 answers
  1. satishbabu
    satishbabu avatar
    2 posts
    Member since:
    Jul 2011

    Posted 22 Jul 2011 Link to this post

    How can we make pointmarks of 2d line chart transparent?
  2. Rahul
    Rahul avatar
    116 posts
    Member since:
    Feb 2011

    Posted 24 Jul 2011 Link to this post

    Just One line of code. xD:

    radChart1.DefaultSeriesDefinition.Appearance.PointMark.Fill = new SolidColorBrush(Colors.Transparent);
  3. DevCraft banner
  4. Sia
    Admin
    Sia avatar
    667 posts

    Posted 26 Jul 2011 Link to this post

    Hello satishbabu,

    As Rahul said you can use the exposed appearance API to change your point marks' stroke or fill:
    (seriesMapping.SeriesDefinition as LineSeriesDefinition).Appearance.PointMark.Fill = new SolidColorBrush(Colors.Transparent);
    (seriesMapping.SeriesDefinition as LineSeriesDefinition).Appearance.PointMark.Stroke = new SolidColorBrush(Colors.Transparent);

    If you want to hide the point marks entirely, please set the ShowPointMarks property to false:
    (seriesMapping.SeriesDefinition as LineSeriesDefinition).ShowPointMarks = false;


    All the best,
    Sia
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  5. satishbabu
    satishbabu avatar
    2 posts
    Member since:
    Jul 2011

    Posted 26 Jul 2011 Link to this post

    I got the solution for this issue.
    Thank you guys.

    it is about setting the 'Fill' property for seriesItemlabelstyle to 'Transparent'

    <Setter Property='Fill' Value='Transparent'/>

    Thanks,
    Satish
Back to Top