|
changing background of chart |
Posted by robin Imrie on Dec-15-2010 20:33 |
|
Hi,
if you run the Enhanced Area Chart and look at the jpg that it creates you can see there is
a white background outside the chart frame. How do you change the colour of this
background.
I need to be able to do this as I have a non white background in my application (C++,
VS2008, QT)
thanks
Robin |
Re: changing background of chart |
Posted by Peter Kwan on Dec-15-2010 21:23 |
|
Hi Robin,
In ChartDirector terminology, in a chart with an overall frame, the background color of the chart refers to the background inside the frame. The background outside the frame (which would be visible in the corners in a rounded frame or as the background of a soft drop shadow) is called the "exterior background color". Many common graphics program (such as Photoshop) also called this color the "matt color".
When you use setRoundedFrame to configure a rounded frame, the first parameter can be used to configure the "exterior background color". For example:
//set exterior background color to light red
c->setRoundFrame(0xffcccc);
Hope this can help.
Regards
Peter Kwan |
Re: changing background of chart |
Posted by robin Imrie on Dec-15-2010 22:38 |
|
Hi Peter,
Thanks very much for that all sorted.
Regards
Robin |
|