Hello,
What properties do I modify to change the following at Runtime?
1) Chart Grid Color
2) Chart Line Color (the color of the line connecting each data point)
3) X and Y axis label Font Name
4) X and Y axis label Font Size
5) X and Y axis label Font Color
Thanks very much...
Modifying fonts and colors
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi NewToThis1,
Please find below the answers to your questions:
Please find below the answers to your questions:
1) Chart Grid Color
Code: Select all
tChart1.Axes.Bottom.Grid.Color = Color.Red;
tChart1.Axes.Left.Grid.Color = Color.Red;
This may depend on the series style you are using and how is your chart set. In a 2D line series would be:2) Chart Line Color (the color of the line connecting each data point)
Code: Select all
line1.LinePen.Color = Color.Green;
3) X and Y axis label Font Name
Code: Select all
tChart1.Axes.Left.Labels.Font.Name = "Verdana";
tChart1.Axes.Bottom.Labels.Font.Name = "Verdana";
4) X and Y axis label Font Size
Code: Select all
tChart1.Axes.Left.Labels.Font.Size = 18;
tChart1.Axes.Bottom.Labels.Font.Size = 18;
5) X and Y axis label Font Color
Code: Select all
tChart1.Axes.Left.Labels.Font.Color = Color.Blue;
tChart1.Axes.Bottom.Labels.Font.Color = Color.Blue;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 10
- Joined: Fri Nov 15, 2002 12:00 am