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

Legend marker to follow series pointmark?

4 Answers 92 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sivam
Top achievements
Rank 1
Sivam asked on 04 Aug 2010, 04:05 AM
Hi,
I've specified different PointMark figures for different series. The legend marker is still rectangle. How can i make the legend marker to follow the series point mark figure?

Thanks in advance.

4 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 06 Aug 2010, 02:41 PM
Hello Sivam,

You will need to change the series legend display mode, manually add a custom legend item for each series and set its Figure property appropriately like this:

chartSeries1.Appearance.LegendDisplayMode =  Telerik.Reporting.Charting.ChartSeriesLegendDisplayMode.Nothing;
 
LabelItem legendItem = new LabelItem("Series 1");
legendItem.Marker.Appearance.Figure = DefaultFigures.Cross;
legendItem.Marker.Appearance.FillStyle.MainColor = Color.Red;
legendItem.Marker.Appearance.FillStyle.FillType = FillType.Solid;
Chart1.Legend.Items.Add(legendItem);

Greetings,
Peter
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
Lauren
Top achievements
Rank 1
answered on 08 Dec 2010, 08:38 PM
Hi,

Similarly, i'm using different PointMarks for different kind of data.
I would like to be able to display the same marker shape in the legend (see attachement).
I was able to do that by manually adding a custom legend item for each series and set its Figure property appropriately as mentioned in previous post.

However doing it this way, i loose the selection/hover interactivity effects.
Is there a way to automatically bind the legend item shape to the poitmark shape ? or any other way to achieve the above and keep the interactivity effects?

Thanks for your help
Laurence
0
Peter
Telerik team
answered on 14 Dec 2010, 03:50 PM
Hi Lauren,

We are not sure we correctly understand your inquiry. Generally Telerik Reporting Chart item doesn't have any interactivity effects. Are you by any chance using the RadChart for ASP.NET AJAX instead?

All the best,
Peter
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Lauren
Top achievements
Rank 1
answered on 14 Dec 2010, 03:54 PM
Hi,

Sorry i didnt see i was on Telerik Reporting Forum :$. I'm indeed using RadChart for Silverlight.
I'll post on the correct forum...
Thanks
Tags
General Discussions
Asked by
Sivam
Top achievements
Rank 1
Answers by
Peter
Telerik team
Lauren
Top achievements
Rank 1
Share this question
or