I'm trying to load a google geochart into Webbrowser ActiveX Control. When I navigate with this control to the site " https://developers.google.com/chart/interactive/docs/gallery/geochart" all the charts are displayed fine in the Webbrowser Control.
When I try to load te code for the chart from i.e. "C:\myfile.html" the chart is not displayed in the Webbrowser Control. The myfile.html has the following code: <html> <head> <script type='text/javascript' src='https://www.google.com/jsapi'></script> <script type='text/javascript'> google.load('visualization', '1', {'packages': ['geochart']}); google.setOnLoadCallback(drawRegionsMap); function drawRegionsMap() { var data = google.visualization.arrayToDataTable([ ['Country', 'AmountOpen'], ['Spanje', 642127], ['Ukraine', 526839], ['Russian Federation', 509822] ]); var options = {region: '150'}; var chart = new google.visualization.GeoChart(document.getElementById('chart_div')); chart.draw(data, options); }; </script> </head> <body> <div id="chart_div"style=width: 900px; height: 500px;"></div> </body> </html> Can anyone help? -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/7_zz8dyFunAJ. 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.
