Here's a link to one of the examples of google charts, chartEditor class to be specific : and here's the code itself:

    Google Visualization API Sample
    google.load('visualization', '1.0', {packages: ['charteditor']});
    var chartEditor = null;

    function loadEditor() {
      // Create the chart to edit.
      var wrapper = new google.visualization.ChartWrapper({
         'query':'SELECT A,D WHERE D > 100 ORDER BY D',
         'options': {'title':'Population Density (people/km^2)', 'legend':'none'}

      chartEditor = new google.visualization.ChartEditor();, 'ok', redrawChart);
      chartEditor.openDialog(wrapper, {});

    // On "OK" save the chart to a on the page.
    function redrawChart(){



In the above code, inside the function loadEditor() I want to pass data in the form of JSON instead of url. How can I achieve that? Thank You...