I am the part of larger project and my task is to paint charts. Naturally, I choose JFreeChart (together with pdf documentation).
My task is to paint different kind of charts, where Y-values are defined as numbers. But the problem is, that those numbers can have different meaning (and format) and I do not know this meaning; only a set of y values together with formatting method is given to me - this metod (used in other parts of the project as well) can convert a number to String in required format (somtimes time, sometimes percentage, sometimes numbers in different format, etc).
So, it is no problem to create a dataset and fill it by obtained values. But how can I print tick labels in specified format? Is there a possibility to use obtained formating method for tick labels formating? As ticks are determined automatically, there could only be a similar method to:
Code: Select all
String getTickLabel( Number arg );
Thank you very much,
Dan