Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

chart js hide legend

var myChart = new Chart(ctx, {
   type: 'line',
   data: data,
   options: {
      legend: {
         display: false //This will do the task
      }
   }
});
Comment

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
       }
     }
   }
})
Comment

PREVIOUS NEXT
Code Example
Javascript :: get sibling element after element 
Javascript :: javascript add new array element to start of array 
Javascript :: how to convert string to int a array in javascript 
Javascript :: Im not getting req.body 
Javascript :: javascript repeat element in array 
Javascript :: jquery uncheck checkbox 
Javascript :: javascript shuffle an array 
Javascript :: jquery in checkbox checked 
Javascript :: how to update node js version 
Javascript :: append option to select ajax javascript 
Javascript :: How to change favicon in nextjs. 
Javascript :: ScrollController not attached to any scroll views 
Javascript :: javascript includes case insensitive 
Javascript :: install tailwind nextjs 
Javascript :: usenavigate 
Javascript :: increment day date javascript 
Javascript :: jquery change text of div 
Javascript :: how to call action from another module vuex 
Javascript :: create an array of numbers by numbers range in angular 
Javascript :: equivalent of useHistory in react 
Javascript :: js object random key 
Javascript :: Delete object in array with filter 
Javascript :: bootstrap datetimepicker onchange event 
Javascript :: convert base64 string to byte array javascript 
Javascript :: add array to localstorage 
Javascript :: find password input jquery 
Javascript :: NullInjectorError: No provider for HttpHandler! 
Javascript :: javascript delete cookie 
Javascript :: javascript array unique values 
Javascript :: check if class is active jquery 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =