Search code examples
phppchart

PCharts labeling X-axis


Would it be possible to just label the x axis by the minimum value and the maximum value instead of having values inbetween?

More info on what I'm graphing: I have a large dataset of dates that I am graphing. Currently I am scaling it to a scale of 0-100 to graph it. I just want to label 0 as the lowest date and 100 as the highest date.


Solution

  • Look at setFixedScale()

    $Test->setFixedScale(0,100,1);
    

    That will show 0 as the min and then 100 as the max