Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A couple of tchart questions.

Status
Not open for further replies.

pierrotsc

Programmer
Nov 25, 2007
358
0
0
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top