Recent

Author Topic: Where to find documentation for TAChart and components  (Read 623 times)

worldttle

  • Newbie
  • Posts: 4
Where to find documentation for TAChart and components
« on: February 07, 2021, 07:01:35 am »
Sorry for newbie question, just started working with TAChart.

Where do I find a complete list of the TAChart components with their properties, procedures and functions?

For example, how do I clear a chart between plots?  How do I add a break in a plot when using LineSeries.AddXY?

Thanks.

jwdietrich

  • Hero Member
  • *****
  • Posts: 1179
    • formatio reticularis
Re: Where to find documentation for TAChart and components
« Reply #1 on: February 07, 2021, 09:25:52 am »
There is extensive documentation in the wiki.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.0.12 | FPC 3.2.0 | PPC, Intel, ARM | macOS, Windows, Linux

wp

  • Hero Member
  • *****
  • Posts: 8402
Re: Where to find documentation for TAChart and components
« Reply #2 on: February 07, 2021, 10:23:49 am »
Where do I find a complete list of the TAChart components with their properties, procedures and functions?
The only "complete" list is the source code: Drop a TChart on the form, go to the editor window and click on the "TChart" identifier with the CTRL key pressed. This opens the unit in which TChart is implemented. (This works with any other identifier, BTW). Scroll down to the public section and you see all procedures and public properties, a bit further down in the published section you find the properties and events accessible from the object inspector.

The "most complete" documentation is the 50-page chapter that I wrote for the Lazarus Handbook. Close to that is the wiki article https://wiki.lazarus.freepascal.org/TAChart_documentation.

For example, how do I clear a chart between plots? 
I don't know what you mean by "between plots". But you can clear a series by calling its Clear method.

How do I add a break in a plot when using LineSeries.AddXY?
Use NaN ("not a number") as y value.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

worldttle

  • Newbie
  • Posts: 4
Re: Where to find documentation for TAChart and components
« Reply #3 on: February 07, 2021, 04:32:21 pm »
Thank you.  That helps.

 

TinyPortal © 2005-2018