Reputation: 61
Does Chartkick allow users to label the x/y axies?
Sample Code:
<%= line_chart Product.group("purchased").maximum(:price) %>
Upvotes: 6
Views: 4641
Reputation: 3236
Yes, with Google Charts, use:
<%= line_chart Product.group("purchased").maximum(:price), {library: {hAxis: {title: "X"}, vAxis: {title: "Y"}}} %>
Upvotes: 15