Overview
Angular 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.
Custom neck
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 chart look like an inverted pyramid.
Data label
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. You can rotate the data label by its given angle.
Point explode
Data points can be exploded on rendering and on mouse click.
Grouped points
Group the points in a funnel chart based on certain conditions. The grouped slices can be split into individual points by clicking the slice.
Customization
Customize the look and feel of the funnel chart using built-in APIs.
Angular Funnel Chart Code Example
Easily get started with Angular Funnel Chart using a few simple lines of HTML and TS code example as demonstrated below. Also explore our Angular Funnel Chart Example that shows you how to render and configure the chart.
<ejs-accumulationchart id="chart-container">
<e-accumulation-series-collection>
<e-accumulation-series [dataSource]='data' xName='x' yName='y' type='Funnel'></e-accumulation-series>
</e-accumulation-series-collection>
</ejs-accumulationchart>//app.component.ts
import { Component } from '@angular/core';
export class AppComponent {
public data: Object[] = [
{ x: 'JPN', text: 'Japan', y: 5156 },
{ x: 'DEU', text: 'Germany', y: 3754 },
{ x: 'FRA', text: 'France', y: 2809 },
{ x: 'GBR', text: 'UK', y: 2721 },
{ x: 'BRA', text: 'Brazil', y: 2472 },
{ x: 'RUS', text: 'Russia', y: 2231 },
{ x: 'ITA', text: 'Italy', y: 2131 },
{ x: 'IND', text: 'India', y: 1857 },
];
}
//app.module.ts
import { AccumulationChartModule } from '@syncfusion/ej2-ng-charts';
import { FunnelSeriesService} from '@syncfusion/ej2-ng-charts';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule, AccumulationChartModule
],
providers: [FunnelSeriesService],
bootstrap: [AppComponent]
})
export class AppModule { }
