datapie = [
{"label": "Running", "data": [19.5], "color":"#e1ab0b"},
{"label": "Stopped", "data": [4.5], "color":"#fe0000"},
{"label": "Terminated", "data": [36.6], "color":'#93b40f"}
];
Getting an error TypeError: d is undefined
Please help!!
data is called using ajax
The data doesn't look to be in the correct format. It should look like this:
datapie = [
{label: "Running", data: 19.5, color: '#e1ab0b'},
{label: "Stopped", data: 4.5, color: '#fe0000'},
{label: "Terminated", data: 36.6, color: '#93b40f'}
];
Fiddle - http://jsfiddle.net/Rnusy/5/