ChartDirector 6.0 (ColdFusion 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

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 in the same script in a web environment.

Producing Multiple Charts With One Database Query
Complete example demonstrating how to perform database queries in the containing HTML page, and pass data to the ChartDirector scripts as HTTP query parameters.

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.