Answers for "chartjs chart hide"

1

chart js hide legend

var myChart = new Chart(ctx, {
   type: 'line',
   data: data,
   options: {
      legend: {
         display: false //This will do the task
      }
   }
});
Posted by: Guest on July-13-2021
0

chart.js hide bar title

var chart = new Chart(ctx, {
type: 'bar',
data: data,
options: {
    plugins: {
        legend: {
            display: false
        }
    }
}
Posted by: Guest on June-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language