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

Message ListMessage List     Post MessagePost Message

  [XY Chart -> Y Axis -> Tick -> Step] doesn't work.
Posted by Yejin Lee on Jun-27-2017 15:26
Attachments:
Hi,
I have one more question.



I made an XY Chart, and set Y Axis's attributes like this.

1) On the [Scale] tab
   - Scale Type : Linear Scale
   - Didn't set MajorĀ·Minor Tick Inc (just kept it default),
2) On the [Tick] tab - Step
   - Major Step : 10 & Minor Step : 5.

You can understand better if you see the attached pic.


I hoped Y Axis would display 1 label for every 10 labels.
But it doesn't work if I set 'step' values without setting Major Tick Inc on Scale Tab.
(It works if i set some value on Major Tick Inc.)

For your information, [XY Chart -> X Axis -> Tick -> Step] works if i set equally on X Axis.



Can you let me know why it doesn't work?

If this problem is bug, How can i modify my code?
1.PNG

  Re: [XY Chart -> Y Axis -> Tick -> Step] doesn't work.
Posted by Peter Kwan on Jun-27-2017 17:00
Hi Yejin,

The setLabelStep is only applicable for label based axis (Axis.setLabels or Axis.setLabels2). For linear, log or date axis, you can specify the tick increment directly. If you do not specify the tick increment, the axis will be auto-scaled using the specified min and/or max values as the starting point. For auto-scaled axis, the tick positions are controlled using Axis.setTickDensity, Axis.setRounding, and Axis.setAutoScale.

So in summary, you can use Axis.setLabelStep for label based axis (Axis.setLabels / Axis.setLabels), or use Axis.setTickDensity/Axis.setRounding for linear/log/date scale axis where the increment is not specified.

In any case, the setTickDensity and setLabelStep cannot be used at the same time. You may want to modify your user interface to display only one of them depending on the axis type.

Hope this can help.

Regards
Peter Kwan