开发者

Line chart with fixed y-axis?

I'm trying to have a line chart with a fixed y-axis. that is, I have values that are mostly between 30 and 70, but I'd like to 开发者_如何学JAVAhave the chart y-axis as a constant between 0 and 100 so it wouldn't resize as new values are coming in (if they happen to be larger than previous values).

How'd I go about doing this?


Set minimum and maximum properties of LinearAxis. Something like this:

<mx:verticalAxis>
<mx:LinearAxis  title="title" displayName="displayName" maximum="100" minimum="0"/>
</mx:verticalAxis>


And don't you want to give a try to existing classes? :)

Yahoo's Astra pack http://developer.yahoo.com/flash/astra-flash/charts/using.html

Or you may post some sample code so we can see what should be modified.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜