Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Table of Contents |
---|
The Chartjs ChartJs Menu plugin is a new easy-to-use charting userview menu plugin for Joget DX, and can be considered as an alternative to the default bundled Chart Menu.
Just select any datalist in your app to display its records in several available graph types.
The additional benefits of using this plugin is the ability to reuse the datasource configuration & datalist filters in the selected datalist.
Also as a tip, you can also display multiple of these charts in a single page of a userview via Dashboard Menu.
Download this plugin from the Joget Marketplace here.
The JS library used: https://www.chartjsChartJs.org/
This plugin source code is available in JogetOSS repository at https://github.com/jogetoss/chartjs-menu/tree/main.
JogetOSS is a community-led team for open source software related to the Joget no-code/low-code application platform. Projects under JogetOSS are community-driven and community-supported, and you are welcome to contribute to the projects.
Figure 1: Multiple Chartjs userview menus displayed in a dashboard
Configure Chartjs
Figure 2: ChartJs Properties
Name | Description | ||
---|---|---|---|
ID | Menu element unique ID. Userview will use this ID in the URL for the menu if Custom ID property is empty. | ||
Custom ID | Item link slug. Optional field.
| ||
Label | Menu label. Mandatory field. | ||
Chart Title | Chart Title to be displayed as part of the generated chart. | ||
Chart Type | Available chart types:
| ||
Chart Dataset |
| ||
Show Tabular Data | Show tabular data at the configured position.
| ||
Show Export Links | This option is visible when "Show Tabular Data" is visible. Show or hide the export links located below the tabular data.
| ||
Show Filters | Show or hide the filters on the top right of the chart. The filters are defined in the datalist chosen.
|
Name | Description | ||||
---|---|---|---|---|---|
List | Target Datalist to read records from. | ||||
X-axis Value | Datalist column to represent the x-axis or categories of the chart. | ||||
Number Values |
|
Name | Description |
---|---|
X-axis Label | Label for the X-axis. |
Y-axis Label | Label for the Y-axis. |
Show Legend | If checked, chart legend will be shown. |
Opaque Chart | If Checked chart will show opaque color. |
If Checked, CSV and |
PDF downloads will be enabled and two Text Fields will appear for you to configure the labels.
| ||||||
Width | Maximum Width of chart. | |||||
Height | Minimum Height of chart. |
Figure 3: Area Chart
Name | Description |
---|---|
X-axis Label | Label for the X-axis. |
Y-axis Label | Label for the Y-axis. |
Show Legend | If checked, chart legend will be shown. |
Disable Tool Tip | If checked tooltip will be disabled |
Opaque Chart | If Checked chart will show opaque color. |
If Checked, CSV and |
PDF downloads will be enabled and two Text Fields will appear for you to configure the labels.
| ||||||
Width | Maximum Width of chart. | |||||
Height | Minimum Height of chart. |
Figure 4: Bar Chart
Line Chart
Name | Description |
---|---|
X-axis Label | Label for the X-axis. |
Y-axis Label | Label for the Y-axis. |
Show Legend | If checked, chart legend will be shown. |
Disable Tool Tip | If checked tooltip will be disabled |
Enable Animation | If Checked animation will be enabled. |
If Checked, CSV and |
PDF downloads will be enabled and two Text Fields will appear for you to configure the labels.
| ||||||
Width | Maximum Width of chart. | |||||
Height | Minimum Height of chart. |
Figure 5: Line Chart
Name | Description |
---|---|
Show Legend | If checked, chart legend will be shown. |
Disable Tool Tip | If checked tooltip will be disabled |
Opaque Chart | If Checked chart will show opaque color. |
If Checked, CSV and |
PDF downloads will be enabled and two Text Fields will appear for you to configure the labels.
| ||||||
Width | Maximum Width of chart. | |||||
Height | Minimum Height of chart. |
Figure 6: Bar Chart
Figure 7: Pie Chart
Figure 8: Polar Area Chart
Figure 9: Radar Chart
Name | Description |
---|---|
X-axis Label | Label for the X-axis. |
Y-axis Label | Label for the Y-axis. |
Show Legend | If checked, chart legend will be shown. |
Disable Tool Tip | If checked tooltip will be disabled |
If Checked, CSV and |
PDF downloads will be enabled and two Text Fields will appear for you to configure the labels.
| ||||||
Width | Maximum Width of chart. | |||||
Height | Minimum Height of chart. |
Figure 10: Radar Chart
Name | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Userview Key Name | When defined, the additional conditions will be appended using the value defined here as the parameter and the userview key value as the value.
When userview key value is defined, you may define #userviewKey# in your SQL query to have it replaced with the userview key value.
|
Name | Description |
---|---|
Custom Header | Custom Header in HTML. |
Custom Footer | Custom Footer in HTML. |
Name | Description |
---|---|
Scope | Caching options are:
|
Duration (s) | Duration in seconds to cache content, defaults to 20 seconds if applicable. |
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Read more at Performance Improvement with Userview Caching. |
Note: PWA Offline support is dependent on the theme used.
Name | Description |
---|---|
Enable cache for offline support | Enable caching for offline support, usually set for use on mobile browsers. |
Read Progressive Web Application (PWA) for more information.
Download Sample App View file name APP_kb_dx8_Chartjs(v1).jwa height 250