Page 1 of 1
Line Series question
Posted: Thu Jan 08, 2009 7:52 pm
by 14045174
Just a question: what is the difference between ColorEach and ColorEachLine properties?
Posted: Fri Jan 09, 2009 8:54 am
by narcis
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.
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();
}