by Bob Cergol » Thu Dec 27, 2012 4:50 pm
Hi Carlos,
I found the email you sent me a couple weeks ago with the report doc in my inbox and it reminded me to investigate this inconsistency.
What I found is that the donut chart type is ignoring the "setOptions" syntax, even though that works with all the other chart types I tested: Pie, column, bar, line. The newer "<chartColors>" tag does work with all those, including the donut type. I can't explain the inconsistency, but it looks like the donut type is implemented differently somehow. I can't recall overriding the colors with a donut type in the past and so don't know if this used to work in older builds. We'll have to conclude that the recommended way to override the colors in current builds and going forward is to use the Dynamic AI tag and not the highcharts js function.
This works on most chart types -- but not donut:
Highcharts.setOptions({
colors: ['red','green','yellow']
});
This works on all chart types:
<chartColors>red, green, yellow</chartColors>
Regards,
Bob