It's likely that there is something else in your code that is interfering 
here.  I made a test case the works just fine using your code: 
http://jsfiddle.net/asgallant/stCML/

On Wednesday, February 6, 2013 6:05:07 AM UTC-5, oussama abid wrote:
>
> var chartEditor = null;
> var wrapper = null;
> $wnd.chartDraws = function(){
>       
>       var wrapper = new $wnd.google.visualization.ChartWrapper({
>            'chartType':'LineChart',
>            'dataSourceUrl':'
> http://spreadsheets.google.com/tq?key=pCQbetd-CptGXxxQIG7VFIQ&pub=1',
>            'query':'SELECT A,D WHERE D > 100 ORDER BY D',
>            'containerId' : 'WindowTest'
>            });
>         chartEditor = new $wnd.google.visualization.ChartEditor();
>         $wnd.google.visualization.events.addListener(chartEditor, 'ok', 
> function(){
>         try
>         {
>         wrapper.draw();
>         }
>         catch(err)
>         {
>         $wnd.alert('error : '+err);
>         }
>       });
>         chartEditor.openDialog(wrapper, {});
>       };
>       
>       $wnd.google.setOnLoadCallback($wnd.chartDraws());
>
> and in the HTML i have :
>      <script type="text/javascript">
>       google.load('visualization', '1.0', {packages: ['charteditor']});
>     </script>
>
> i get this error in the chartEditor :
>
>
> <https://lh5.googleusercontent.com/-u7MzId4tVqg/URI4sWrtd3I/AAAAAAAAAFU/R6XrBMKyLr8/s1600/charteditor.png>
>
>
>
> Le mardi 5 février 2013 19:43:30 UTC+1, Mitch Foley a écrit :
>>
>> Hello,
>>
>> Could you provide a code example? That would help us help you figure out 
>> what's wrong.
>>
>> Thanks,
>>
>> Mitch
>>
>>
>> On Mon, Feb 4, 2013 at 12:39 PM, oussama abid <[email protected]>wrote:
>>
>>> Hi All,
>>>
>>> i'm using visualization API with GWT, i use many types of chart and they 
>>> worked really fine, but when i want to impliment the ChartWrapper i have a 
>>> strange error : "Cannot read property 'count' of undefined". I searched in 
>>> the web but i didn't find anything
>>>
>>> do you know how to solve this ?
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google Visualization API" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at 
>>> http://groups.google.com/group/google-visualization-api?hl=en.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>>  
>>>
>>
>>

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


Reply via email to