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;
精彩评论