Angular Combination Chart combines two or more chart types into a single chart to compare different data sets. Supports zooming, panning, tooltip, trackball, and selection.
You can create multiple series of different types in the same chart. Legend and tooltip for the series make it more readable.
Pareto chart is the combination of line and column charts. The column represents data in the descending order, whereas the line chart represents the cumulative value of the data.
You can combine Candle with line or column chart to show additional parameters in financial analysis. For example, volume of the stock can be viewed with the help of column chart.
Easily get started with Angular Combination Chart using a few simple lines of HTML and TS code example as demonstrated below. Also explore our Angular Combination Chart Example that shows you how to render and configure the chart.
<ejs-chart style='display:block' id='chartcontainer'>
<e-series-collection>
<e-series [dataSource]='data' type='Line' xName='x' yName='y'> </e-series>
<e-series [dataSource]='data1' type='Column' xName='x' yName='y'> </e-series>
</e-series-collection>
</ejs-chart>
//app.component.ts
import { Component } from '@angular/core';
export class AppComponent {
public data: Object[] = [
{ x: 2005, y: 28 }, { x: 2006, y: 25 }, { x: 2007, y: 26 }, { x: 2008, y: 27 },
{ x: 2009, y: 32 }, { x: 2010, y: 35 }, { x: 2011, y: 30 }
];
public data1: Object[] = [
{ x: 2005, y: 15 }, { x: 2006, y: 16 }, { x: 2007, y: 17 }, { x: 2008, y: 18 },
{ x: 2009, y: 19 }, { x: 2010, y: 20 }, { x: 2011, y: 21 }
];
}
//app.module.ts
import { ChartModule } from '@syncfusion/ej2-ng-charts';
import { LineSeriesService, ColumnSeriesService, CategoryService} from '@syncfusion/ej2-ng-charts';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule, ChartModule
],
providers: [ LineSeriesService, ColumnSeriesService, CategoryService],
bootstrap: [AppComponent]
})
export class AppModule { }
Learn the available options to customize Angular Combination Chart.
Combination Chart API Reference
Explore the Angular Combination Chart APIs.