Skip to content

Instantly share code, notes, and snippets.

@johnrobertwilson
Created June 22, 2011 15:08
Show Gist options
  • Save johnrobertwilson/1040289 to your computer and use it in GitHub Desktop.
Save johnrobertwilson/1040289 to your computer and use it in GitHub Desktop.
Adapter Load Libraries via ARRAY
DATAVIZ.adapters.jqplot = function() {
$.ajaxSetup({async: false});
$.getScript('DATAVIZ.jqplot.js');
$.ajaxSetup({async: true});
}
DATAVIZ.adapters.jit = function() {
$.ajaxSetup({async: false});
$.getScript('DATAVIZ.jit.js');
$.ajaxSetup({async: true});
}
DATAVIZ.adapters.highcharts = function() {
$.ajaxSetup({async: false});
$.getScript('DATAVIZ.highcharts.js');
$.ajaxSetup({async: true});
}
DATAVIZ.render(adapter_callback, data_object, type, container_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment