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

pointmark background in telerik rad chart

3 Answers 56 Views
Chart
This is a migrated thread and some comments may be shown as answers.
satishbabu
Top achievements
Rank 1
satishbabu asked on 22 Jul 2011, 09:51 PM
How can we make pointmarks of 2d line chart transparent?

3 Answers, 1 is accepted

Sort by
0
Rahul
Top achievements
Rank 2
answered on 24 Jul 2011, 06:44 PM
Just One line of code. xD:

radChart1.DefaultSeriesDefinition.Appearance.PointMark.Fill = new SolidColorBrush(Colors.Transparent);
0
Sia
Telerik team
answered on 26 Jul 2011, 12:11 PM
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!

0
satishbabu
Top achievements
Rank 1
answered on 26 Jul 2011, 04:10 PM
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
Tags
Chart
Asked by
satishbabu
Top achievements
Rank 1
Answers by
Rahul
Top achievements
Rank 2
Sia
Telerik team
satishbabu
Top achievements
Rank 1
Share this question
or