how to code google chart in gwt using native javascript

前端 未结 2 1363
春和景丽
春和景丽 2021-01-26 19:12

I am trying to display google chart using gwt native javascript but i am not getting any output below is my code:

GwtChart.html


<         


        
2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-26 20:08

    1) try this:

    $wnd.google.load("visualization", "1.0", {packages : [ 'corechart' ], callback: drawVisualization});
    

    instead of these 2 lines:

    $wnd.google.load('visualization', '1', {packages: ['corechart']});
    
    
    $wnd.google.setOnLoadCallback(drawVisualization);
    

    or 2) call google.load in your HTML page with

         
    
    

提交回复
热议问题