Re: Custom label marks for the axis
- Hi Oleg,
The labelFunction of the axes classes is only used to format the
labels. It's usage is explained here:
If you are using a TimeAxis
can specify a majorTimeUnit of "month" and the labels will be
displayed by month.
There are some issues with the calculation of the majorUnit which we
are fixing in the next release. If you do run into these, you may be
able to solve it by manually setting the majorUnit.
var myTimeAxis = new YAHOO.widget.TimeAxis();
myTimeAxis.majorTimeUnit = "month";
myTimeAxis.majorUnit = 1;
I hope this helps,
> I have a line chart with a year statistic. There are two points for each
> day on it. I don't wont to display all of the labels on the axis. Are
> there any way to display, for example, one label for each month?
> It looks like that there should be a way to handle this stuff on
> this [:(]
> Best regards,
> Oleg Barmin.