Hi bravephs88,
I am not sure how you create the first chart. Is it that you are not using x-coordinates for
the data points (no Layer.setXData), and the x-axis is configured using Axis.setLabels with
an empty labels array?
When you zoom-in, the sample code uses viewer.syncLinearAxisWithViewPort to synchronize
the x-axis with the view port as a linear axis (as opposed to a label based axis). That's why
the numeric labels appear.
If I were you, I would not use Axis.setLabels at all. Instead, just use the following code to
format the x-axis labels to empty (as I am not sure of your programming language, I will use
C#/Java in the followings):
c.xAxis().setLabelFormat("~");
By the way, you may also want to use c.setClipping(); to avoid the line between drawn
outside the plot area.
Hope this can help.
Regards
Peter Kwan |