Hi Megha,
Although you can set the axis to be a label based axis using Axis.setLabels with a string
array, you cannot use text string as x or y coordinates in the layers. Instead, you need to
use the index of the labels as the coordinates.
For example, suppose you have configured the y-axis labels to be { "Apple", "1279",
"Monday", "Tiger" }. If you want to plot a data point at "Monday", you would need to use
the y-coordinate of 2. It is because "Monday" is the third element in the array, and its
array index is 2. If you want to plot a point in between "Apple" and "1279", you can use 0.5
as the y-coordinate. It is because the array index of "Apple" is 0, and the array index of
"1279" is 1, so 0.5 is the position in between these two labels.
Hope this can help.
Regards
Peter Kwan |