Get the colors of the legend

2 posts, 0 answers
  1. John Giblin
    John Giblin avatar
    155 posts
    Member since:
    Jan 2006

    Posted 13 Dec 2011 Link to this post

    I want to do something similar to the example #Chart/EmptyValues.  There is a legend/datagrid to the left of the chart. When I looked at the code it appears the hard code the colors for the  datagrid.  is there a way to get the colors used in the chart to do something more dynamic.
  2. Sia
    Admin
    Sia avatar
    756 posts

    Posted 15 Dec 2011 Link to this post

    Hi John Giblin,

    You can use a custom palette brushes collection.
    As reference please check this example.

    If you need the default chart colors, we will provide you with the needed palette. Just let us know which Telerik theme [and series definition respectively] is used in your application.

    Greetings,
    Sia
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top