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.
1 Answers
0
votes
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 :