0👍
I had to change my c# code to:
Data = "{ "value": "100", "color": "#00a65a", "highlight": "#00a65a", "label": "IE" } ";
I needed to quote everything, and it wasnt working with \"
, i needed to put "
And with JSON converted it to an object:
var PieData = JSON.parse(token2);
I’m not really sure if this is the best solution, but it’s working for now.
- Chartjs-ChartJS row size
- Chartjs-How can I build a vertical line without going through my dots on my line graph? (charts.js)
Source:stackexchange.com