This content has been marked as final.
Show 4 replies
-
1. Re: change color of pie and bar chart ??
michpetrov Feb 5, 2015 4:58 AM (in response to lordalucard7545)Hi,
the colors are defined globally in options.colors, so you can use @hooks to change it:
var hooks = { processOptions: [function(plot,options) { options.colors = ["#f00", "#0f0", "#00f"]; }] };
<rich:chart … hooks="hooks"> … </rich:chart>
-
2. Re: change color of pie and bar chart ??
lordalucard7545 Feb 5, 2015 7:29 AM (in response to michpetrov)Hi Michal,
thank you very much , it works like a charme, please im wondering also if there is a possibility to always display the percentage in the pie chart without waiting of mouse event ?
Thanks
-
3. Re: change color of pie and bar chart ??
michpetrov Feb 5, 2015 9:29 AM (in response to lordalucard7545)I assume there is. We're only providing some basic attributes for the library, it's best if you take a look at flotcharts documentation and then put the necessary values into hooks.
-
4. Re: change color of pie and bar chart ??
lordalucard7545 Feb 6, 2015 4:02 AM (in response to michpetrov)Ok, thank u very much for ur help