Page 1 of 1

Pointer Brush Color

Posted: Wed May 09, 2007 8:34 pm
by 8739068
I don't know if this is a bug or just how

I have the following

Steema.TeeChart.Styles.Line series = new Steema.TeeChart.Styles.Line();
series.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle;
series.Pointer.HorizSize = 5;
series.Pointer.VertSize = 5;
series.Pointer.Pen.Visible = false;
series.Transparency = 75;
series.Pointer.Transparency = series.Transparency;
series.Pointer.Visible = true;

Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(TChart1, Steema.TeeChart.Themes.Theme.SolidPalette)


I notice that the circles that make up the pointers are colored black and not the same color as the line in the line series. Is this a bug or is it the intention for ApplyPalette to work?

I would like the Pointer to be the same color as the line drawn between the points.

Posted: Thu May 10, 2007 10:13 am
by narcis
Hi Mike,

I'd seems a bug to me. I've added it (TF02012210) to our defect list to be fixed for future releases.

In the meantime, you can assign series' Brush color to Pointer's color:

Code: Select all

			Steema.TeeChart.Styles.Line series = new Steema.TeeChart.Styles.Line(tChart1.Chart);
			series.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle;
			series.Pointer.HorizSize = 5;
			series.Pointer.VertSize = 5;
			series.Pointer.Pen.Visible = false;
			series.Transparency = 75;
			series.Pointer.Transparency = series.Transparency;
			series.Pointer.Visible = true;

			Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(tChart1.Chart, Steema.TeeChart.Themes.Theme.SolidPalette);
			series.Pointer.Brush.Color = series.Brush.Color;