Home Forums Chart Support php mysql array elements Reply To: php mysql array elements



You can pass the desired variables to $points as key value pairs to create an associative array as shown below –

$points = array( "label" => $seqnum, "x" => $seqnum, "y" => $daysdiff, "currdate" => $currdate, "prevdate" => $prevdate, "freq" => $freq );

The same variables would be available within the chart and can be accessed through the chart options –


Indranil Singh Deo
Team CanvasJS