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

stacked bar

1 Answer 94 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Agyeman
Top achievements
Rank 1
Agyeman asked on 22 May 2008, 04:34 PM
This is complex but i will do my best to explain as i really need the help. I am implementing an horizontal bar chart. Now my xaxis item count is four. I have the y values for all xaxis items to build my stack. Now for each stack/series, I want to assign my own custom color. So basically all stack will have different colors. Is this possible and if yes How do I accoumplish it cos its seems the system is still assignng colors to my series eventhough i specify a color. thanks.

In short. what am really asking is how do i specify different my own color for an item in a series for a stacked bar chart.

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 23 May 2008, 10:29 AM
Hello Agyeman,

You need to set RadChart.Series[0].Appearance.FillStyle.MainColor property to the desired color. You can do this for each series in the chart. You can find more details about RadChart series here.

Here is an example:
<Series> 
    <telerik:ChartSeries Name="Series 1" Type="StackedBar"
        <Appearance> 
            <FillStyle FillType="Solid" MainColor="Red"
            </FillStyle> 
        </Appearance> 
    <Items> 
......... 

Hope this helps.

Regards,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Chart (Obsolete)
Asked by
Agyeman
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or