问题
I am trying to find the best strategy to produce a 1D time based plot with labels. It currently looks like this:

The problem is there is spans of time where very little happens, and others with high density.
What I would like to achieve is to distort the time axis so that in the dense areas the labels are spaced apart to avoid overlap. Alternatively, I could imagine to show the actual data points without axis distortion, but distribute the labels so that they do not overlap.
EDIT: This is my attempt to clean up the mess manually, to get an idea of which output I would like to have:

回答1:
You might experiment with some combination of pan and zoom using setDomainPannable()
and setMouseWheelEnabled()
, seen here and here. Right-click to see the context menu and control-click to pan (option-click on Mac OS X).
来源:https://stackoverflow.com/questions/19281374/avoid-item-label-overlap-in-time-series-1d-plots-jfreechart