This is a migrated thread and some comments may be shown as answers.

Assigning colors to the graph of bubbles

1 Answer 23 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Carlos Rodriguez
Top achievements
Rank 1
Carlos Rodriguez asked on 10 May 2010, 11:29 PM
As I can assign a specific color to each bubble in the bubble chart?
As extra information, I am using DataSeries to create the bubbles.

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 13 May 2010, 09:42 AM
Hi Carlos Rodriguez,

You can use the PaletteBrushes property to change the default colors of your BubbleSeries.

 If you want to set it in your xaml:
<UserControl x:Class="SilverlightApplication1.MainPage"
    xmlns:TelerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting">
    
    <Grid x:Name="LayoutRoot">
        <TelerikChart:RadChart x:Name="RadChart1">
            <TelerikChart:RadChart.PaletteBrushes>
                <SolidColorBrush Color="Red" />
                <SolidColorBrush Color="Blue" />
            </TelerikChart:RadChart.PaletteBrushes>
        </TelerikChart:RadChart>
    </Grid>
</UserControl>

If you want to set it in your code behind:
RadChart1.PaletteBrushes.Add(new SolidColorBrush(Colors.Red));
RadChart1.PaletteBrushes.Add(new SolidColorBrush(Colors.Blue));

More information about this way of styling can be found in the help section of our website.
I hope this helps.

Sincerely yours,
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.
Tags
Chart
Asked by
Carlos Rodriguez
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or