Hi akim,
First, modify your data, so that the x range is from -180 to 180 (not from 180 to 360 then from 0 - 180). The code is:
For i = 0 To Ubound(dataX)
If dataX(i) > 180 Then dataX(i) = dataX(i) - 360
Next
Then your x-axis will be from -180 to 180. To label your axis, you may use:
Call c.setLinearScale(-180, 180, Array("", 210, 240, 270, 300, 330, 0, 30, 60, 90, 120, 150, 180))
So even internally, the dataX is -180 to 180, the labels will show ("", 210, 240, 270, 300, 330, 0, 30, 60, 90, 120, 150, 180).
Hope this can help.
Regards
Peter Kwan |