stacked bar

Thread is closed for posting
2 posts, 0 answers
  1. Agyeman
    Agyeman avatar
    12 posts
    Member since:
    May 2008

    Posted 22 May 2008 Link to this post

    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.
  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 23 May 2008 Link to this post

    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
Back to Top