[CLOSED] How to change chart type at run time ?

  1. #1

    [CLOSED] How to change chart type at run time ?

    Hi Ext.net Team ,

    I saw the example of charts using Ext.net .

    But I want to know , how can I change the chart type at runtime ?

    Means first time on page load I create a pie chart using dataList ,Using same dataList I want to create a different chart when I select the chart type as line it should show the line chart or when I select the chart type as column it should show the column chart .

    Please share any example for the same in Razor.

    Thanks
    Last edited by Daniil; Apr 23, 2013 at 3:53 AM. Reason: [CLOSED]
  2. #2
    Hi @alscg,

    Unfortunately, we have no example exactly for this scenario.

    You can put a chart (-s) in a partial view (-s) and render it to a Container with a Loader.
    http://mvc.ext.net/#/Dynamic_Partial...Partial_Items/

    Another approach is rendering a Chart during a common DirectEvent, similar to this example:
    https://examples2.ext.net/#/XRender/Basic/Add_Items/

    Just in MVC you will need to pass a container' id to a controller action instead of using the things like "this.Panel1".

Similar Threads

  1. [MVC] Change Proxy Render Type
    By André Stoicov in forum 2.x Help
    Replies: 8
    Last Post: Mar 27, 2013, 1:51 PM
  2. Replies: 5
    Last Post: Feb 17, 2013, 12:51 AM
  3. [CLOSED] FormPanel + Change field type based on a value
    By bossun in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 24, 2012, 1:00 PM
  4. Change input type based on data type
    By bjones in forum 1.x Help
    Replies: 5
    Last Post: Jan 06, 2012, 9:54 AM
  5. Change theme in run time
    By flaviodamaia in forum 1.x Help
    Replies: 0
    Last Post: May 19, 2009, 5:41 PM

Posting Permissions