【发布时间】:2021-10-26 09:01:29
【问题描述】:
我想在我的图表中保留标签,以便它具有描述性。我参考了https://github.com/ankane/chartkick/issues/155 的图表,但对我不起作用。
我在视图中的代码如下:
= line_chart @event_chart,discrete:true, legend: "bottom",curve: false,
colors: ["#67b55e","#d43766","#729be0"],
:library => {hAxis: {title: "months"}, vAxis: {title: "Y-label"}, title: "no. of events"}
我的图表如下所示:
【问题讨论】:
标签: ruby-on-rails chart.js chartkick