We will understand the debugging process in three sections:Table of Contents
FusionCharts XT in PHP Series
or tags.Invalid XML Data message, it means that the XML data document is malformed. Check it for common errors like: and not or ' (XML Attribute Character) and " (HTML Parameter Character). e.g., if you’re using direct HTML embedding method, and using " for HTML parameters, then you need to make sure that all your XML attributes use ' as containers.'// < ![CDATA[ //However, with the above line alone you will not be able to see any logs. To see the output, log it to the browser’s console by adding the following line:
FusionCharts.debugMode.outputTo( function() { console.log(arguments); } );
You should see the following events being logged in the browser’s console: FusionCharts.debugMode.outputFormat('verbose');
FusionCharts.debugMode.enabled( function() { console.log(arguments); }, 'verbose');
And for the rare bug-hunting session when you don’t have Firebug installed, you can include Firebug-Lite remotely: FusionCharts.debugMode._enableFirebugLite();
function myChartListener(eventObject, argumentsObject) {
alert( eventObject.sender.id + " has an error: " + argumentsObject.message );
}
FusionCharts("chart_id").addEventListener ("Error" , myChartListener );
The first argument is eventObject which provides details of the event. It is an object which mainly provides three properties : eventId : An unique ID given to the event eventType : A string containing the name or the event type, for example, “rendered” etc. sender : A FusionCharts JavaScript Object reference to the chart which has raised that event The second argument is argumentsObject is an object and contains details of the event. As per the type of the event the properties of parameter objects varies. You can read more about Listening to Events in the FusionCharts XT Documentation. To create pie charts and generate statistical data, you’ll find this list of the best…
To implement FusionCharts in a dynamically resizing flexbox layout, ensure that the chart's dimensions are…
At FusionCharts, we believe in empowering developers and businesses with cutting-edge data visualization tools that…
Ever had a data set that seemed more complicated than a Rubik's cube? You’re not…
We’ve all seen them in textbooks or presentations—those overlapping circles that simplify complex information into…
We’re excited to announce the upcoming release of FusionCharts v4.1—a groundbreaking step forward in the…