PDA

View Full Version : dynamically assign store to chart



sandy52
27 May 2014, 7:37 PM
Hi all,
I want to assign store dynamically to the chart. I have data in store like :


{"seriesRow":[{"Index":-576.0,"date1":"2014-05-01T00:00:00","total1":207.72},{"Index":-648.0,"date1":"0001-01-01T00:00:00","total1":0.0,"date2":"2014-05-01T00:00:00","total2":8.25}],
"revClass":[{"RevenueId":11,"RevenueName":"Food","Sales":76.2200,"Qty":11.0,"NonSales":false},{"RevenueId":13,"RevenueName":"Beer - Wine","Sales":92.2500,"Qty":23.0,"NonSales":false},{"RevenueId":14,"RevenueName":"Liquor","Sales":31.0000,"Qty":9.0,"NonSales":false}],"Id":1}

I want to show the data of seriesRow object, is this possible ??

Thanks and regards,
sandy

Gary Schlosberg
2 Jun 2014, 6:09 AM
I would look at the doc page for the type of chart you are trying to create, such as area:
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.chart.series.Area

You'll likely need to process your data to get it into the format the the chart requires.