-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GeoChart Error: Must draw chart before calling getImageURI #22
Comments
@typpo Any thoughts on this? I'm experiencing the same issue Python example, inspired by: https://developers.google.com/chart/interactive/docs/gallery/geochart import requests
code = '''
var container = document.getElementById('geochart');
var chart = new google.visualization.GeoChart(container);
var data = google.visualization.arrayToDataTable([
['Country', 'Popularity'],
['Germany', 200],
['United States', 300],
['Brazil', 400],
['Canada', 500],
['France', 600],
['RU', 700]
]);
var options = {}
chart.draw(data, options);
'''
resp = requests.post('https://quickchart.io/google-charts/render', json={
'width': 600,
'height': 300,
'packages': 'geochart', # optional
'code': code,
'mapsApiKey': '<MY GMAPS API KEY; however, it gives the same error regardless>',
})
with open('chart.png', 'wb') as f:
f.write(resp.content) Execution
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduce
The text was updated successfully, but these errors were encountered: