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 :: javascript create element with attributes 
Javascript :: javascript set text of div 
Javascript :: grafana labs node exporter 
Javascript :: fetch get authorization header 
Javascript :: javascript ucwords 
Javascript :: mayoe que menor que 
Javascript :: js start with 
Javascript :: javascript close window after print 
Javascript :: how to remove backslash from string in javascript 
Javascript :: js set important style 
Javascript :: javascript location href target _blank 
Javascript :: react aos 
Javascript :: npm check updates 
Javascript :: python convert requests response to json 
Javascript :: javascript split get last element 
Javascript :: add image hostname on next config js 
Javascript :: discord.js cooldown 
Javascript :: put form action jquery 
Javascript :: vue deep watch 
Javascript :: how to resolve @fortawesome/free-solid-svg-icons in react 
Javascript :: jquery change font size 
Javascript :: get random number in solidity 
Javascript :: node read file line 
Javascript :: javascript stop setinterval 
Javascript :: show 5 entries in datatable 
Javascript :: jquery onchange 
Javascript :: regex between quotes 
Javascript :: jquery insert after 
Javascript :: javascript on double click 
Javascript :: show and hide div tag based on checkbox selection using jquery 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =