Ryan Campbell Flex/Flash Developer Blog

17Sep/085

OpenFlux + Degrafa = FluxCharts

Last night I started playing around with the new GeometryRepeater/PropertyModifier classes in Degrafa and decided it would be fun to create an OpenFlux chart component. The code consists of a Chart model class (currently just has a data Array property) and 3 mxml views. You can change the view at runtime to a pie, line or column chart.

The app is below with view source enabled. So far the component is really simple and doesn't even have a controller. I plan on developing it further but wanted to show it off at the early stage so you can see how simple it is to get started creating a custom OpenFlux component.

I will be posting updates as I add more functionality. Let me know any ideas you have for what you would like to see.


View Source Code

Comments (5) Trackbacks (2)
  1. Very nice. I haven’t had a chance to play with OpenFlux yet, but it looks really promising. I’ve done quite a bit of degrafa.

  2. Cool, would it be possible to have a tooltip on each data value?

    Many thanks for your outstanding work.

  3. very nice!
    for me the line chart is upside-down (small values should be close to bottom, big->top). But i guess it’s just a matter of handling the y position in the view differently.
    openflux is great!

  4. Nice, but I get some warnings when compiling:
    Code:

    Warning:

    …\src\com\openflux\charts\views\PieChartView.mxml(53): Warning: Function value used where type Object was expected. Possibly the parentheses () are missing after this function reference.
    …\src\com\openflux\charts\views\PieChartView.mxml(54): Warning: Function value used where type Object was expected. Possibly the parentheses () are missing after this function reference.

  5. This would be spectacular if it handled data real time (eg like a stream of quotes for stock charts)


Leave a comment


Ryan Campbell


follow bobjim at http://twitter.com

Recent Posts

Categories

Archives