Home › forums › Using CanvasJS › send json to datapoint › Reply To: send json to datapoint
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.
DE TAQUILLA 4
Priyanka M S