score:1

how can i make the y axis only integer? where should i add it?

you can make the y axis only integer by setting stepsize property to 1 for ticks in the chart options.

options: {
   scales: {
      yaxes: [{
         ticks: {
            stepsize: 1
         }
      }]
   }
}

see tick configuration options

how can i turn off the title which is "my open case"?

you can turn off the title (aka legend) by setting display property to false for the legend.

options: {
   legend: {
      display: false
   }
}

see legend configuration

how can i turn off the background grids off?

you can turn off the background grids by setting gridlines's display property to false for both the x and y axis.

options: {
   scales: {
      xaxes: [{
         gridlines: {
            display: false
         }
      }],
      yaxes: [{
         gridlines: {
            display: false
         }
      }]
   }
}

see grid line configuration

ᴡᴏʀᴋɪɴɢ ᴇxᴀᴍᴘʟᴇ ᴏɴ ᴊꜱꜰɪᴅᴅʟᴇ


Related Query

More Query from same tag