2
votes

I want to use small flex charts with just 3 labels, for example a chart over the past 2 hours , with 3 horizontal label, as shown below:

  |       |        |    
9:46    10:46    11:46

(of course, there are more than 3 values to display!)

I have been told this is not trivial, but how would you do it?

Also, do you know of any books that present how to achieve sophisticated layouts in Flex? The books I have found are code-oriented and usually limit formatting to a minimum, and it's not always straightforward to connect the names of attributes to what you are trying to do.

3

3 Answers

2
votes

Take a look in the online Flex Language Guide at the AxisRenderer class.

It also has some helpful sample code and output.

0
votes

Have you looked at the CategoryAxis type? Using this you can explicitly set the labels.

0
votes

I think you need "[Bindable]" before every variable you want to use as a dataProvider, so one more before labels.