Home forums Using CanvasJS Just wanna share using Laravel and Canvas JS Reply To: Just wanna share using Laravel and Canvas JS

#24748

when i use
dataPoints: <?php echo $data; ?>
that shows to me like this :
dataPoints:[{“x”:2019-03-17 17:48:05,”y”:100}]
but i want to show like this for showing on chart:
dataPoints:[{“x”:1483381800000,”y”:100}]}]
i can’t see chart by this format :
dataPoints:[{“x”:2019-03-17 17:48:05,”y”:100}]