Question

I want to have something like this on xAxis(CategoryAxis) tick labels with jFreechart How do I achieve this ?

 |
 |
 +----------+------------------+----

                                                --> margin

         India                 China     

Thanks in advance.

Était-ce utile?

La solution

You could use the setTickLabelInsets() method to put a margin at the top of the tick labels.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top