When I created stacked bars chars the legend is always reverse to what the order of the stacked bars are. Is there any way to achieve the legend matching to colors of the stacked bar?
3 Answers, 1 is accepted
answered on 23 Sep 2008, 07:18 AM
This is the expected behavior as the bars are stacked from the bottom towards the top, while the legend items are added top to bottom. You can wire BeforeLayout event of the chart and reorder the RadChart.Legend.Items collection.
All the best,
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Thanks for providing the solution, Travis. This "expected behaviour" excuse just seems like a cover-up for sloppy design. Who in their right mind would want a legend ordered opposite to the many items in a stacked bar chart?