Fork me on GitHub

The Meliorator

First, let's

Use Meliorator to make a table

                            var sampleData = range(0, 40).map(function(i) {
return {
        Number: i,
        Square: Math.pow(i, 2),
        Cube: Math.pow(i, 3)
    }
});

$('#table').Meliorator('table', {
    data: sampleData,
    tableClass: 'originalTable'
});

                            
                        

So?

We get this...

Then, with a dataset and dashboard spec

We can Meliorate for a Dashboard

                            var parsedDataSet = $.makeArray($('.originalTable').Meliorator('parse-table')[0]);
    // so, assuming we already have a dashboard spec (say it was saved in a previous dasbhoard save mode, or something like that...)
    var dashboardSpec = {
        "title": "Dashboard-2016-10-10T12:49:47.395Z",
        "spec": [{
            "domain": "Number",
            "series": ["Number", "Square", "Cube"],
            "aggregation": "NONE",
            "render": "POWER-TABLE"
        }, {
            "domain": "Number",
            "series": ["Square"],
            "aggregation": "NONE",
            "render": "LINE"
        }, {
            "domain": "Number",
            "series": ["Cube"],
            "aggregation": "NONE",
            "render": "LINE"
        }, {
            "domain": "Number",
            "series": ["Square", "Cube"],
            "aggregation": "NONE",
            "render": "LINE"
        }],
        "timestamp": "2016-10-10T12:49:47.395Z"
    }
    // then, we tell Meliorator to render a dashboard for this data, based off of this spec, as such...
    $('#analytics').Meliorator('dashboard', {
        data: parsedDataSet,
        dashboardSpec: dashboardSpec
    });

                            
                        

To Get?

This dashboard for FREE!


Checkout

Other Examples...

Using URI/API sourced Data
Sourcing data from existing HTML Tables
(Design/View) Dashboard Mode Example
Render a Single Analytics Widget
Automagically Render images and other Binary Objects

It's Open Source!

The project is still evolving, but...

DOWNLOAD