iCE Breaker’s Matrix

Somewhat damaged. . .

Open Flash Charts

I was browsing WebAppers the other night to see what I’ve been missing in the wonderful ‘Web 2.0′ world (I really hate that term) when I stumbled upon Open Flash Charts. I just had to check this thing out. There’s another Flash based charting software I’ve been using for a side project of mine. It’s actually fairly cheap at $50 per domain. But I figure I’d give this Open Flash Charts thing a try and see if it’s a good replacement. One of the features I’m in need of is ‘live’ data– where the charts update on the fly at some variable interval without a full page reload. Obviously so you can see ‘live’ data as your database tables are being populated. Open Flash Charts has just the thing using Javascript/AJAX. The developer makes note that the AJAX API is experimental and may change, but for now I have something that works. So here’s what I came up with. Click here for a demo

You should be able to download the OFC project and be able to throw this together in a matter of minutes. It was actually a lot easier than I had original thought. A more elegant way of making this work would be to use Prototype or MooTools or any of the other Javascript frameworks as they have Periodical Executers of some sort.

VN:F [1.8.1_1037]
Rating: 4.1/5 (14 votes cast)
Open Flash Charts4.1514

1 Comment so far

  1. the-di-lab
    February 7th, 2009

    | 10:40 pm

    I found a bug in IE 7 in in your demo.
    My fix is to replace findSWF function with

    function findSWF(movieName) {
    if (navigator.appName.indexOf(“Microsoft”)!= -1) {
    //return window["ie_" + movieName];
    return document.getElementById(‘ie_’+movieName);
    } else {
    //return document[movieName];
    return document.getElementById(movieName);
    }
    }

Leave a reply

You must be logged in to post a comment.