Say I have the following code
<% data = [ [1,1],[2,3],[3,5],[4,8],[6,4],[7,2] ] %> <%= line_chart data, {discrete: true, library: {width: 600} }%>
Using chartkick you get the following chart

I want the vertical axis to be labeled with integers. (not decimal numbers) I thought the discrete option should have done this, but for this example, all that was done was to change the format of the elements on the horizontal axis from time to number (i.e. the following code
<%= line_chart data, {library: {width: 600} }%>
produces it

)
So my question is: what exactly does discrete do, except for the change dates, which are actually numbers numbers. How can I use it to create numbers on integers of a vertical axis? (Or, if it cannot be used for this, what can I use?)
user2664110
source share