How to set up a legend in Google Charts with Chartkick

I use Chartkick to render some statisitcs data in my Ruby-on-Rails project. Chartkick based on Google Chart . Is there a way to personalize data output in a chart legend?

For instance:

= pie_chart User.get_country_statistic, library: {legend: {position: "left"}, chartArea: {left:0, width:'100%'}} 

This gives enter image description here

But I need something like this: enter image description here

those. more information in the legend. How can i get this?

+5
source share

All Articles