Control color of bars in RadChart having grouping

6 posts, 2 answers
  1. Suresh
    Suresh avatar
    14 posts
    Member since:
    Jun 2011

    Posted 24 Jun 2011 Link to this post

    I have a Silverlight RadChart with one series and grouped by a field. I get different colors for each group but then the colors repeat for every 10 groups. How do I control the colors for each group my self or how do I increase the color range so that it repeats after 15 or more groups.
  2. Answer
    Sia
    Admin
    Sia avatar
    667 posts

    Posted 27 Jun 2011 Link to this post

    Hi Suresh,

    We have introduced 10 default colors per theme. You can add more colors by using the available Palette Brushes functionality. Can you please let us know which theme you use and how many colors you need so we can suggest you more colors.

    All the best,
    Sia
    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
  3. DevCraft banner
  4. Suresh
    Suresh avatar
    14 posts
    Member since:
    Jun 2011

    Posted 27 Jun 2011 Link to this post

    I have got it working by using the below configuration. I would like to get suggestions from you on the colors though, I am using Vista theme. I would need at least 15 colors for my chart.

    <telerikCharting:ChartDefaultView>
               
    <telerikCharting:ChartDefaultView.ChartArea>
                   
    <telerikCharting:ChartArea PaletteBrushesRepeat="False">
                       
    <telerikCharting:ChartArea.PaletteBrushes>
                           
    <SolidColorBrush Color="Green" />
                           
    <SolidColorBrush Color="Orange" />
                       
    </telerikCharting:ChartArea.PaletteBrushes>
                   
    </telerikCharting:ChartArea>
               
    </telerikCharting:ChartDefaultView.ChartArea>
           
    </telerikCharting:ChartDefaultView>

  5. Answer
    Sia
    Admin
    Sia avatar
    667 posts

    Posted 28 Jun 2011 Link to this post

    Hi Suresh,

    Below is our suggestion for 15 colors (10 default and 5 additional) for our Vista theme:
    <telerik:RadChart.PaletteBrushes>
        <SolidColorBrush Color="#FFFA9E00" />
        <SolidColorBrush Color="#FFC70060" />
        <SolidColorBrush Color="#FF98B300" />
        <SolidColorBrush Color="#FF0054EA" />
        <SolidColorBrush Color="#FF6A6A6A" />
        <SolidColorBrush Color="#FFF00000" />
        <SolidColorBrush Color="#FF8664B7" />
        <SolidColorBrush Color="#FF009800" />
        <SolidColorBrush Color="#FF05B1D4" />
        <SolidColorBrush Color="#FFBD00C3" />
        <SolidColorBrush Color="#FFF3C864" />
        <SolidColorBrush Color="#FF35B675" />
        <SolidColorBrush Color="#FFD983EB" />
        <SolidColorBrush Color="#FFFFB69D" />
        <SolidColorBrush Color="#FF5A8CB6" />
    </telerik:RadChart.PaletteBrushes>

    I hope this helps.

    Kind regards,
    Sia
    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
  6. Sujana
    Sujana avatar
    1 posts
    Member since:
    Oct 2011

    Posted 05 Dec 2013 Link to this post

    I am facing the same issue. I am using Windows 8 theme. Can you specify 50 colors for this theme please. This is an urgent issue we are facing which needs to be fixed asap.
  7. Evgenia
    Admin
    Evgenia avatar
    1407 posts

    Posted 09 Dec 2013 Link to this post

    Hi Sujana,



    By default every theme that we ship supports up to 10 predefined colors. To extend them you are free to use Custom palette as described in this help topic. Below you may find the default colors for Windows8 theme:



    <telerikCharting:ResourceDictionaryCollection x:Key="SeriesStyleResources" Repeat="True" >
            <ResourceDictionary>
                <SolidColorBrush x:Key="main" Color="#FF8EBC00" />
            </ResourceDictionary>
            <ResourceDictionary>
                <SolidColorBrush x:Key="main" Color="#FF25A0DA" />
            </ResourceDictionary>
            <ResourceDictionary>
                <SolidColorBrush x:Key="main" Color="#FFEB7A2A" />
            </ResourceDictionary>
            <ResourceDictionary>
                <SolidColorBrush x:Key="main" Color="#FFD8E404" />
            </ResourceDictionary>
            <ResourceDictionary>
                <SolidColorBrush x:Key="main" Color="#FF309B46" />
            </ResourceDictionary>
            <ResourceDictionary>
                <SolidColorBrush x:Key="main" Color="#FF16ABA9" />
            </ResourceDictionary>
            <ResourceDictionary>
                <SolidColorBrush x:Key="main" Color="#FFDC5B20" />
            </ResourceDictionary>
            <ResourceDictionary>
                <SolidColorBrush x:Key="main" Color="#FFF2CA04" />
            </ResourceDictionary>
            <ResourceDictionary>
                <SolidColorBrush x:Key="main" Color="#FF24C6D2" />
            </ResourceDictionary>
            <ResourceDictionary>
                <SolidColorBrush x:Key="main" Color="#FF8A8065" />
            </ResourceDictionary>
        </telerikCharting:ResourceDictionaryCollection>
    <telerikCharting:ChartResourceDictionary x:Key="SeriesStyleMappings">




    Regards,

    Evgenia
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.

    Sign up for Free application insights >>
Back to Top
DevCraft banner