I am creating line chart dinamically from a database. Each time i adda record with points values, i display a line.
// Fill the chart
Chart.View3D := false;
Chart.Legend.ResizeChart := False;
chart.RemoveAllSeries;
// Add Diagonal
line := TLineSeries.Create(self);
Chart.AddSeries(line);
line.Pointer.Visible := True;
line.Pointer.Style := psCircle;
line.Pointer.Size:=3;
line.AddXY(0, 0, '', clTeeColor);
line.AddXY(13, 13, '', clTeeColor);
line.AddXY(26, 26, '', clTeeColor);
line.AddXY(38, 38, '', clTeeColor);
....
It looks like the colors that the lines are being display start with red, green, yellow.
The thing is that if i hide the line in the middle, the line that was yellow becomes green. Anyway, i can make the line colors stick to the graph?
And, in the legend, i have the graph name displayed but whhen i only have one graph, it displays all the points instead. Anyway to prevent that?
Thanks.
P
// Fill the chart
Chart.View3D := false;
Chart.Legend.ResizeChart := False;
chart.RemoveAllSeries;
// Add Diagonal
line := TLineSeries.Create(self);
Chart.AddSeries(line);
line.Pointer.Visible := True;
line.Pointer.Style := psCircle;
line.Pointer.Size:=3;
line.AddXY(0, 0, '', clTeeColor);
line.AddXY(13, 13, '', clTeeColor);
line.AddXY(26, 26, '', clTeeColor);
line.AddXY(38, 38, '', clTeeColor);
....
It looks like the colors that the lines are being display start with red, green, yellow.
The thing is that if i hide the line in the middle, the line that was yellow becomes green. Anyway, i can make the line colors stick to the graph?
And, in the legend, i have the graph name displayed but whhen i only have one graph, it displays all the points instead. Anyway to prevent that?
Thanks.
P