I have a line chart that displays a time period on the x-aches .
Data for the x-aches is of type long (Date.getTime()) to maintain the relative distance between the separate time points.
Numeric numbers of the long values are not convenient to display as values on the x-aches.
I would like to use a javax.faces.convert.Converter to convert the long value back to a String representation of the date, eg. dd-MM-yyyy.
My approach right now is the following:
This does not work unfortunately. Any suggestions to convert the long value back to a String within the graph labels?