Recent

Author Topic: Add Series programatically  (Read 3270 times)

anis2505

  • Full Member
  • ***
  • Posts: 201
Add Series programatically
« on: November 24, 2012, 11:20:53 am »
Hi,

I think this is simple  :).

I want to create series (LineSeries in my case) by code and add it to a chart.

Please help.

regards
Dear Confucius you said {A picture is worth a thousand words}
I say {a good example is worth a thousand words}

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: Add Series programatically
« Reply #1 on: November 24, 2012, 12:30:53 pm »
See "basic" demo.
Demos are located in components/tachart/demo directory.

anis2505

  • Full Member
  • ***
  • Posts: 201
Re: Add Series programatically
« Reply #2 on: November 24, 2012, 12:38:56 pm »
See "basic" demo.
Demos are located in components/tachart/demo directory.

Thank you   :)
Dear Confucius you said {A picture is worth a thousand words}
I say {a good example is worth a thousand words}

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Add Series programatically
« Reply #3 on: November 24, 2012, 12:46:14 pm »
And if you haven't found it already ;)
http://wiki.lazarus.freepascal.org/Category:TAChart
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

anis2505

  • Full Member
  • ***
  • Posts: 201
Re: Add Series programatically
« Reply #4 on: November 24, 2012, 02:44:48 pm »
And if you haven't found it already ;)
http://wiki.lazarus.freepascal.org/Category:TAChart

Thanks  :).

I have seen the documentation and all I can find is using the designer to add items. Maybe I have missed something  :(.

Dear Confucius you said {A picture is worth a thousand words}
I say {a good example is worth a thousand words}