The main thing is to setup the system right to get the charts;

  1. Put a charts component on the form
  2. Put a dbseries component on the form
  3. Put a dbtable and data source on the form
  4. Select table and assign fields
  5. Bind the dbseries to the datasource
  6. Bind the datasource to the table
  7. Bind the table to the database connection
  8. Set the x,y fields on the dbcharts
  9. Set the dbtable active property to true
  10. Generate and run the application

Example


Suppose that we have a table like this:



With the following data:


To visualize the data the sampledate will be on the x-axis, the samplevalue on the y axis. The design is as follows



The components are set to:


Connection                                Table


       


Chart serie                                Chart



In this case the chart is set to bar and the result will be:


If set to line: