标签: 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%'}}
它给出了
但我需要这样的事情:
即。传奇中的更多信息。我怎么能得到它?