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

Can't able to fill color in bars

1 Answer 41 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Saran kumar
Top achievements
Rank 1
Saran kumar asked on 18 Jan 2010, 01:43 PM
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.

1 Answer, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 18 Jan 2010, 03:03 PM
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 :)
Tags
Chart (Obsolete)
Asked by
Saran kumar
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Share this question
or