开发者

How to set a chart's X axis name and Y axis name?

开发者 https://www.devze.com 2023-03-16 17:03 出处:网络
In Flex how can I set a custom name (string) for the X axis开发者_运维问答 and Y axis titles of a chart ?

In Flex how can I set a custom name (string) for the X axis开发者_运维问答 and Y axis titles of a chart ?

(Horizontal Axis and Vertical Axis)


You have to create and assign an object that implements IAxis for horizontalAxis& verticalAxis property of a chart. Usually this means either mx.charts.CategoryAxis or mx.charts.LinearAxis.

var vAxis:LinearAxis = new LinearAxis();
vAxis.title = "WhateverYouWant";            
chart.verticalAxis = vAxis;
0

精彩评论

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