1 thought on “Change/set data label

  1. @UrbanskiPawel seems to be working for me https://codepen.io/anon/pen/PEqVoE
    radar-plot-with-letter-scale

    var ctx = document.getElementById("myChart");
    var config = {
        type: 'radar',
        data: {
            labels: ["Pytanie 1", "Pytanie 8", "Pytanie 15", "Pytanie 22"],
            datasets: [
                {
                    label: "Poziom oczekiwamy",
                    borderColor: 'yellow',
                    pointBackgroundColor: 'yellow',
                    data: [3, 2, 3, 3]
                }, {
                    label: "Pracownik",
                    borderColor: 'blue',
                    pointBackgroundColor:'blue',
                    data: [1, 2, 3, 1]
                }, {
                    label: "Przełożony",
                    borderColor: 'green',
                    pointBackgroundColor:'green',
                    data: [2, 2, 4, 4]
                }
            ]
        },
        options: {
            legend: {
                position: 'top',
            },
            scale: {
              ticks: {
                stepSize: 1,
                min: 0,
                callback: function(value) {
                    return String.fromCharCode(value + 64);
                },
              }
            }
        }
    };
    var myChart = new Chart(ctx, config);

Comments are closed.