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

Set size of PointMark objects in LineSeriesDefinition

1 Answer 57 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 26 Sep 2013, 09:16 PM

I have a SeriesMapping with a SeriesDefinition set to LineSeriesDefinition and would like to set the size of the shapes that used.  I can set the shape via:

seriesMapping.SeriesDefinition.Appearance.PointMark.Shape = MarkerShape.Circle

is there any way to also set the size?

When using a SeriesMapping with a SeriesDefinition of ScatterSeriesDefinition I can set both shape and size like this:

 ((ScatterSeriesDefinition)seriesMapping.SeriesDefinition).PointShape = MarkerShape.Circle;
 ((ScatterSeriesDefinition)seriesMapping.SeriesDefinition).PointSize = 5;

I would really like to do the same thing with my LineSeriesDefinition...is this possible?

Tks.

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 01 Oct 2013, 05:03 PM
Hi Brian,

You can use the PointMarkItemStyle of all series definitions to set the PoinMark size (though this property is not applicable to all series definitions). Here's an example:
<telerik:LineSeriesDefinition>
    <telerik:LineSeriesDefinition.PointMarkItemStyle>
        <Style TargetType="telerik:PointMark" x:Key="pointMarkItemStyle">
            <Setter Property="Size" Value="50"/>
        </Style>
    </telerik:LineSeriesDefinition.PointMarkItemStyle>
    <telerik:LineSeriesDefinition.Appearance>
        <telerik:SeriesAppearanceSettings >
            <telerik:SeriesAppearanceSettings.PointMark>
                <telerik:PointMarkAppearanceSettings Shape="Diamond"/>
            </telerik:SeriesAppearanceSettings.PointMark>
        </telerik:SeriesAppearanceSettings>
    </telerik:LineSeriesDefinition.Appearance>
</telerik:LineSeriesDefinition>

You can find more information about customizing the PointMarks' appearance here.

I hope this helps.
 
Regards,
Petar Kirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Chart
Asked by
Brian
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or