Page 1 of 1
series points
Posted: Fri Jun 25, 2004 8:46 pm
by 9232632
Hello, I have an application using a teechart7 component. In it I allow the user to specify the color of the line series on the chart. Changing the color of the lines hasnt been a problem, but I cant seem to change the color of the points that are drawn, so I will end up with a green series line with little black circles drawn over it. Can anyone tell me the name of the property to change at runtime to accomplish this? I have tried changing:
Series->Marks->Color
Series->SeriesColor
Series->Marks->BackColor
Series->Pointer->Color
Series->Brush->Color
and none have had any effect. The line is drawn in the color I want, but the line series marks are black.
Thank you,
Henry Bragg
Posted: Sun Jun 27, 2004 10:38 am
by Pep
Hi Henry,
to change the color of the Series and the Ponter you must use :
Series1.Color := clblue;
Series1.Pointer.Color := clblack;
Posted: Mon Jun 28, 2004 12:14 pm
by 9232632
Hi Pep,
this is what my code looks like (using C++ builder), ItemColor is a TColor variable that gets set earlier in the function. The lines that are drawn display the correct color (that of ItemColor) but the drawn series points remain in black.
SeriesMovieXTotal->Color = ItemColor;
SeriesMovieYTotal->Color = ItemColor;
SeriesMovieXTotal->Pointer->Color =ItemColor;
SeriesMovieYTotal->Pointer->Color =ItemColor;
Any further input on this would be appreciated.
Henry Bragg
Posted: Mon Jun 28, 2004 4:02 pm
by Pep
Hi Henry,
does the example I've posted into the steema.public.attachments newsgroup works fine for you ?
It works fine here using BCB6 and Teechart Pro v7.
If you still having problems, could you plese post an example with which I can reproduce the problem "as is" here (into the same newsgroup) ?
Posted: Mon Jun 28, 2004 5:49 pm
by 9232632
Sorry to have taken so much of your time. It seems I had the Border property of the series points turned on, and the border was black. I had the size of the points so small that only the border was showing. thanks for all your help
Henry Bragg
Posted: Tue Jun 29, 2004 12:47 am
by Pep
Ok, no problem