How to change background colour in Teechart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
biji
Newbie
Newbie
Posts: 35
Joined: Wed Jul 02, 2008 12:00 am

How to change background colour in Teechart

Post by biji » Tue Apr 30, 2013 2:01 pm

Hi,

I want to change background colour of my TeeChart. presently i have gray colour and i want to change to white. I have tried by changing properties like by going into chart ==> Panel==>Background, i have changed color but still it is gray. i don't know why it is not changing. Is there any otherway or how to change background color in TeeChart. But my GUI color is also in gray. I am programming C# windows application. Anyone help me please.

Thank you very much.

veera.

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

Re: How to change background colour in Teechart

Post by Sandra » Tue Apr 30, 2013 3:14 pm

Hello vera,

First you must disable the Gradient of Chart, after, you be able to change the color of tChart1 as do in next line of code:

Code: Select all

         tChart1.Panel.Gradient.Visible = false; 
            tChart1.Panel.Color = Color.White; 
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

biji
Newbie
Newbie
Posts: 35
Joined: Wed Jul 02, 2008 12:00 am

Re: How to change background colour in Teechart

Post by biji » Thu May 02, 2013 10:28 am

Hi Sandra,

I have tried as you said but it is changing when it is displaying and when i save chart then it appearing totally block. My actual problem is like this. I have the chart design is like as shown below in attachment 1 (chart design).
chartdesign.png
chartdesign
chartdesign.png (18.43 KiB) Viewed 12513 times
This design is when i change panel color according to your suggestion. It is changing the outer side of chart not inside of chart.(i mean inside the block label). I want to change the color of chart inside the block label.
when i save the above chart after updating chart with some values then it is looking like in the attachment 2(chart1).
chart1.png
chart1
chart1.png (12.37 KiB) Viewed 12515 times
that is not i want.
Before changing the panel color then it is saving like in attachment 3( chart2).
chart2.png
chart2
chart2.png (12.47 KiB) Viewed 12507 times
Can you please help me how to change this.

Thanks in advance.

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

Re: How to change background colour in Teechart

Post by Sandra » Fri May 03, 2013 9:39 am

Hello Vera,

If you want change the Chart background color, you need change the color of back walls or make back wall doesn't visible. Please, taking a look at my suggestions codes to change colors:

1.- If you want wall isn't visible, need change color of panel, too:

Code: Select all

  //Change Panel Color
            tChart1.Panel.Gradient.Visible = false; 
            tChart1.Panel.Color = Color.Red;
            //Do doesn't visible Wall Back
            tChart1.Walls.Back.Visible = false;
            tChart1.Walls.Back.Color = Color.Red; 
2.- if you want only change color of back wall you must do next:

Code: Select all

  //Change color visible wall back
            tChart1.Walls.Back.Gradient.Visible = false;
            tChart1.Walls.Back.Color = Color.Red; 
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

biji
Newbie
Newbie
Posts: 35
Joined: Wed Jul 02, 2008 12:00 am

Re: How to change background colour in Teechart

Post by biji » Tue May 07, 2013 12:20 pm

Hi sandra,

Thank you very much for your help. It works well. now i got how to change background colors.

Thanks.....

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

Re: How to change background colour in Teechart

Post by Sandra » Tue May 07, 2013 1:39 pm

Hello vera,

I am glad that my suggestion help you :D.

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

Post Reply