...
![](/community/download/attachments/208701922/chart%20fig%202b.png?version=1&modificationDate=1661352564000&api=v2)
Figure 2b2a: SQL Chart Properties - Default Datasource
Name | Description |
---|
Datasource | Select the datasource for the chart. - Default Datasource
- Custom Datasource
- Load Data From
- Using List
|
SQL Query | When Datasource is set to "Default Datasource" or "Custom Datasource", this option will show up. You use an SQL Query to produce the dataset required for the graph type. The first column in the dataset will be assumed for the X-axis/label. Example 1:The first column to be returned from the query must be a label (X-axis), followed by value columns for the Y-axis. Code Block |
---|
| SELECT
c_status AS 'status',
COUNT(c_status) AS 'count'
FROM
app_fd_tix_tickets
WHERE
c_status IS NOT NULL
GROUP BY
c_status |
![](/community/download/attachments/208701922/Ticket%20%25A0-%25A0%20Report%202011-11-10%2016-34-20.png?version=1&modificationDate=1655172149000&api=v2)
Example 2: Code Block |
---|
| SELECT
c.c_claimant,
SUM( CAST( replace(c.c_total, '$', '') AS DECIMAL(10, 2)) ) AS 'total',
AVG( CAST( replace(c.c_total, '$', '') AS DECIMAL(10, 2)) ) AS 'avg'
FROM
app_fd_j_expense_claim c
GROUP BY
c.c_claimant
|
![](/community/download/attachments/208701922/Screenshot%202015-09-29%2014.20.25.png?version=1&modificationDate=1655172149000&api=v2)
![](/community/download/attachments/208701922/Screenshot%202015-09-29%2014.20.19.png?version=1&modificationDate=1655172149000&api=v2) |
Data Store | When Datasource is set to "Load Data From", this option will show up. Advance Form Data Binder has more flexible ways to build chart datasets using join, group, and aggregate functions. Please see Datalist Binder for the available binders to use. |
Configure Database | This option is available when the Datasource is set to "Custom Datasource" (Figure 2a). Name | Description |
---|
Database Type | Enter the database type. (example: com.mysql.jdbc.Driver) Please ensure that the database type entered here is compatible with Joget DX 8. For reference, check this Link. | Target DB URL | Enter the Database's URL | Username | Enter your DB username credential. | Password | Enter your DB password credential. |
Tip |
---|
| For a reference of what the parameters entered into "Configure Database" should look like, check the default Joget Datasource settings, Expand the admin bar then go to Settings>System Settings>Datasource & Profile Settings.
|
|
Using List | Name | Description |
---|
List | Select the List that the chart will use to plot data. | Chart Dataset | Select the size of the chart's dataset. - Current Page Dataset
- Entire Dataset
| Show Tabular Data | This option allows you to view the data used to plot the chart in tabular form. - No - Do not show the tabular data
- Top - Show tabular data on top of the chart
- Bottom - Show tabular data at the bottom of the chart
| Show Export Links | Available when Show tabular data is set to either "Top" or "Bottom". When set to "Yes", this option allows you to export the chart into CSV, Excel, XML or PDF directly from the UI page. | Show Filters | Available when Show tabular data is set to either "Top" or "Bottom". When set to "Yes", this option allows you to filter the tabular data used to plot the chart directly from the UI page. |
|
...
![](/community/download/attachments/208701922/image2022-8-11_0-31-33.png?version=1&modificationDate=1661334236000&api=v2)
Figure 6: Chart Properties - Performance & Offline Settings
...