Home Forums Chart Support PHP Example for Chart not working Reply To: PHP Example for Chart not working

#45543

vorlontech,

To pass the datapoints variables to html code, you can use json_encode and raw filter of twig. Please take a look at the working code-snippet below.

dataPoints: {{ dataPoints | json_encode(constant('JSON_NUMERIC_CHECK')) | raw }}


Manoj Mohan
Team CanvasJS