OpenFlux + Degrafa = FluxCharts

September 17, 2008 – 5:59 pm

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

  1. 7 Responses to “OpenFlux + Degrafa = FluxCharts”

  2. 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.

    By Andrew Westberg on Sep 17, 2008

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

    Many thanks for your outstanding work.

    By Patrick on Sep 21, 2008

  4. 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!

    By sitron on Nov 11, 2008

  5. 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.

    By mico on Feb 24, 2009

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

    By David on Mar 15, 2009

  1. 2 Trackback(s)

  2. Sep 17, 2008: Custom Charts Using Degrafa
  3. Nov 20, 2008: Chronicles of a Wandering Mind » Bookmarks for November 20th from 09:54 to 12:13

Post a Comment