3 Answers, 1 is accepted
0
Hello Sivam,
You can set a marker by using the PointMark property of the chart series. Here is a sample code:
All the best,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
You can set a marker by using the PointMark property of the chart series. Here is a sample code:
mySeries.Appearance.PointMark.Visible =
true
;
mySeries.Appearance.PointMark.FillStyle.FillType = Telerik.Reporting.Charting.Styles.FillType.Solid
mySeries.Appearance.PointMark.FillStyle.MainColor = System.Drawing.Color.Red
All the best,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Sivam
Top achievements
Rank 1
answered on 20 May 2010, 03:38 PM
Thanks. How can i make the color of the point mark the same color as the line?
0
Hi Sivam,
If you manually set the series color, then you can control this process easily by applying the same color to the PointMark as to the series.
However if you depend on the auto assigned series colors, you cannot do this out of the box. Still here are the colors that the auto generated series use, so you can use them for your PointMarks if you want:
1st: Color.FromArgb(213, 247, 255)
2nd: Color.FromArgb(218, 254, 122)
3rd: Color.FromArgb(136, 221, 246)
4th: Color.FromArgb(163, 222, 78)
5th: Color.FromArgb(79, 152, 198)
6th: Color.FromArgb(86, 153, 78)
Generally they are ComplexGradient from 3 colors, but in your case, only the first color of this gradient would do.
Sincerely yours,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
If you manually set the series color, then you can control this process easily by applying the same color to the PointMark as to the series.
However if you depend on the auto assigned series colors, you cannot do this out of the box. Still here are the colors that the auto generated series use, so you can use them for your PointMarks if you want:
1st: Color.FromArgb(213, 247, 255)
2nd: Color.FromArgb(218, 254, 122)
3rd: Color.FromArgb(136, 221, 246)
4th: Color.FromArgb(163, 222, 78)
5th: Color.FromArgb(79, 152, 198)
6th: Color.FromArgb(86, 153, 78)
Generally they are ComplexGradient from 3 colors, but in your case, only the first color of this gradient would do.
Sincerely yours,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.