Page 1 of 1

Disable gradient for legend items

Posted: Sun Mar 24, 2013 5:04 pm
by 17064597
I have bars with gradients from e.g. white to yellow. In my legend, I don't want this gradient.
It makes sense to simply use the second color (yellow) for the small squares.

How do you disable the gradients for legend items?

I tried cloning the chart's first series (to be set for the legend) and modifying it, but that modifies the original series (i.e. the bars)! Please help!

Re: Disable gradient for legend items

Posted: Tue Mar 26, 2013 11:39 am
by yeray

You can have hide the series from the legend with setShowInLegend(false). Then, you could add as many "dummy" series as you want to show in the legend, and set them to show the gradient you wish.