Chartkick是否允许用户标记x / y轴?
Sample Code:
<%= line_chart Product.group("purchased").maximum(:price) %>
答案 0 :(得分:15)
是的,使用Google图表,请使用:
<%= line_chart Product.group("purchased").maximum(:price), {library: {hAxis: {title: "X"}, vAxis: {title: "Y"}}} %>