We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am rendering a geochart with the following:
<%= javascript_include_tag "//www.google.com/jsapi", "chartkick" %> <%= geo_chart Company.group(:country).count, colors: ["#33C1FF", "#008ED6"] %>
This works great, but the text used on the map to specify the count for each country is 'Value'.
I am using the Google Charts API to do this, and looking at their documentation, they are able to use 'Popularity' instead of 'Value' by doing this:
var data = google.visualization.arrayToDataTable([ ['Country', 'Popularity'], ['Germany', 200], ['United States', 300], ['Brazil', 400], ['Canada', 500], ['France', 600], ['RU', 700] ]);
I've tried to replicate this by adding it directly to geo_chart, and still 'Value' appeared. You can see my attempt below:
<%= geo_chart [['Popularity'], ['Germany', 200], ['United States', 300], ['Brazil', 400], ['Canada', 500], ['France', 600], ['RU', 700]], colors: ["#33C1FF", "#008ED6"] %>
Any ideas?
Thanks
The text was updated successfully, but these errors were encountered:
#46
Sorry, something went wrong.
Hey @alanchavezgar thanks for that.. Do you know if that works for the geomap as well? Looks like it's for highcharts
This is now possible with the label option.
label
Hello @ankane is also possible to customize Geo Charts with the label option ? I can't find docs about it. Thanks for any advise here : )
No branches or pull requests
I am rendering a geochart with the following:
This works great, but the text used on the map to specify the count for each country is 'Value'.
I am using the Google Charts API to do this, and looking at their documentation, they are able to use 'Popularity' instead of 'Value' by doing this:
I've tried to replicate this by adding it directly to geo_chart, and still 'Value' appeared. You can see my attempt below:
Any ideas?
Thanks
The text was updated successfully, but these errors were encountered: