Work in Progress: How to add Chart.js to your flow
Here’s a quick guide and one way on how to add chart.js
We will need to do 3 key steps:
Create a chart container.
Create a Data Output (you can also do it with a computed field)
Trigger the Data Output on page load.
Create a chart container, leave it empty and remember the key (in this case is going to be “chart_container”.)
Add your chart.js code inside your Data Output. You can use this one as a template, but we suggest you read the Chart.js documentation for more customization herehttps://www.chartjs.org/docs/latest/
Once you created your container and created your data output with your chart.js code inside, you’ll need to trigger it on page load, in the page you need or before, not after.
Select the page you want to execute, go to triggers, and select the data output you want to execute on page load
Done! You will see your chart displayed inside your “chart_container” on your flow.
Last updated