1
votes

I have a value object something like this

public class Data
{

    public var date:Date;
    public var value:int;

            ...

    public function get formattedDate():String
    {
        return date.getDay()+"."date.getMonth()+"."+date.getYear();
    }

}

When I use the 'date' field for the category axis everything is fine but when I change that to the 'formattedDate' it doesn't work (the axis has no labels). Any ideas why this isn't working?

1

1 Answers

-1
votes

Watch types.

When you use date you get Number type result.

When you use formattedDate you get String type result.

You have to return Number type also using formattedDate.