Hi,
I tried to customize the color of my series, but for some reason I always see the predefined default colors.
MY code looks like:
line = new Steema.TeeChart.Styles.Line();
line.LinePen.Color = Color.Red;
tChart1.Series.Add(line);
Now I expect alle series to be red, but alas .. default colors again.
Any idea what might be wrong.
Thanks,
Antoon Koster
WL|Delft Hydraulics
Netherlands
Coloring series
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Antoon,
Yes, you can use:
You can also set your series point color when adding values using:
Yes, you can use:
Code: Select all
line.Color=Color.Red;
Code: Select all
tChart1.Series[0].Add(2, Color.Green);
tChart1.Series[0].Add(3, Color.Green);
tChart1.Series[0].Add(1, Color.Green);
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: 35
- Joined: Wed Feb 25, 2004 5:00 am
- Location: WL| Delft Hydraulics, Holland
- Contact:
Hi,
Great, It works ....
Last question, I would like to have the lines of my series a little but thicker.
How can I set the thickness of my lines.
I tried with the code:
line.LineHeight = 10; // vertical thickness of the line in pixels
but it did not work.
Some help would be nice.
Thanks,
Antoon Koster
Netherlands
Great, It works ....
Last question, I would like to have the lines of my series a little but thicker.
How can I set the thickness of my lines.
I tried with the code:
line.LineHeight = 10; // vertical thickness of the line in pixels
but it did not work.
Some help would be nice.
Thanks,
Antoon Koster
Netherlands
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Antoon,
This will depend on if you are using 3D or 2D view.
For 2D view use:
For 3D view use:
This will depend on if you are using 3D or 2D view.
For 2D view use:
Code: Select all
line.LinePen.Width=3;
Code: Select all
line.LineHeight = 3;
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 |