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

Marker in Line Chart

3 Answers 147 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sivam
Top achievements
Rank 1
Sivam asked on 18 May 2010, 06:33 PM
Hi,

How can i mark the data item value point with a cross or circle in the line chart.


Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 May 2010, 08:08 AM
Hello Sivam,

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
Steve
Telerik team
answered on 21 May 2010, 04:48 PM
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.
Tags
General Discussions
Asked by
Sivam
Top achievements
Rank 1
Answers by
Steve
Telerik team
Sivam
Top achievements
Rank 1
Share this question
or