Is there a way to programmatically hide a colorLine tool in TeeChart .NET? There is no Visible property and setting Active to false still leaves it visible.
Asked
Active
Viewed 56 times
1 Answers
0
I found that on the official forum, just try :
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
Chart1.View3D:=false;
Chart1.Legend.Visible:=false;
with Chart1.AddSeries(TLineSeries) as TLineSeries do
begin
FillSampleValues(10);
ColorEachPoint:=true;
for i:=0 to Count-1 do
ValueColor[i]:=OperaPalette[i];
end;
with Chart1.AddSeries(TPointSeries) as TPointSeries do
begin
DataSource:=Chart1[0];
ColorEachPoint:=true;
for i:=0 to Count-1 do
ValueColor[i]:=ModernPalette[i];
end;
end;
Otherwise you can try to use a invisible color , instead of "Hidden".
Read these topics :

Emanuel Pirovano
- 226
- 1
- 6
- 20
-
That looks to be for Series Points not a colorLine "Tool". – KLogan Nov 30 '17 at 14:54
-
i have just try to help you. – Emanuel Pirovano Dec 01 '17 at 09:29