0👍
I was able to solve this issue myself by simply adding quotation marks around the rendered data for the label as seen in this code:
datasets: [{
data: {{ data1 }},
label: "{{ player1 }}",
borderColor: "#3e95cd",
fill: false,
tension: 0
}, {
data: {{ data2 }},
label: "{{ player2 }}",
borderColor: "#8e5ea2",
fill: false,
tension: 0
}
Source:stackexchange.com