Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
365
Change datasource of a chart based on condition
posted

Is it possible to change the datasource of a chart based on some condition..

Ex: If (A>B)

 datasource: Data,

else

datasource: Modified Data,

Thanks,

Naresh M

Parents
No Data
Reply
  • 7570
    Suggested Answer
    posted

    Hello Naresh,

     

    Thank you for contacting Infragistics!

     

    You may set the chart's datasource to a different set of data using the following code:

    $("#chart1").igDataChart("option", "dataSource", data1);

     

    If you have any questions, please let me know as well

Children