Jump to content


clear chart data

jquery

  • Please log in to reply
2 replies to this topic

#1 morgenweck

morgenweck

    Forum Newbie

  • Members
  • 7 posts

Posted 01 May 2015 - 05:55 PM

I'm using the jQuery plug in and have no problems with

 

   $("#chart-container").insertFusionCharts({
            type: 'heatmap',
            renderAt: 'chart-container',
            // width: '400',
            //  height: '300',
            dataFormat: 'json',
            id: "BoxId"

        });

and

 

  $("#chart-container").updateFusionCharts({
            dataFormat: "json",
            dataSource: { 

etc
                      

 

but my question is how can I clear the chart?  $("#chart-container").clearChart();  does not seem to work


Edited by morgenweck, 01 May 2015 - 06:20 PM.


#2 Vishalika

Vishalika

    Supreme Being

  • Members
  • PipPipPipPipPipPipPipPip
  • 301 posts

Posted 04 May 2015 - 08:56 AM

Hi,

 

You can use the API  disposeFusionCharts(), which remove a chart instance from page and memory.

 

Refer this link for the APIs used by jquery in FusionCharts: http://docs.fusionch...-reference.html

 

Hope this helps.



#3 KarenHeinz

KarenHeinz

    Forum Newbie

  • Members
  • 2 posts

Posted 08 December 2016 - 10:34 AM

Real-time charts expose a JavaScript API that enables you to clear charts at the client-side. To do this, you need to:

  • Get a reference to the chart

  • Call the clearChart() method

Read my essay