Chartjs-Add options to Charts.js

1👍

You need to pass it as an option:

options = {
  scaleShowLabels : false
};

var barChartData = {
  labels : ["test "],
  datasets : [
  {
   fillColor : "#153b63",
   data : [61]
 },
 {
   fillColor : "#e99555",
   data : [25]
 }
 ]                           
};                
var myLine = new Chart(document.getElementById("canvasOne").getContext("2d")).Bar(barChartData, options);

Leave a comment