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

Change datapoint size of LineSeriesDefination

3 Answers 26 Views
Chart
This is a migrated thread and some comments may be shown as answers.
sunita
Top achievements
Rank 1
sunita asked on 12 Mar 2011, 09:11 AM
Hello,

i am using LineSeriesDefination how can i change the size of point if it need to be smaller. can we decrease the size of the circles.
please help in this regards.

Thanks

Sunita

3 Answers, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 16 Mar 2011, 02:54 PM
Hi sunita,

Use the following style:
<Style x:Key="CustomPointMark"   TargetType="telerikCharting:PointMark">
    <Setter Property="Size" Value="5" />
</Style>

and apply it to the LineSeriesDefinition PointMarkItemStyle.

I hope this helps.
Regards,
Sia
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
scott
Top achievements
Rank 1
answered on 06 Dec 2012, 04:26 PM
As a follow-on to Sunita's question.  How do I do this dynamically and under program control?  Can I do something like this:

string xaml = "<style ... "
Style s = xamlreader.load(...)
lineDefinition.Style = s

If the answer is yes - got an example?

Thanks -
Scott
0
Evgenia
Telerik team
answered on 11 Dec 2012, 11:57 AM
Hi scott,

The chart control does not expose specialized API for this functionality but you can use the attached MVVM approach if you need to update the pointmarks dynamically.

All the best,
Evgenia
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Chart
Asked by
sunita
Top achievements
Rank 1
Answers by
Sia
Telerik team
scott
Top achievements
Rank 1
Evgenia
Telerik team
Share this question
or