Feb 22, 2013, 5:05 AM
[CLOSED] Dynamic line charts with unknown number of yfields
I want to display a chart with store loaded remotely via httphandler. Problem is that I do not know what the columns the datatable will have until I fetch the data. How can I create a model for my store or series for my chart without knowing the columns ahead of time? The flow is as follows:
1. Page loads and a chart is added to the page. Chart's store has autoload on with ajax proxy to a httphandler
2. HttpHandler runs a report from the database that returns a datatable. The datatable is sent to the client.
3. At this point, how do I add fields to my model plus define series for my chart?
Am I better off not creating chart in the first place and create it in javascript when I get data back from the httphandler?
1. Page loads and a chart is added to the page. Chart's store has autoload on with ajax proxy to a httphandler
2. HttpHandler runs a report from the database that returns a datatable. The datatable is sent to the client.
3. At this point, how do I add fields to my model plus define series for my chart?
Am I better off not creating chart in the first place and create it in javascript when I get data back from the httphandler?
Last edited by geoffrey.mcgill; Feb 26, 2013 at 7:25 AM.
Reason: [CLOSED]