1

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

enter image description here

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:

enter image description here

0__
  • 66,707
  • 21
  • 171
  • 266

1 Answers1

4

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).

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045
  • Thanks, that is useful, although it doesn't solve the problem of getting out a nice looking PDF. I still need to manually distort the items, although being able to zoom+pan helps in the clean up process. I was more thinking of a non-linear transformation applied to the domain axis. – 0__ Oct 11 '13 at 09:38
  • Maybe like Mac OS X Dock or Windows Magnifier? Sorry, I don't know of any support for automating this in `JFreeChart`. – trashgod Oct 11 '13 at 15:51