Skip to content

Instantly share code, notes, and snippets.

@johnrobertwilson
Created June 23, 2011 04:55
Show Gist options
  • Save johnrobertwilson/1041926 to your computer and use it in GitHub Desktop.
Save johnrobertwilson/1041926 to your computer and use it in GitHub Desktop.
dataviz jquery
var DATAVIZ = { };
DATAVIZ.adapters = new Array();
DATAVIZ.adapters['jqplot'] = { };
DATAVIZ.adapters['jqplot'] = {
init : function() {
//Maybe load the file here instead?
},
render : function(data_object, type, container_id) {
$.getScript('sites/all/modules/custom/energy_data_viz_api/DATAVIZ.jqplot.js', function(data, textStatus){
DATAVIZ.jqplot.render(data_object, type, container_id);
return true;
});
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment