Author Topic: Lazarus TCharts  (Read 1662 times)


  • New Member
  • *
  • Posts: 33
Lazarus TCharts
« on: March 24, 2015, 08:51:34 am »

I am using Lazarus v1.2.6. I found some tutorials on net to create TCharts.
Bar chart is the one I created. Values are being randomly generated in ('RandomSeed' property of 'RandomChartSource' component)
Now I need to display X and Y values according to the database values. How do i do it?
I am using Sqlite database.


  • Hero Member
  • *****
  • Posts: 10632
Re: Lazarus TCharts
« Reply #1 on: March 24, 2015, 09:43:46 am »
Use a TDbChartSource which you can use to link a series (property "Source") to a field of the dataset. There is an example in (lazarus)/components/tachart/demo/db (it is a little bit different since it copies the data from the dataset to a ListChartSource which has some advantages).


TinyPortal © 2005-2018