Customize RadChartLegend

2 posts, 0 answers
  1. SriRama
    SriRama avatar
    1 posts
    Member since:
    May 2009

    Posted 13 Jul 2009 Link to this post

    Hi,

    I am using RadChart for Silverlight control and trying to customize the Legend. Is there any way can add CheckBoxes in Legend besides the color box? Any help is much appeciated.

    Thanks,
    Rama
  2. Velin
    Admin
    Velin avatar
    391 posts

    Posted 15 Jul 2009 Link to this post

    Hi SriRama,

    Unfortunately, RadChart does not provide this functionality. Alternatively, you can create an external list of CheckBox controls and respond to their Checked/Unchecked events to Add/Remove data series. You can customize the color of the line series using the appearance API exposed by the series definition. Here is a sample:
    dataSeries.Definition.Appearance.Stroke = new SolidColorBrush(Colors.Blue); 

    Hope this will help.

    Regards,
    Velin
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top