React Funnel chart is like a pyramid, with two parts, the higher part called head and the lower part, neck. Funnel charts are often used to represent stages in a sales process and show the amount of potential revenue for each stage.
Customize the height and width of the funnel to change the look and feel. Changing the width and height of the neck to zero makes funnel charts look like an inverted pyramid.
Show details about the data points with the help of data label support. You can place the label inside and outside the chart. Connector lines can be used to connect the outside label with charts.
Data points can be exploded on rendering and on mouse click.
Group the points in a funnel chart based on certain conditions. The grouped slices can be split into individual points by clicking the slice.
Customize the look and feel of the funnel chart using built-in APIs.
import { AccumulationChartComponent, AccumulationSeriesCollectionDirective, AccumulationSeriesDirective, FunnelSeries, Inject}
from'@syncfusion/ej2-react-charts';
import * as React from 'react';
class App extends React.Component<{}, {}> {
public data1: any[]= [
{ x: 'United States', y: 45, text: 'USA', fill: '#00226C' },
{ x: 'Australia', y: 53, text: 'AUS: 14%', fill: '#0450C2' },
{ x: 'China', y: 56, text: 'CHN', fill: '#0073DC' },
{ x: 'India', y: 61, text: 'IND', fill: '#0D98FF' },
{ x: 'Japan', y: 13, text: 'JPN', fill: '#9CD9FF' },
{ x: 'United Kingdom', y: 71, text: 'UK', fill: '#0450C2' }
];
public render() {
return <AccumulationChartComponent id='charts'>
<Inject services={[FunnelSeries]} />
<AccumulationSeriesCollectionDirective>
<AccumulationSeriesDirective dataSource={this.data1} xName='x' yName='y' type='Funnel'/>
</AccumulationSeriesCollectionDirective>
</AccumulationChartComponent>
}
};
ReactDOM.render(
<App />,
document.getElementById('charts') as HTMLElement
);
<!DOCTYPE html>
<html>
<body>
<div id="charts"></div>
</body>
</html>