PHP Report Maker supports simple charting. Note that current version only supports one series of data in each chart and that negative values cannot be plotted. However, it is possible to create more than one charts for each report.
After loading the database, the database objects (tables, views, custom views and reports) will be shown in the left pane (the database pane). Click on any database object to go to the Chart Setup Page for that object at any time. The Chart Setup Page is next to the Field Setup page, if the active page is Field Setup Page, click the [Chart] tab to switch to the Chart Setup Page.
The Chart Setup pages consists of two section. The left section is a list showing all charts for the report. The right section is a panel showing various properties of the selected chart.
To setup chart properties, select a chart in the left section first, then you can modify its properties in the right panel.
You should become familiar with the charting terminology so that you'll know what to look for when you want to edit a chart. Read Chart XML Reference first if necessary.
| Name |
The name of the chart.
This is an internal name of the chart for referencing the chart, make sure the chart names for each report are unique. This is analogous to field name of a field in a database table. |
| Caption |
The caption of the chart.
This is the actual caption to be displayed on the chart and is analogous to field caption of a field in a database table. |
| Show |
Show or hide the chart in the report page. |
| Position |
The position of the chart in the report. Possible values are:
Default is Bottom. Note that by default the dimension of each chart is 550px(W) x 450px(H), if you put the chart on left or right of the report, the user may to need to scroll horizontally to view the chart. |
| Type |
The type of the chart. Possible values are:
- Column 2D Chart
- Column 3D Chart
- Pie 3D Chart
- Pie 2D Chart
- Line 2D Chart
- Bar 2D Chart
- Area 2D Chart
- Doughnut 2D Chart
Registered version supports the following chart types also:
- Multi-series Column 2D Chart
- Multi-series Column 3D Chart
- Multi-series Line 2D Chart
- Multi-series Area 2D Chart
- Multi-series Bar 2D Chart
- Stacked Column 2D Chart
- Stacked Column 3D Chart
- Stacked Area 2D Chart
- Stacked Bar 2D Chart
|
| Sort Type |
Specifies how to sort the data for charting. Possible values are:
- NO SORT - default, data sorted as in report
- X ASC - sort by category labels in ascending order
- X DESC - sort by category labels in descending order
- Y ASC - sort by values in ascending order
- Y DESC - sort by values in descending order
|
| Category (X) Axis |
| Field Name |
The field that contains the categories of the chart |
| Title |
X-axis (category) title. Displays the category of the plotted data. |
| Value (Y) Axis |
| Field Name |
The field that contains the values of the chart |
| Title |
Y-axis (value) title. Displays a description for the scale of values against which the data is plotted. |
| Series |
| Field Name |
The field that contains the series.
|
| Width |
Width of the total area of the chart (Width of the Flash object). Default is 550 (pixels). |
| Height |
Height of the total area of the chart (Height of the Flash object). Default is 450 (pixels). |
| Background color |
The background color of total area of the chart |
| Show labels |
Show labels on
the (usually horizontal) axis that displays the category labels for all the data series. |
| Show values |
Show values as data labels at data points to indicate the specific value or category. |
| Show hover |
Show hovering box when the user moves the mouse cursor over the data point. The hovering box shows the label and value of the data point. |
| Transparency (%) |
Transparency of the data point. 0% is transparent, 100% is opaque. |
| Color palette |
Colors of the data points. You can choose your own color palette by clicking [...] button and change the colors. |
| Trendline (Registered version only) |
| Show |
Show the trend line |
| Start value |
The starting y-axis value for the trendline. Say, if you want to plot a slanted trendline from value 102 to 109, the startValue would 102. |
| End value |
The ending y-axis value for the trendline. Say, if you want to plot a slanted trendline from value 102 to 109, the endValue would 109. If you do not specify a value for endValue, it would automatically assume the same value as startValue. |
| Color |
Color of the trend line and its associated text. |
| Display value |
If you want to display a string caption for the trend line by its side, you can use this attribute. Example: displayValue='Last Month High'. When you don't supply this attribute, it automatically takes the value of startValue. |
| Thickness |
Thickness of the trend line |
| Is trend zone |
Whether the trend would display a line, or a zone (filled colored rectangle). |
| Show on top |
Whether the trend line/zone would be displayed over other elements of the chart. |
| Alpha |
Alpha (transparency) of the trend line (%) |