Home › Forums › Chart Support › Show a last 12 months chart with php mysql › Reply To: Show a last 12 months chart with php mysql
AmoN,
You are passing values instead of y within $dataPoints. Replacing $dataPoints[0] = array("value" => $row["values"], "label"=> $row["date(timestamp)"]) with $dataPoints[0] = array("y" => $row["values"], "label"=> $row["date(timestamp)"]) should work fine in this case.
values
y
$dataPoints[0] = array("value" => $row["values"], "label"=> $row["date(timestamp)"])
$dataPoints[0] = array("y" => $row["values"], "label"=> $row["date(timestamp)"])
—- Manoj Mohan Team CanvasJS