score:1

Accepted answer

full details of all of the options are at https://www.chartjs.org/docs/latest/axes/styling.html.

the general form is something like this:

<%= line_chart chart_path(@obj), 
  code: false,
  points: false, 
  min: 0, 
  max: 20, 
  colors: ["#0284c7", "#44403c"], 
  height: '105px', 
  width: '175px',
  library: { 
    scales: {           
      x: {
       display: false,
      },
      y: {
       display: true,
       font: {
          size: 6,
          weight: 100
      }
    }
  } %>

the display attributes indicate whether to show the grid or not.

score:0

the problem was the cdn i found was out of date. with the cdn from jsdelivr the grid lines show up. the time scale formatting is different, but assume fixable. so the answer was right or on the right path. thank you.


Related Query

More Query from same tag