This content has been marked as final.
Show 1 reply
-
1. Re: <rich:chart>how to align xaxis labels center to bar chart?
michpetrov Dec 12, 2016 9:54 AM (in response to ja02)What are you trying to do? If you just want a single series with differently colored columns you shouldn't have to change the data just so it gets rendered that way. You can change the color via hooks.drawSeries. Something like
hooks = { drawSeries: function() { var colors = ['red', 'blue', …], counter = 0; return function(plot, ctx, series) { series.color = colors[counter]; counter++; } }(), … }