[CLOSED] Dynamic line charts with unknown number of yfields

  1. #1

    [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?
    Last edited by geoffrey.mcgill; Feb 26, 2013 at 7:25 AM. Reason: [CLOSED]
  2. #2
    Could you dynamically generate the whole chart + store based upon some DirectEvent or DirectMethod request (or just during Page_Load)? Then render them to the page?
    Geoffrey McGill
    Founder & CEO
  3. #3
    Yes, I guess it is better do not create chart until required data is received
    After that (after data receiving) you can create store and chart manually and render to required element

    By the way, store and grid can change own structure basing on meta in the request
    See in SVN /Examples/GridPanel/Data_Presentation/Meta_config_with_handler/Default.aspx

    Unfortunately, such functionality is not presented in chart
    Vladimir Shcheglov
    Sr. Developer

Similar Threads

  1. [CLOSED] Unable to change charts line color
    By odyssey in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Jan 18, 2013, 5:01 AM
  2. Unable to get Dynamic Charts in Ext.Net
    By nagesh in forum 2.x Help
    Replies: 13
    Last Post: Nov 17, 2012, 6:22 AM
  3. Gridpanel with unknown columns
    By rajputamit in forum 1.x Help
    Replies: 3
    Last Post: May 07, 2012, 11:31 AM
  4. Replies: 2
    Last Post: Nov 22, 2010, 3:16 PM
  5. [CLOSED] Dynamic Hyperlink adding HTML Line break after
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 13, 2010, 2:09 PM

Posting Permissions