[Chartjs]-Chart.js Radar Chart How to Remove Outer Labels

3👍

Found a solution! see below:

options: {
    scale: {
        pointLabels: {
            callback: function(pointLabel, index, labels) {
                return screen_w > 500 ? pointLabel : ' ';
            } 
        }
    }
}

I’m using a variable of my own screen_w to conditionally return the label, or nothing.

Works like a charm.

Found buried here:
https://github.com/chartjs/Chart.js/pull/1879

3👍

Found simplest solution for remove outer label for all cases

 scale:{
           pointLabels:{
           fontSize: 0       
             },
       }

Just make FontSize equal to zero

Leave a comment