简体   繁体   中英

Create a custom vertical axis in a Flex 3 ColumnChart

I need to create a custom y-axis in a columnChart that resembles a tall / skinny VBox (sorry can't post pictures) and has the axis labels (20, 40, 60, 80, 100) inside the axis.

By default, the y-axis is a line and I have found methods of making the line thicker but I need the labels inside the axis.

I have tried using the AxisRenderer class but can not find any good examples on the proper use. Suggestions would be appreciated.

The best thing is to build a custom AxisRenderer that extends the base AxisRenderer class or just extends UIComponent and implements IAxisRenderer. You can reference the source code for AxisRenderer to see how it draws the axis. It's in the Flex SDK's frameworks/projects/datavisualization directory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM