Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

chartjs remove legend

// It's now in plugins options
// See at https://www.chartjs.org/docs/latest/configuration/legend.html

const myChart = new Chart(ctx, {
   type: 'line',
   data: data,
   options: {
     plugins: {
       legend: {
         display: false
       }
     }
   }
})
Source by devsheet.com #
 
PREVIOUS NEXT
Tagged: #chartjs #remove #legend
ADD COMMENT
Topic
Name
4+5 =