Hi.. I'm using Telerik Reporting Q2 2011.
I have a problem with my Telerik reporting bar chart. Everything works perfectly , however i need my chart to have different color for each bar.
I've set my chart LegendDisplayMode to itemLabels, make sure my series pallete is not set and write these codes
But still the default color of the bars is still there..
How should i go about this..?
I have a problem with my Telerik reporting bar chart. Everything works perfectly , however i need my chart to have different color for each bar.
I've set my chart LegendDisplayMode to itemLabels, make sure my series pallete is not set and write these codes
public WebCategoryBarChart()
{
//
// Required for telerik Reporting designer support
//
InitializeComponent();
this.chart1.Series[0].Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;
Color[] barColors = new Color[8]{
Color.Purple,
Color.SteelBlue,
Color.Aqua,
Color.Yellow,
Color.Navy,
Color.Green,
Color.Blue,
Color.Red
};
int i = 0;
foreach (ChartSeriesItem item in chart1.Series[0].Items)
{
item.Appearance.FillStyle.MainColor = barColors[i++];
}
//
// TODO: Add any constructor code after InitializeComponent call
//
}
But still the default color of the bars is still there..
How should i go about this..?