4 Answers, 1 is accepted
0
Accepted
Hello Sivam,
Greetings,
Peter
the Telerik team
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);
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
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
Hi Lauren,
Peter
the Telerik team
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
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
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