Hi,

I have an issue with the ChartEditor which I don't really know if it's
a bug or not.

here is the code a run :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml";>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/
>
    <title>
      Google Visualization API Sample
    </title>
    <script type="text/javascript" src="http://www.google.com/jsapi";></
script>
    <script type="text/javascript">
      google.load('visualization', '1', {packages: ['charteditor']});
    </script>
    <script type="text/javascript">
    var wrapper;
    var data;

    var editor;

    function init() {
      data = new google.visualization.DataTable();
      data.addColumn('number', 'T');
      data.addColumn('number', 'Values');
      data.addRow([2, 40]);
      data.addRow([1, 50]);

      editor = new google.visualization.ChartEditor();
      wrapper = new google.visualization.ChartWrapper({
        dataTable: data,
        containerId: 'visualization',
        chartType: 'LineChart'
      });
      wrapper.draw();
    }

    function openEditor() {
      google.visualization.events.addListener(editor, 'ok',
edit_handler);
      editor.openDialog(wrapper);
    }
    function edit_handler ()
    {
      wrapper = editor.getChartWrapper();
      wrapper.draw();
    }

    google.setOnLoadCallback(init);

    </script>
  </head>
  <body style="font-family: Arial;border: 0 none;">
    <input type='button' onclick='openEditor()' value='Open Editor'>
    <div id='visualization' style="width:600px;height:400px">
  </body>
</html>
​
My issue is while opening the first time the ChartEditor. I was
expecting the graph display in the preview section of the same as the
one display on my page, but it's not the case. Am I doing something
wrong somewhere?
It looks like the chart option used before are not loading in the
Editor and I don't understand why. I don't know if it's a bug of the
ChartEditor or if there something wrong in my code. any thoughts about
this will be great.

Thanks,
EB

PS: I'm running this on chrome 16.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to