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

Series and Transparency using the default colors

2 Answers 110 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Kristjan Einarsson
Top achievements
Rank 1
Kristjan Einarsson asked on 10 Feb 2011, 04:48 PM
Hi, can I set the set the transparency of all data series in the chart ? (without affecting the pallet from telerik summer theme)

Best regards
kristján

2 Answers, 1 is accepted

Sort by
0
Accepted
Sia
Telerik team
answered on 15 Feb 2011, 10:32 AM
Hi Kristjan Einarsson,

The default palette of our Summer theme is as follows:
<SolidColorBrush Color="#FF168BAC" />
<SolidColorBrush Color="#FFA9DB18" />
<SolidColorBrush Color="#FFE8D34C" />
<SolidColorBrush Color="#FFB38DC8" />
<SolidColorBrush Color="#FF58BCE0" />
<SolidColorBrush Color="#FFCCCCCC" />
<SolidColorBrush Color="#FFADE4B3" />
<SolidColorBrush Color="#FFA4A3A3" />
<SolidColorBrush Color="#FF5FB26B" />
<SolidColorBrush Color="#FF717070" />

In my opinion the best way to achieve the desired transparency is to add a custom pallette based on the default one but with changed alpha channel. Here is an example:
<telerikChart:RadChart.PaletteBrushes>
    <SolidColorBrush Color="#7F168BAC" />
    <SolidColorBrush Color="#7FA9DB18" />
    <SolidColorBrush Color="#7FE8D34C" />
    <SolidColorBrush Color="#7FB38DC8" />
    <SolidColorBrush Color="#7F58BCE0" />
    <SolidColorBrush Color="#7FCCCCCC" />
    <SolidColorBrush Color="#7FADE4B3" />
    <SolidColorBrush Color="#7FA4A3A3" />
    <SolidColorBrush Color="#7F5FB26B" />
    <SolidColorBrush Color="#7F717070" />
</telerikChart:RadChart.PaletteBrushes>

Please try this approach and let us know if it is not appropriate for your scenario.

Greetings,
Sia
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Kristjan Einarsson
Top achievements
Rank 1
answered on 16 Feb 2011, 10:44 AM
for anyone else looking for this here is a fine article

http://www.telerik.com/support/kb/aspnet-ajax/chart/setting-hexadecimal-value-for-color-transparency-of-radchart-elements.aspx
Tags
Chart
Asked by
Kristjan Einarsson
Top achievements
Rank 1
Answers by
Sia
Telerik team
Kristjan Einarsson
Top achievements
Rank 1
Share this question
or