Horje
chart js hide legend Code Example
chart js hide legend
var myChart = new Chart(ctx, {
   type: 'line',
   data: data,
   options: {
      legend: {
         display: false //This will do the task
      }
   }
});
Source: devsheet.com
legend on click use default chartjs
// How to implement a custom behaviour when clicking on a legend element
var original = Chart.defaults.global.legend.onClick;
Chart.defaults.global.legend.onClick = function(e, legendItem) {
  /* do custom stuff here */
  original.call(this, e, legendItem);
};
Source: github.com




Javascript

Related
uppercase angular pipe Code Example uppercase angular pipe Code Example
moment add 30 days Code Example moment add 30 days Code Example
jquery remove string from string Code Example jquery remove string from string Code Example
border react native Code Example border react native Code Example
how to adjust the caledar height fullcalendar Code Example how to adjust the caledar height fullcalendar Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7