US and Worldwide: +1 (866) 660-7555
Results 1 to 4 of 4

Thread: How To Change Datasource Of Chart At Runtime

  1. #1
    Join Date
    Oct 2009
    Posts
    122

    Default How To Change Datasource Of Chart At Runtime

    Hi,

    I have 5 charts in my dashboard, i want have multiple query for single chart. I don't want to create number of charts for number of queries. Is there a way to change data-source of chart at run-time so that it listen to same listeners defined.

    Thanks

  2. #2
    Join Date
    Mar 2011
    Posts
    257

    Default

    yes you can change the datasource of a chart on the fly. the datasource is defined under render_Chartname.queryDefinition.dataAccessId
    then you can write some javascript to change the dataAccessId and do a update of the chart.

  3. #3
    Join Date
    Oct 2009
    Posts
    122

    Default

    Thanks for your reply @hansva
    can you provide some sample js code....

  4. #4
    Join Date
    Oct 2009
    Posts
    122

    Default

    @hansva can you tell me in which property of the chart i have to write the js code. I am little new to js so if possible can you provide me sample js code.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •