ChartJS
Guide for using svyChartJS in your applications
Last updated
Guide for using svyChartJS in your applications
Last updated
To see a live sample of the component you can go .
Content under construction
This wiki provides comprehensive documentation for using the svyChartJS web-component, which allows you to display a chart utlizing the Chart.JS library within Servoy's NGClient.
First import the component using one of the release or via Servoy's Web Package Manager.
If you would like to see the component in an example install the included solution, .
First add the component to a form by dragging it into the form using the Palette Wizard. It should be under ChartJS (chart).
If using a custom dataset (non-foundset) you can setup a simple pie chart by doing the following:
To add options to a chart you can do the following :
The ChartJS library has great potential for customization. By passing in your own modified options or by using additional plugins. We will try and support some of these options on a case by case basis. Please post an issue for any feature requests which are relevant.
If you need to use callback functions as a part of your options object. You can use the following method to do so:
When using the component with responsive forms we need to add some additional CSS styling to the component. In particular the height property must be greater than zero.
Returns a custom html stringed version of the legend.
Force the chart to (re)Draw if for some reason it has not.
Force the chart to update if it's options were changed.
Setup the chart's data. (This will automatically initialize and draw the chart)
Register a plugin. (This method must be called prior to drawing the chart)
Setup the chart's options. (This will automatically refresh the chart if it already exists)
Clears the chart.
For additional options and documentation please refer to the official ChartJS .
svyChartJS events can be found .
svyChartJS events can be found .
svyChartJS API methods can be found .
An example of a chart plugin object can be found .