开发者

problem displaying axis values in flex chart

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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜