Which TeeChart component should I use?

There are three TeeChart icons in the component palette.

TChart TDBChart TQRChart

TQRChart, is a component especially tailored for use with QuSoft’s QuickReport - See the chapter Adding a Chart to QuickReport.TQRChart is descendant of TDBChart.

The 2 components, TChart and TDBChart are the basic building blocks of all TeeChart Charts.

If you wish to create the data Series for your Chart manually, or via a coded procedure then use the TChart component. If you wish to source your graph data from a table or SQL query then use the TDBChart component. You may, of course, use TDBChart in all cases but it will result in a larger compiled size of your code which would be inefficient if you are not using a datasource (explanation follows).

Once an initial data Series is defined, both Chart components, TChart and TDBChart support the use of another data Series as a data source.

- So why two kinds of Chart components?

- couldn’t we achieve this functionality via just one component?

Answer:

Projects compiled with using only TChart components, don't need the Borland database unit (db.pas).

Internally, both derive from the TCustomChart component, which is responsible for most Charting capabilities.