I'm new to Flex/AS3. I've attached an example line chart below. I want to know if this type of graph can be created using the standard line-series chart available in Flex (Flash Builder 4.6), or whether there's something drawn below that is non-standard and would therefore require some rather involved customization. The key features are:
- Different line styles and colors (dashed, dot-dash, solid, thick, thin, opacity)
- Placement of units (y-axis "seconds" and x-axis "Hz")
- x-axis zoom/pan control bar below graph (move knobs in and out to set x-axis min and max plotted values)
- Log x-axis scale, linear y-axis scale
- Data Tip (or, some call it tool tip, not shown below)
- SI units for x- and y-axis tick labels.
My guess is that everything should be pretty standard to accomplish using Adobe's built-in charting (with the possible exception of item 6, see below). Is that a good assumption?
I'm particularly concerned about the x- and y-axis tick labels (item 6). For example, the x-axis tick marks as a number would be:
1, 10, 100, 1000, 10000, 100000, 1000000, 10000000
but they need to be replaced with SI units, where k=1000, and M=1000000, so the corresponding marks would be (replacing the numbers above with the strings below)
"1", "10", "100", "1k", "10k", "1M", "10M"
The same goes for the y-axis, where p represents 1e-12, and n represents 1e-9.
I can create an algorithm that accepts a number and outputs a string to do the SI unit conversion. But given that, is there a way to easily manage the tick mark labels to replace the default numbers with such strings? Any comments much appreciated.