Line Series question
Line Series question
Just a question: what is the difference between ColorEach and ColorEachLine properties?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi UserLS,
According to TeeChart help files:
The Series ColorEach property is a boolean property that controls which color will be drawn on the Series points. If false, all points will be drawn using the Series Series.Color color property. If true, each Series point will be "colored" with its corresponding point color. The point colors are stored in the Series.PointColor array property. If a point has an Color.Empty color value, then a TeeChart determined, available color value will be used to draw it.
ColorEachLine enables/disables the coloring of each connecting line of a series.
So, for example, using the code snippet below you'll get a line series with visible pointers of a different color each but default series color connecting lines.
According to TeeChart help files:
The Series ColorEach property is a boolean property that controls which color will be drawn on the Series points. If false, all points will be drawn using the Series Series.Color color property. If true, each Series point will be "colored" with its corresponding point color. The point colors are stored in the Series.PointColor array property. If a point has an Color.Empty color value, then a TeeChart determined, available color value will be used to draw it.
ColorEachLine enables/disables the coloring of each connecting line of a series.
So, for example, using the code snippet below you'll get a line series with visible pointers of a different color each but default series color connecting lines.
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
line1.Pointer.Visible = true;
line1.ColorEach = true;
line1.ColorEachLine = false;
line1.FillSampleValues();
}
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 |