Can't able to fill color in bars

Thread is closed for posting
2 posts, 0 answers
  1. Saran kumar
    Saran kumar avatar
    58 posts
    Member since:
    Sep 2009

    Posted 18 Jan 2010 Link to this post

    hi, i designed the chart as
    <telerik:RadChart ID="RadChart1" runat="server" Height="333px" Skin="Telerik" UseSession="true" 
                    Legend-Visible="true" Width="850px" AutoLayout="true" AutoTextWrap="True" SeriesOrientation="Vertical">  
                    <Series> 
                        <telerik:ChartSeries Name="Intake Leads" Type="Bar" DataYColumn="LEAD_COUNT">  
                        <Appearance FillStyle-FillType="ComplexGradient" FillStyle-MainColor="#F8DE6F" ></Appearance>  
                        </telerik:ChartSeries> 
                    </Series> 
                      
                    <PlotArea> 
                        <XAxis DataLabelsColumn="age_group">  
                        </XAxis> 
                        <YAxis Appearance-ValueFormat="General" LabelStep="10">  
                        </YAxis> 
                    </PlotArea> 
                </telerik:RadChart> 

    nothing at code behind, here im using skin telerik and FillStyle-MainColor="#F8DE6F" doesnt work here. always displaying a blue color. but if i apply border color its getting applied.
    what im making wrong here.

    please help.
  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 18 Jan 2010 Link to this post

    I think this is the approach you might want to take:

            <telerik:RadChart runat="server" ID="RadChart1" Skin="Office2007" AutoLayout="true"
                <Series> 
                    <telerik:ChartSeries Name="mySeries" Type="Bar"
                        <Items> 
                            <telerik:ChartSeriesItem XValue="1" YValue="2"
                            </telerik:ChartSeriesItem> 
                            <telerik:ChartSeriesItem XValue="2" YValue="4"
                            </telerik:ChartSeriesItem> 
                        </Items> 
                        <Appearance> 
                            <FillStyle FillType="Solid"MainColor="BurlyWood"> 
                            </FillStyle> 
                        </Appearance> 
                    </telerik:ChartSeries> 
                </Series> 
            </telerik:RadChart>  

    This generates a Bar graph with a brown-ish color :)
Back to Top