Modify an axis to display the number of bytes with scale suffixes such as kB, MB, GB, and display more reader-friendly ticks such as "500MB" instead of "496M".
The trick is to supply a custom "tick source" that tells JFreeChart what ticks it should prefer.
I cheat a little and reuse the existing IntegerTickUnitSource
, optimally I would rewrite it to work with multiples of
2 rather than 10.