ruby-on-railschartkick

How to hide axis in column_chart using chartkick


In chartkick's column_chart, I want to remove the axes of the chart as shown in the attached image.

I tried this code, but I couldn't hide axis.

<%= column_chart data, library: { hAxis: { textPosition: 'none'  },vAxis: { textPosition: 'none'  } } %>

enter image description here


Solution

  • The problem is now solved.

    <%= column_chart data, library: { scales: { xAxes: [display: false], yAxes: [display: false] } %>