dynamic legend for radchart

Thread is closed for posting
2 posts, 0 answers
  1. Rusty
    Rusty avatar
    14 posts
    Member since:
    Oct 2011

    Posted 08 Feb 2012 Link to this post

    I have tied my chart to a sqldatasource.  But I can't get the legend to reflect the the categories showing up.  Can someone show me an example or a demo where the legend reflects the categories in a sqldatasource?
  2. jumpstart
    jumpstart avatar
    479 posts
    Member since:
    Nov 2011

    Posted 09 Feb 2012 Link to this post

    Rusty:

    Maybe I'm misinterpreting your requirement, but I believe your requirement is covered in the Chart/Database online demo.

    The legend is configured to dynamically display the categories from the data source. See the description:

    The above charts are databound to a SqlDataSource Control.
    The first chart shows how to display the results from different categories, grouped by the category name. The X axis labels show the corresponding years. The RadChart1.Legend.Appearance.GroupNameFormat is set to "#VALUE" so the legend items display the actual category name. More details about this property are available in this help topic.


    Hope this helps!
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top