delphi - TeeChart TLineSeries - Is it possible to draw multiple lines per series? -



delphi - TeeChart TLineSeries - Is it possible to draw multiple lines per series? -

is possible draw multiple lines single tlineseries using teechart? specify field in dataset series should grouping by, drawing 1 line per group. or not possible , series should added chart each group/line should displayed?

you accomplish setting xvalues.order lonone , adding null point each time want start new line. however, speed drawing , point handling tfastlineseries uses same color (seriescolor) points. if want utilize diferent colors individual points should utilize tlineseries instead.

uses series; procedure tform1.formcreate(sender: tobject); var i, j: integer; begin chart1.view3d:=false; chart1.legend.visible:=false; chart1.addseries(tfastlineseries) tfastlineseries begin xvalues.order:=lonone; treatnulls:=tndontpaint; i:=0 4 begin if i>0 addnullxy(0,0); //start new line addxy(0,random*1000); j:=1 24 addxy(j, chart1[0].yvalue[chart1[0].count-1] + random*10 - 5); end; end; end;

anyway, don't see why 1 above instead of creating several tfastline series.

--

best regards,

yeray alonso

steema back upwards central

delphi delphi-xe teechart

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -