ChartDirector 6.1 (Java Edition)

Using Data Sources with ChartDirector


The ChartDirector API is designed to accept data values as array variables. This is the most flexible way of accepting data. This flexibility permits ChartDirector to accept data from all kinds of data sources. For example, ChartDirector can accept data from a database, a text file, XML, or as HTTP query parameters. All is needed is to read the data into array variables, and pass them to ChartDirector.

In this section

The DBTable Class
Overview of the ChartDirector.DBTable utility class that allows database table columns to be retrieved as arrays easily.

Database Sample Code Overview
Background information for running the database sample codes in this documentation.

Simple Database Chart
Complete example demonstrating how to perform database queries and create charts .

Producing Multiple Charts With One Database Query
Complete example demonstrating how to perform database queries and use the data to create two charts in the same web page.

Database Clickable Charts
This is a link to an example in the Clickable Charts section. This example demonstrates creating clickable charts with data coming from a database.