ajax - Json data parsing error for flot graph -
datapie = [ {"label": "running", "data": [19.5], "color":"#e1ab0b"}, {"label": "stopped", "data": [4.5], "color":"#fe0000"}, {"label": "terminated", "data": [36.6], "color":'#93b40f"} ]; getting error typeerror: d undefined
please help!!
data called using ajax
the data doesn't in correct format. should 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/
Comments
Post a Comment