开发者

problem displaying axis values in flex chart

开发者 https://www.devze.com 2022-12-20 15:59 出处:网络
I have a value object 开发者_运维知识库something like this public class Data { public var date:Date;

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

精彩评论

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