How to set Json data to chart.js bar

0👍

to start with, ‘split’ creates an array, so you don’t have to push the results of ‘split’ into a new array, just:

var temp = "a,b,c,d";
var labels = temp.split(",");

now labels[1] = b, etc.

Leave a comment