someone555

zoomTo() and resetChart() methods on FusionCharts object not found

Recommended Posts

When using the zoomline graph, I get a Javascript error when I try to call zoomTo() or resetChart() methods on a FusionCharts object.  For example, when trying to call the zoomTo() method, Javascript console displays the error "chartObj.zoomTo is not a function".   This happens with fusioncharts.js version 3.13.5-sr1 and 3.13.5.   Everything works fine, though, with version 3.13.1.

Are those methods still available on in 3.13.5?

FusionCharts.ready(function(){
                        var chartObj = new FusionCharts({ type: 'zoomline',....});

                        chartObj.render();

                        chartObj.zoomTo(2, 10);     <=== get an error

});

                                              

 

Share this post


Link to post
Share on other sites

Hi,

 

Yes, zoomTo() and resetChart() API methods for Zoomline chart are available in the current version that is 3.13.5-sr.1. Please refer to the below link for the list of API methods :

https://www.fusioncharts.com/dev/api/fusioncharts/fusioncharts-methods

 

Also find the below working samples for reference, with no error thrown on invoking these methods on the chart object references :

Sample fiddle(zoomTo) : http://jsfiddle.net/rnev37pd/1/

Sample fiddle(resetChart) : http://jsfiddle.net/co3hetu5/3/

 

Thanks,

Akash.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now