OxyColors Gradient

Aug 14, 2013 at 8:23 AM
Hey there,

i'm currently trying to improve the Graphics of my Chart and therefore i wanted to change the PlotAreaBackground to a gradient Color so that it switches from i.e. white to light grey.
This feature is not supported yet, is it? Is there a way to achive this?

Regards Alex
Aug 14, 2013 at 8:42 AM
Edited Aug 14, 2013 at 7:28 PM
Sorry, gradients are not supported. I want to keep the rendering API as simple as possible, to make it easy to port to different platforms.

I recommend reading the books of Tufte and Few (links on home page), they have many recommendations about how a chart should be styled. Background gradients is one of the embellishments they don't recommend!
Aug 14, 2013 at 9:11 AM
If you really NEED the gradient I think you could set the background to Transparent and add a Rectangle of the same size as the Plot behind with the gradient. I don't consider this a good solution or even a solution, maybe just a patch. Good luck
Aug 14, 2013 at 9:23 AM
Thanks for the quick and helpful answers. I think i will just stick with the standard design.
Aug 14, 2013 at 7:25 PM
I thought about it on my way home from work... There is a workaround. Use an ImageAnnotation with an image containing the gradient and stretch it over the plot area.
See the example I just added! (Sorry, I didn't try to make it look pretty :)
Aug 16, 2013 at 7:56 AM
Haha! It's great! Good choice of colors! :) No I won't mess up my charts like this but thank you!