Graph Background color

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Matt Venkat
Newbie
Newbie
Posts: 16
Joined: Wed May 18, 2005 4:00 am
Location: Sydney, Australia
Contact:

Graph Background color

Post by Matt Venkat » Tue Apr 24, 2012 7:25 am

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

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Graph Background color

Post by Yeray » Wed Apr 25, 2012 9:16 am

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;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Matt Venkat
Newbie
Newbie
Posts: 16
Joined: Wed May 18, 2005 4:00 am
Location: Sydney, Australia
Contact:

Re: Graph Background color

Post by Matt Venkat » Thu May 10, 2012 1:19 am

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.
Attachments
Scrollbar.zip
Changinge background color
(29.24 KiB) Downloaded 471 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Graph Background color

Post by Sandra » Thu May 10, 2012 2:00 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Matt Venkat
Newbie
Newbie
Posts: 16
Joined: Wed May 18, 2005 4:00 am
Location: Sydney, Australia
Contact:

Re: Graph Background color

Post by Matt Venkat » Fri May 11, 2012 12:23 am

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.

Post Reply