JFreeChart tip - Use FixedMillisecond

December 11th, 2004 by Hen

Something we hit for the Nth time at work (and seem to forget each time).

When drawing time-series charts (ie x-axis values are Dates), use FixedMillisecond.class rather than Millisecond.class, Day.class, Hour.class etc. The others do a lot of work with java.util.Calendar which sucks for performance. In the end, all the Calendar calls become the performance bottlenecks and you can get a nice boost by using FixedMillisecond.

Comments are closed.