Simple chart block
This example blocks shows a bar chart of data from a table.
The code shows:
-
How to use the Chart.js external library.
-
How to store block-related data using
globalConfigandSyncedUI components.
How to run this block
-
Create a new base using the Sales CRM template.
-
Create a new block in your new base (see Create a new block), selecting "Simple chart" as your template.
-
From the root of your new block, run
block run.
