JS Customizations
چهارشنبه, 5 اردیبهشت 1403
12:41 ب.ظ
JS customizations that might be needed in charts
Add Border Radius
To add a border to the chart, include the highlighted code in the datasets.
To apply border radius to all sides of the dataset, add "borderSkipped: false" to your code.

datasets: [
]
Add Data Labels
In Quick Chart, you can add label information by simply adding this code in the plugin section.

options: {
For Dev Team:

You need to add 'data-label' as a [file] v4 plugin and then use it in your chart:
<html lang="en">
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <script src="[link]>
        <script src="[link]>
                                                                     . . .
Adjust Chart and legend Spacing
This feature need dev team assistant.
For dev team:
You need to create a custom plugin and then use it into the chart.
                const legendSpacingPlugin = {
. . .