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

Message ListMessage List     Post MessagePost Message

  How to show the Label step for 1:th every month and then some inbetween?
Posted by Mattias Wardell on Mar-25-2014 23:50
Hi,

I?m trying to figure out how to set the labelstep to be certain number but still show the 1:st of wevery month?
Can I use setLabelStep?

In this Example, I want to show every 4:th step but still the 1:th of every month?
23<*br*>Feb 2014,24,25,26,27,28,1<*br*>Mar,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,1<*br*>Apr,2,3,4,5,6,7,8

Any ideas?

BR

Mattias

  Re: How to show the Label step for 1:th every month and then some inbetween?
Posted by Peter Kwan on Mar-28-2014 19:09
Hi Mattias,

Sorry for the late reply.

The method to achieve what you need depends on how the labels are generated. If the
labels are specified by your code (eg. using Axis.setLabels), you can set some labels to
empty strings and only use non-empty labels for the labels you want to appear on the axis.
For example, instead of using:

23<*br*>Feb 2014,24,25,26,27,28,1<*br*>Mar,2,3,4,5 ....

you can use:

23<*br*>Feb 2014,,,,27,,1<*br*>Mar,,,,5 ......

If the labels are automatically generated by the FinanceChart object, you may use
FinanceChart.setDateLabelSpacing to control the spacing. In XYChart objects, if the axis is
a true date/time axis (instead of a label based axis) and is auto-scaled, the
Axis.setTickDensity can often be used to control label spacing.

If you need further help, is it possible to inform me of your charting code, to help me
understand how the labels are generated in the first place?

Regards
Peter Kwan