Mar 08, 2013, 11:10 PM
[CLOSED] Donut Chart Colorset
Hello,
I need to change a donut chart's color set based on the value. For this, I found my way but I don't think it is the normal way (;
Chart series value changes based on selection of a combobox. So I am calling below code in combobox's change handler:
Chart markup:
I need to change a donut chart's color set based on the value. For this, I found my way but I don't think it is the normal way (;
Chart series value changes based on selection of a combobox. So I am calling below code in combobox's change handler:
App.MyChart.series.items[0].colorSet = [SelectedColorCode, "#eee"];
Chart color changes this way but there is also fluctuation of colors. I have a video demonstrating the issue but can not attach here. How can I change donut chart color set in a healthy way?Chart markup:
<ext:Chart ID="MyChart" runat="server" StyleSpec="background:#fff;" InsetPadding="25" Flex="1" StoreID="MyStore" >
<AnimateConfig Easing="ElasticIn" Duration="1000" />
<Axes>
<ext:GaugeAxis AxisID="MyAxis" Minimum="0" Maximum="100" Steps="10" Margin="-10" Title="My Title">
</ext:GaugeAxis>
</Axes>
<Series>
<ext:GaugeSeries AngleField="MySeries" Donut="0" ColorSet="#F49D10,#ddd">
</ext:GaugeSeries>
</Series>
</ext:Chart>
Thanks.
Last edited by Daniil; Mar 14, 2013 at 9:46 AM.
Reason: [CLOSED]