ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  I want behind the scenes x-labels after zoom in
Posted by bravephs88 on Aug-27-2014 10:25
Attachments:
I don't want x-labels

But if i zoom in, Appears x-labels.

How to delete x-label after zoom in?
before.PNG
after.PNG

  Re: I want behind the scenes x-labels after zoom in
Posted by Peter Kwan on Aug-28-2014 02:05
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

  Re: Peter Kwan
Posted by bravephs88 on Aug-28-2014 10:51
Thank you for help!!!

is it working!

Thank you very much Peter Kwan