Page 1 of 1
How to change background colour in Teechart
Posted: Tue Apr 30, 2013 2:01 pm
by 13049533
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.
Re: How to change background colour in Teechart
Posted: Tue Apr 30, 2013 3:14 pm
by 10050769
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
Re: How to change background colour in Teechart
Posted: Thu May 02, 2013 10:28 am
by 13049533
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
- chartdesign.png (18.43 KiB) Viewed 12604 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
- chart1.png (12.37 KiB) Viewed 12606 times
that is not i want.
Before changing the panel color then it is saving like in attachment 3( chart2).
- chart2
- chart2.png (12.47 KiB) Viewed 12598 times
Can you please help me how to change this.
Thanks in advance.
Re: How to change background colour in Teechart
Posted: Fri May 03, 2013 9:39 am
by 10050769
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,
Re: How to change background colour in Teechart
Posted: Tue May 07, 2013 12:20 pm
by 13049533
Hi sandra,
Thank you very much for your help. It works well. now i got how to change background colors.
Thanks.....
Re: How to change background colour in Teechart
Posted: Tue May 07, 2013 1:39 pm
by 10050769
Hello vera,
I am glad that my suggestion help you
.
Thanks,