Atul Sharma
Top achievements
Rank 1
Atul Sharma
asked on 15 Mar 2010, 01:34 PM
Hi guys!
Plz tell me how to get Legends in Line Chart. Altough i tried to set Name property under Chart Series but still unable to get Legends.
Thanks in advance.....
Plz tell me how to get Legends in Line Chart. Altough i tried to set Name property under Chart Series but still unable to get Legends.
Thanks in advance.....
3 Answers, 1 is accepted
0
Accepted
Schlurk
Top achievements
Rank 2
answered on 15 Mar 2010, 03:52 PM
In order to actually be able to see the Legend you have to set its visible property to true:
RadChart1.Legend.Visible = true; |
0
Atul Sharma
Top achievements
Rank 1
answered on 16 Mar 2010, 06:52 AM
Hi
Thanks for reply....
Can you please tell which property, I need to set in Area graph to get colors of my choice for the particular area. On setting skins provided by telerik , I do get different colors but along with that I want colors to of my choice.
Adding further to my question....
This is regarding x-values that are generated for the graphs. Can i replace x-value intervals as tabs titled with x-values. So now if i click on the particular value tab it functions equivalent to drill down graph.
Actually i have to customize any graph which caters drill down features . Drill down should work from above mentioned tabs . I saw in drill down bar graphs where activation region takes down to next level.
Same thing I want from x-values......
Hope i am clear with my description.
Thanks for reply....
Can you please tell which property, I need to set in Area graph to get colors of my choice for the particular area. On setting skins provided by telerik , I do get different colors but along with that I want colors to of my choice.
Adding further to my question....
This is regarding x-values that are generated for the graphs. Can i replace x-value intervals as tabs titled with x-values. So now if i click on the particular value tab it functions equivalent to drill down graph.
Actually i have to customize any graph which caters drill down features . Drill down should work from above mentioned tabs . I saw in drill down bar graphs where activation region takes down to next level.
Same thing I want from x-values......
Hope i am clear with my description.
0
Hi Atul,
You can set the area color like this:
As for the drill-down functionality you need -- RadChart is rendered as an image, so embedding tab will not be supported. Still, RadChart supports image map rendering. You can control this through every element's ActiveRegion property. You can attach a custom javascript function in ActiveRegion.Attributes property:
Note that for auto-generated axis items the above statement should be placed in the BeforeLayout event handler as the axis items are not available before that.
Sincerely,
Ves
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.
You can set the area color like this:
RadChart1.Series[0].Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid;
RadChart1.Series[0].Appearance.FillStyle.MainColor = Color.Red;
As for the drill-down functionality you need -- RadChart is rendered as an image, so embedding tab will not be supported. Still, RadChart supports image map rendering. You can control this through every element's ActiveRegion property. You can attach a custom javascript function in ActiveRegion.Attributes property:
RadChart1.PlotArea.XAxis.Items[0].ActiveRegion.Attributes = "onclick=alert('click');";
Note that for auto-generated axis items the above statement should be placed in the BeforeLayout event handler as the axis items are not available before that.
Sincerely,
Ves
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.