Start graph from nth index in Pchart

69 Views Asked by At

I am using PChart library, and I wanted to start graph from 5th index on x-axis. Is there any idea? I am already doing this:

$myData->AddPoints(array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"), "xlabel");

I am getting my data in array $x, this is the data to be plotted:

$myData->addPoints($x, "pvalues");
1

There are 1 best solutions below

2
On

Use VOID to reserve the space for points not in the graph. See the basic syntax tutorial.