Choice Format

Choice format allows you to specify arbitrary strings to be used instead of numbers. Choice format pattern is specified with a list of limit/text pairs separated by the vertical bar '|'. The limits should be in the ascending order and limit and text can be separated by either pound sign '#' or less then sign '<'. When pound sign is used, the limit specifies a half-open interval up to the next item:

X inside interval if and only if limit <= X < next limit
Less then sign specifies an open iterval:
X inside interval if and only if limit <= X < next limit

For example, if instead of numbers 0, 1,2,3,4,5 you want to see words along Y axis, you can use Choice format with the following pattern:

0#zero| 1#one | 2#two |3#three | 4#four | 5#five

This format will result in the following labeling:

Note that with the above pattern string value 1.5 will be displayed as 'one'.

For more information about Choice format please see java.text.ChoiceFormat.