如何使用Chartkick在Google Charts中自定义图例

时间:2015-07-06 08:45:43

标签: ruby-on-rails charts chartkick

我使用Chartkick在Ruby-on-Rails项目中可视化一些统计数据。 Chartkick基于Google Charts。有没有办法在图表的图例中自定义数据输出?

例如:

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

它给出了 enter image description here

但我需要这样的事情: enter image description here

即。传奇中的更多信息。我怎么能得到它?

0 个答案:

没有答案