

An圜hart.loadHTML5Engine() is a method that starts An圜hartHTML5.js loading and you can't do anything with charts before loading finishes.

So, to speed the loading and omit loading unnecessary engine you can use Asynchronous JavaScript loading.
Anychart switch data code#
If you use the code shown in the previous section - page will be displayed only when An圜hart HTML5 engine is fully loaded, but this may be unnecessary if Flash version is going to be used. Most of the modern web sites use JavaScript extensively and a lot of javascript files should be loaded prior to page display - this slows down page loading and increases display time. In this case if Flash Player is not available (the page is shown on iPhone, for example) An圜hart will switch to HTML5 engine and show SVG-based charts. If you want to enable HTML5 support and use HTML5 charts whenever Flash Player is not available, you can do that in a following way: Note the An圜hart.renderingType set to _ONLY and see Rendering Options to understand what it means. The lines in bold are the lines that are new and should be added to an old-style embedding code.
Anychart switch data upgrade#
If you don't want to use HTML5 charts yet, you can upgrade as usual, just replace swf files and do everything like you did earlier.

XML structure is 100% compatible and you should not change anything, but note: HTML5 version, for the moment, doesn't support all chart types Flash version supports, we will cover all functionality in the later releases. We recommend you to place this file in js subfolder along with An圜hart.js file. However, we are going to cover all Flash version features by HTML5 engine by the end of the year and you will be able to upgrade your charts without any significant changes in your web sites and applications.Īs we have already said, besides Flash engine that resides in SWF file we have also developed JavaScript (HTML5) component that resides in An圜hartHTML5.js: NOTE: HTML5 support is still in the beta phase, not all chart types and not all features are available for the moment and we do not guarantee that your charts in SVG version look and work exactly like they do in Flash version. This article helps you to understand what actions you should do (if any) to achieve your goals with the new version of An圜hart. Flash can't be rendered on the most of modern mobile devices, so we had been forced to create a chart engine in Java Script, that produces charts in SVG format. An圜hart version 6.0 is the first version with build-in beta HTML5 support.
