Open source JavaScript based on 2D data?

I am wondering if there are any 2D graphics schemes for libraries that work on the client side using JavaScript? The basic idea is that you can place the plot in a browser, and the user can change things like X and Y scales and restrictions, scaling and turning off without having to constantly reload the web page from the server. The data itself will be received through AJAX, which will allow the user also just the wgetdata directly from the server if they want to use heavy-duty tools. Something like a 2D part matplotlibfor Python.

This is what I reviewed a long time before deciding that it’s faster to develop the code that just generated the server side SVG (using the built-in eCos web server), but now I read about things like Prototype and jQuery, to me I wonder if someone went and did it already.

+5
source share
3 answers

You may be interested in trying Fleet . Flot is a clean, open source javascript library for jQuery . It creates graphs of arbitrary data sets on the fly on the client side.

First of all, check out the following example, which uses data extracted through AJAX to plot a chart in real time:

AJAX :

function fetchData() {

    function onDataReceived(series) {
        data = [ series ];

        $.plot($("#placeholder"), data, options);
    }

    $.ajax({
        url:      "data_feed.php",
        method:   "GET",
        dataType: "json",
        success:  onDataReceived
    });

    setTimeout(fetchData, 1000);
}

Flot Reputation .

:

Flot example with zooming overview

+4
+5

All Articles