Search code examples
phppchart

Specific divisions and range on Y axis using pChart


I am making a script to generate a plot graph. It will hold values between 1 and 10. My problem is that I want the Y axis to go from 1 to 10 with a step of 1, and by default it ranges between the minimum value and the maximum.

I tried to fiddle with it for a while using this documentation article, but I am now truly stuck.

edit This far I've got so far as to getting the Y axis to start from 0.


Solution

  • I managed to fix this by making a transparent serie of data, holding the maximum value.