I am trying to use the pChart PHP Library for generating a graph. And I am confused about its documentation.
To add data to the graph, the documentation uses code like:
$MyData = new pData();
$data = array(1,2,3,4,99);//some data
$MyData->addPoints($data,"My Label");
The data plots well on the graph.
What I fail to understand is how is a singular number plotted on X-Y axis. Shouldn't the data be in (x,y) format ?
How's a single number plotted on a XY graph ?
Thanks a lot !