Question about x-axis?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
imagemagick
Posts: 1
Joined: Thu Mar 07, 2019 4:49 am
antibot: No, of course not.

Question about x-axis?

Post by imagemagick » Thu Mar 07, 2019 4:53 am

It has decimals on the x axis, which I dont want to show.
Is there a way to tell the axis to only show whole digits?

I looked into using the NumberTickUnit class, but then I have
to give it an increment as well as a format.

I want the axis to auto calculate, but I want to control the formatting
of the display only.

I tried to go into NumberTickUnit and add my own setFormatter method,
but that did nothing.

Thanks,

Post Reply