Home forums Using CanvasJS send json to datapoint Reply To: send json to datapoint

#21386

Priyanka M S
Member

@tekit0,

Please take a look at this updated sample project.

Here are the few changes made to your project:
1. The variables DE TAQUILLA 4 was not defined with any values. Now it’s defined.
2. Make sure the dataPoints are available before the chart is rendered. The PHP code for SQL is written before the script for rendering chart.
3. Used JSON_NUMERIC_CHECK as parameter in json_encode() method in order to convert string value of dataPoint(PHP variable) to it’s corresponding numeric value.

__
Priyanka M S
Team CanvasJS