Hi all, thanks for giving your time on this, i am using Morris chart http://www.oesmith.co.uk/morris.js/
in this i want to fetch data from webservice and wish to display,if i put what ever data returned by my webservice to the data part through a variable it does't work, where as if i copy that data and directly paste then same data works for me , so please let me know how to achieve this
not working = var testData = "[" + data.d + "]";
where as data.d =[{ x: '2005', 'y': '10' }, { x: '2006', 'y': '100' }, { x: '2007', 'y': '50' }, { x: '2008', 'y': '90' }, { x: '2009', 'y': '10' }, { x: '2010', 'y': '100'}]
but if i use this data fixed in my js then it works
let me know, what i am missing