Feature modules in TypeScript Charts

Inject the modules listed below to extend the Chart’s functionality.

How to inject modules

In a CommonJS or ES module setup, import the chart and the modules you need, then call Chart.Inject(...) with the module classes:

import { Chart, Category, LineSeries, Legend, Tooltip } from '@syncfusion/ej2-charts';

Chart.Inject(Category, LineSeries, Legend, Tooltip);

let chart: Chart = new Chart({
  // ...
});
chart.appendTo('#element');

Available chart modules

Axis type feature modules

Module Description
Category Inject this module to use a category axis type to visualize category (string-type) values.
DateTime Inject this module to use a DateTime axis type to visualize DateTime values.
Logarithmic Inject this module to use a logarithmic axis type to visualize logarithmic values.
DateTimeCategory Inject this module to use a DateTime category axis type to visualize DateTime category values.

Series type feature modules

Module Description
LineSeries Inject this module to use the line type series in the chart.
StepLineSeries Inject this module to use the step line type series in the chart.
StackingLineSeries Inject this module to use the stacking line type series in the chart.
MultiColoredLineSeries Inject this module to use the multi colored line type series in the chart.
SplineSeries Inject this module to use the spline type series in the chart.
AreaSeries Inject this module to use the area type series in the chart.
RangeAreaSeries Inject this module to use the range area type series in the chart.
RangeStepAreaSeries Inject this module to use the range step area type series in the chart.
SplineRangeAreaSeries Inject this module to use the spline range area type series in the chart.
StackingAreaSeries Inject this module to use the stacking area type series in the chart.
StackingStepAreaSeries Inject this module to use the stacking step area type series in the chart.
StepAreaSeries Inject this module to use the step area type series in the chart.
SplineAreaSeries Inject this module to use the spline area type series in the chart.
MultiColoredAreaSeries Inject this module to use the multi colored area type series in the chart.
ColumnSeries Inject this module to use the column type series in the chart.
RangeColumnSeries Inject this module to use the range column type series in the chart.
StackingColumnSeries Inject this module to use the stacking column type series in the chart.
BarSeries Inject this module to use the bar type series in the chart.
StackingBarSeries Inject this module to use the stacking bar type series in the chart.
ScatterSeries Inject this module to use the scatter type series in the chart.
BubbleSeries Inject this module to use the bubble type series in the chart.
PolarSeries Inject this module to use the polar type series in the chart. Requires a polar axis type.
RadarSeries Inject this module to use the radar type series in the chart. Requires a radar axis type.
HiloSeries Inject this module to use the hilo type series in the chart.
HiloOpenCloseSeries Inject this module to use the hilo open close type series in the chart.
CandleSeries Inject this module to use the candle type series in the chart.
BoxAndWhiskerSeries Inject this module to use the box and whisker type series in the chart.
WaterfallSeries Inject this module to use the waterfall type series in the chart. Requires ColumnSeries to be injected.
HistogramSeries Inject this module to use the histogram type series in the chart. Requires ColumnSeries or BarSeries to be injected.
ParetoSeries Inject this module to use the Pareto type series in the chart. Requires LineSeries and ColumnSeries to be injected.

Module dependencies: WaterfallSeries, HistogramSeries, and ParetoSeries extend base series types. Inject the base module (such as ColumnSeries or LineSeries) in addition to the derived module, or the chart will not render the series.

Indicator type feature modules

Module Description
AccumulationDistributionIndicator Inject this module to use the accumulation distribution indicator.
AtrIndicator Inject this module to use the average true range (ATR) indicator.
BollingerBands Inject this module to use the Bollinger Bands indicator.
EMAIndicator Inject this module to use the exponential moving average (EMA) indicator.
MomentumIndicator Inject this module to use the momentum indicator.
MACDIndicator Inject this module to use the moving average convergence divergence (MACD) indicator.
RsiIndicator Inject this module to use the relative strength index (RSI) indicator.
SmaIndicator Inject this module to use the simple moving average (SMA) indicator.
StochasticIndicator Inject this module to use the stochastic indicator.
TmaIndicator Inject this module to use the triangular moving average (TMA) indicator.

For indicator configuration options, see Technical indicators.

Chart-level feature modules

Module Description
WebMcpChart Inject this module to use the WebMCP feature for AI agent tool integration.
StripLine Inject this module to use the strip line feature.
Trendlines Inject this module to use the trendline feature.
DataLabel Inject this module to use the data label feature on series points.
ChartAnnotation Inject this module to use the annotation feature.
Legend Inject this module to use the legend feature.
Tooltip Inject this module to use the chart-level tooltip feature. This is separate from the data-label tooltip rendered on a series point.
Zoom Inject this module to use the zooming and panning feature.
DataEditing Inject this module to use the data editing feature.
Crosshair Inject this module to use the crosshair and trackball feature.
Selection Inject this module to use the selection feature on series points.
Highlight Inject this module to use the highlight feature on series points. Use Highlight to render a hovered state and Selection to render a persisted selected state.
Export Inject this module to use the export feature (PNG, JPEG, SVG, PDF, or print).
MultiLevelLabel Inject this module to use the multi-level label feature on an axis.

Highlight vs selection: Highlight is triggered on hover and is reset when the pointer leaves. Selection persists until cleared programmatically. Inject the module that matches the interaction you want.

See also