# Robot Corporation

### Sample Sales Reporting Application

The chart above shows the total sales during 2008 for each product type.

« back to Index
Sales by Month »
Sales by Month - Stacked Bars »
Sales by Region »
Sales by Region - Stacked Cylinders »

## Page Notes

The graph above is produced using the "Database Info" method with the following IMG tag:-
<img src="../graph/stacked-vertical-cylinder-graph.php? dbinfo=../sampleApplication/dataQueries/salesByRegionDB.php& config=../sampleApplication/graphConfig/salesByRegionStackedConfig.php" width="700" height="400">

The graph data is read directly from the database using the information contained in the file:-
/sampleApplication/dataQueries/salesByRegionDB.php

The settings and styles are set from the information output by the script:-
/sampleApplication/graphConfig/salesByRegionStackedConfig.php
NOTE: This script dynamically calculates the X-axis labels by reading information from the database.

## Next Steps

#### Documentation Contents

Documentation »
Adding Graphs to Web Pages »
Configuration Options and Parameters »
Supplying the Graph with Data »

#### Database Connections

Database Information method »
Custom Data Function »

#### Also see:-

Online Tutorials »
Online Documentation »
If you encounter any problems then please feel free to contact JPowered Support ».