Q.3. Set up Data Sources in the Registry

The first data source to set up is a database. EspressChart comes with two sample databases. One is HSQL which is a pure Java application database. The other is a MS Access Database. Both contain the same data.

Start Chart Designer and open your data registry again. From the Data Source Manager, click on the Databases note in the left-hand frame, and click the Add button. A dialog will then appear prompting you to enter the connection information for the new database. Enter Woodview as the name of the Database, enter jdbc:hsqldb:help/examples/DataSources/database/woodview for the URL, and enter org.hsqldb.jdbcDriver as the driver. Click on both the Require Login and Save Password boxes. Then enter sa for the user name and leave the password blank.

Setup Database dialog

Leave the auto-join and table name properties alone and click the Test Connection button to make sure you've entered the information correctly. Then click OK to bring back up the data source manager window, where there will be a new node under Databases for Woodview.

To add a text data source, click on the TXTFiles node in the left-hand frame of the Data Source Manager and click Add. A dialog will appear prompting you to specify a display name for the data source and the location of the text file. Enter any name you would like and then press the Browse button. Browse to help/examples/DataSources/text/ and select StartGuide.txt.

Data Source Manager

Clicking OK will bring back up the Data Source Manager where you will see a new node under TXTFiles for the text data source that you have just entered.

Data Source Manager

There is an additional sample text file under help/examples/DataSources/text/ called Sample.dat. This expanded sample file contains data for each data type. You can use this file to explore the different chart types and options.