Search code examples
phppchart

pChart, how to set margin between axis name or axis label?


My graph result like below, I need to space between axis name or axis label, here need some space margin between "month", and x-axis labels and similarly for "clicks" and y-axis labels.

enter image description here


Solution

  • You could just remove the axis label and draw it with drawText and align the text using TEXT_ALIGN_TOPMIDDLE and the coordinates from the graph area.