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

How to get PointMarks to show on a line graph

3 Answers 223 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 30 Sep 2010, 09:41 PM

When the complaint came in that my line graph didn't have visible points at the values, I thought it would be an easy fix.

Somehow, I can't seem to make it happen.

The meat of the code is here:

'Create a series
Dim oSeries As Telerik.Charting.ChartSeries = New Telerik.Charting.ChartSeries()
radChart.Series.Add(oSeries)
 
'make it a line
oSeries.Type = ChartSeriesType.Line
radChart.Series(0).Appearance.FillStyle.MainColor = Color.Red

'add some data
radChart.Series(0).AddItem(3.5)
radChart.Series(0).AddItem(4.5)
radChart.Series(0).AddItem(6.5)
radChart.Series(0).AddItem(8.5)

' try everything and anything to get the points to show up
radChart.Series(0).Appearance.PointMark.Visible = True
radChart.Series(0).Appearance.PointMark.Dimensions.AutoSize = False
radChart.Series(0).Appearance.PointMark.Dimensions.Width.Value = 20
radChart.Series(0).Appearance.PointMark.Dimensions.Height.Value = 20
radChart.Series(0).Appearance.PointMark.FillStyle.FillType = Styles.FillType.Solid
radChart.Series(0).Appearance.PointMark.Figure = Styles.DefaultFigures.Diamond


I'm using the 4.1.6 version of the dll date 3/10/09

I've been searching the Forum for a mention of a similar problem - how bad is your problem when nobody on the internet has ever had it before?

I've attached a jpg of the output.

Please let me know what add't information would be helpful.

Thank you in advance for the help. 

Mark

 

 

3 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 01 Oct 2010, 04:07 PM
Hello Mark,

As I inspected your code snippet I saw that you are doing everything right to show the PointMark. There is one thing that you need to know - PointMarks of Lines are unvisible and transparent by default. What you need to add is some Color for your PointMarks:

RadChart1.Series[0].Appearance.PointMark.FillStyle.MainColor = Color.Red;

Hope this helps.

Best wishes,
Evgenia
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
Mark
Top achievements
Rank 1
answered on 01 Oct 2010, 06:05 PM
Well done.

Thank you.
0
Rebecca
Top achievements
Rank 1
answered on 30 Dec 2011, 08:59 PM
The documentation mentions that visible = false by default, but says NOTHING about transparency or color required. Would have been nice to know this before I wasted an hour trying every property before finding this post.
I guess I should consider myself lucky I only lost an hour this time. Wish you guys would improve your documentation.
Tags
Chart (Obsolete)
Asked by
Mark
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Mark
Top achievements
Rank 1
Rebecca
Top achievements
Rank 1
Share this question
or