Line Chart Legend problem

Thread is closed for posting
4 posts, 1 answers
  1. Atul Sharma
    Atul Sharma avatar
    3 posts
    Member since:
    Mar 2010

    Posted 15 Mar 2010 Link to this post

    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.....
  2. Answer
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 15 Mar 2010 Link to this post

    In order to actually be able to see the Legend you have to set its visible property to true:

    RadChart1.Legend.Visible = true

  3. Atul Sharma
    Atul Sharma avatar
    3 posts
    Member since:
    Mar 2010

    Posted 16 Mar 2010 Link to this post


    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.

  4. Ves
    Ves avatar
    2926 posts

    Posted 18 Mar 2010 Link to this post

    Hi Atul,

    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.

    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.
Back to Top