Answers for "chart.js label word wrap"

0

chart.js label word wrap

scales: {         
      xAxes: [
        {
          ticks: {
            callback: function(label, index, labels) {
              if (/\s/.test(label)) {
                return label.split(" ");
              }else{
                return label;
              }              
            }
          }
        }
      ]
    }
Posted by: Guest on April-23-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language