Features
  • Adds a chart using just one single component.
  • Auto-updates the chart object when the data source is modified.
  • Adds a chart from a JSON URL, from a XML URL, or using props Binding.
  • Allows you to enable interactivity between Javascript charts
  • Offers advanced control by giving you access to the complete FusionCharts object (containing the chart configuration).
A Simple Chart
Quick Demo:
Reserves (MMbbl)0K50K100K150K200K250K300KCountryVenezuelaSaudiCanadaIranRussiaUAEUSChinaCountries With Most Oil Reserves [2017-18]In MMbbl = One Million barrels
Quick Start
Step 1: Install the React-FusionCharts wrapper framework

In the terminal run the following command:

Also install fusionCharts, if it is not already installed:

Step 2: Import the ReactFC component

After installing react-fusioncharts, import it in your React app:

Render FusionMaps

To render a map, import the FusionMaps module along with the map definition.

Working with Events

To attach event callbacks to a FusionCharts component, follow the pattern below.

Write the callback:

As a separate function:

Or, as a component class method:

Attach the callback to an event through the React-FC component:

Where, EVENTNAME is to be replaced by the event you want to track.

Consider the example below that tracks hover events on a data plot.
Working with APIs

To call APIs we will need the chart object. To get the chart object for an React-FC component, pass a callback through the attribute onRender.

Write the callback:

As a separate function:

Or, as a component class method:

Pass the callback as a prop, to which the chart object will be returned on rendering:

Consider the example below that converts a Column 2D chart to a Pie 2D chart after 5 seconds.
Usage and integration of FusionTime

From fusioncharts@3.13.3-sr.1 and react-fusioncharts@3.0.0, You can visualize timeseries data easily on react.

Consider the example below for integration of FusionTime
Licensing

React-FusionCharts module is licensed under open-source, distributed under the terms of the MIT/X11 License. You will still need to include FusionCharts in your page, as this project provides no direct functionality. You can download a free evaluation version here. To use in a commercial environment, please purchase a FusionCharts license.

© 2002-2018 InfoSoft Global Private Limited. All Rights Reserved.