Page 1 of 1

Graph Background color

Posted: Tue Apr 24, 2012 7:25 am
by 9341927
Hi,

I just want to know how to change the Graphic backgorund color.

Image

From the image, As an example, i want to change the white area to blue light.

I found out there is Theme option to play around, But i want to make custom theme.

Thanks in advance

Re: Graph Background color

Posted: Wed Apr 25, 2012 9:16 am
by yeray
Hi Matt,

The properties you have to look at are the panel color and gradient, and the back wall color and gradient. The transparency can also affect this look.
By default, from TeeChart v2010, the back wall has the gradient active. So you can deactive it like this:

Code: Select all

  Chart1.Walls.Back.Gradient.Visible:=false;
In your case it seems you already have the the back wall gradient deactivated, and colored in white. Then you probably just have to change the back wall color:

Code: Select all

  Chart1.Walls.Back.Color:=clBlue;

Re: Graph Background color

Posted: Thu May 10, 2012 1:19 am
by 9341927
Yeray wrote:Hi Matt,

The properties you have to look at are the panel color and gradient, and the back wall color and gradient. The transparency can also affect this look.
By default, from TeeChart v2010, the back wall has the gradient active. So you can deactive it like this:

Code: Select all

  Chart1.Walls.Back.Gradient.Visible:=false;
In your case it seems you already have the the back wall gradient deactivated, and colored in white. Then you probably just have to change the back wall color:

Code: Select all

  Chart1.Walls.Back.Color:=clBlue;
Hi Yeray,
Thanks for the response. :)

I tried to turn off gradient and set the background color, unfortunatily it didn't change. I uploaded a sample program for changing the background color. Could you have a look at it and see what's wrong?

Thanks in advance.

Re: Graph Background color

Posted: Thu May 10, 2012 2:00 pm
by 10050769
Hello Matt Venkat,

You need change the property Transparent of back wall to false as do in next line of code to solve your problem:

Code: Select all

Chart1.Walls.Back.Transparent:=false;
Can you tell us if previous line of code solve your problem?

I hope will helps.

Thanks,

Re: Graph Background color

Posted: Fri May 11, 2012 12:23 am
by 9341927
Sandra wrote:Hello Matt Venkat,

You need change the property Transparent of back wall to false as do in next line of code to solve your problem:

Code: Select all

Chart1.Walls.Back.Transparent:=false;
Hi Sandra,

Thanks for your sweet line of code. It works like a charm. The problem i had is the transparency issue. I didn't turn off the transparent. I was working around with gardient and didn't get it right. But now, it is all fine.
Sandra wrote: Can you tell us if previous line of code solve your problem?

I hope will helps.

Thanks,
It didn't work for my situation. I had to turn off the transparent to make it work.

It is very helpful and thanks for the support.