Recent

Author Topic: TAChart is it possible to break a line ?  (Read 1999 times)

Tommi

  • Full Member
  • ***
  • Posts: 213
TAChart is it possible to break a line ?
« on: April 24, 2014, 12:33:53 pm »
With tachart I cannot to break a lineserie,
for example
Chart2LineSeries1.AddXY(0,5);
Chart2LineSeries1.AddXY(1,6);
Chart2LineSeries1.AddXY(2,7);
Chart2LineSeries1.AddXY(8,10);
Chart2LineSeries1.AddXY(9,11);

tracks a segment also between (2,7) and (8,10) but I would like to see nothing there. How can I do ?

Thank you

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: TAChart is it possible to break a line ?
« Reply #1 on: April 24, 2014, 12:48:40 pm »
Use NaN for the y value at the point where you want the line break: http://wiki.lazarus.freepascal.org/TAChart_documentation#Skipping_source_items

 

TinyPortal © 2005-2018