ChartDirector 6.0 (ASP/COM/VB 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

Reading Data from Database
Sample codes on how to read data from database into array variables.

Reading Data from Text File
Sample codes on how to read data from text files into array variables.

Using ChartDirector with Database in Web Pages
Describes the architectural options of where to perform the database query (in the HTML script or ChartDirector script), where to generate the chart, and how to pass data in between.

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

Direct Database Access
Complete example demonstrating how to perform database queries and create charts in the same script in a web environment.

Pass Data as HTTP Query Parameters
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.