How to pass variables into ChartJS data

Hi to all,

The ChartJS sample contains only fixed values in the charts, or a foundset sample. How do you pass variables as data to the Chart?

I´ve tried with data: [var1, var2, var3, var4] inside var data definition but didn´t work.

It is solved!

data variable was defined before our variables were loaded.