Hello,
I've stumbled upon a "hidden feature" in the radchart i guess :)
I've got some code coloring my chart as follows
Where Colorindexes is a list of integers representing the colors to be used.
When I use the filltype Solid, everything is working fine.
When I use filltype Gradient, it seems that it doesn't show the colors i defined, but the colors of the seriespalette (which in my case is default).
When i use filltype ComplexGradient, i get an alert on the client with an errormessage like "An unexpected error has occured. Please review the innerexception for more details."
This happens only with barcharts. I've never had a problem with line charts. The remaining filltypes are working fine as well.
I'm using the solid filltype now, but a gradient would be nice :)
Greetings
I've stumbled upon a "hidden feature" in the radchart i guess :)
I've got some code coloring my chart as follows
try |
{ |
Palette ColorPalette = CreatePalette(); |
Chart.SeriesPalette = ""; |
int SerieIndex = 0; |
foreach (int ColorIndex in ColorIndexes) |
{ |
Chart.Series[SerieIndex].Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid; |
Chart.Series[SerieIndex].Appearance.FillStyle.MainColor = ColorPalette.Items[ColorIndex].MainColor; |
Chart.Series[SerieIndex].Appearance.FillStyle.SecondColor = ColorPalette.Items[ColorIndex].SecondColor; |
SerieIndex++; |
} |
} |
When I use the filltype Solid, everything is working fine.
When I use filltype Gradient, it seems that it doesn't show the colors i defined, but the colors of the seriespalette (which in my case is default).
When i use filltype ComplexGradient, i get an alert on the client with an errormessage like "An unexpected error has occured. Please review the innerexception for more details."
This happens only with barcharts. I've never had a problem with line charts. The remaining filltypes are working fine as well.
I'm using the solid filltype now, but a gradient would be nice :)
Greetings