How to pass variables into ChartJS data

Forum to discuss the new web client version of Servoy.

How to pass variables into ChartJS data

Postby dfernandez » Fri Jun 09, 2017 6:07 am

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.
dfernandez
 
Posts: 87
Joined: Wed Feb 29, 2012 4:04 pm

Re: How to pass variables into ChartJS data

Postby dfernandez » Fri Jun 09, 2017 1:54 pm

It is solved!

data variable was defined before our variables were loaded.
dfernandez
 
Posts: 87
Joined: Wed Feb 29, 2012 4:04 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 13 guests

cron