Overview

The React 100% Stacked Area Chart displays multiple data series as stacked areas, where the total contribution at each data point is normalized to 100%. The value axis always ranges from 0 to 100, making it suitable for percentage-based comparisons.


Multiple series

The 100% Stacked Area Chart allows multiple series to be displayed in a single chart for comparing proportional contributions across categories. Legends and tooltips provide additional information about individual series.


Marker

Markers support built-in shapes such as circles, rectangles, ellipses, lines, diamonds, triangles, pentagons, crosses, and pluses. Images can also be used as marker symbols for customized presentations.


Data label

Data labels display information about data points. Templates support custom label content using HTML elements such as images, divs, and spans. Labels can also be rotated to a specified angle.


Multiple axes

Use multiple axes to plot data sets with significantly different value ranges within the same chart.


Zoom and pan

Zooming and panning help explore large data sets by focusing on specific regions of the chart.


Empty/null data point

Missing or null values can be represented using empty points to maintain chart continuity.


Vertical chart

The 100% stacked area chart can be transposed vertically to view the data in different perspective.


Customization

Customize series colors, borders, and visual appearance using built-in APIs.


Code snippet

Get started with the React 100% Stacked Area Chart using the HTML and JavaScript code example demonstrated below. Also explore demo to learn how to render and configure the component.

import { AxisModel, Category, ChartComponent, Inject, SeriesCollectionDirective, SeriesDirective, StackingAreaSeries} from'@syncfusion/ej2-react-charts';
import * as React from 'react'; 
import * as ReactDOM from 'react-dom';
class App extends React.Component<{}, {}> {
  public primaryXAxis: AxisModel = { valueType: 'Category'};
  public data1 : any[]= [{ x: 'CHN', y: 32, },
  { x: 'GER', y: 15, },
  { x: 'RUS', y: 30 },
  { x: 'BRZ', y: 16 },
  { x: 'IND', y: 25 }];
  public data2 : any[]= [{ x: 'CHN', y: 10, },
  { x: 'GER', y: 15, },
  { x: 'RUS', y: 35 },
  { x: 'BRZ', y: 10 },
  { x: 'IND', y: 15 }];

  public render() {
    return <ChartComponent id='charts' primaryXAxis={this.primaryXAxis}>
      <Inject services={[StackingAreaSeries, Category]} />
      <SeriesCollectionDirective>
      <SeriesDirective dataSource={this.data1} xName='x' yName='y' type='StackingArea100'/>
      <SeriesDirective dataSource={this.data2} xName='x' yName='y' type='StackingArea100'/>
      </SeriesCollectionDirective>
    </ChartComponent>
  }
};
ReactDOM.render(
  <App />,
  document.getElementById('charts') as HTMLElement
);
<!DOCTYPE html>
<html>

<body> 
     <div id="charts"></div>
</body>

</html>

Learning resources

UG

100% Stacked Area Chart User Guide

Learn the available options to customize the React 100% Stacked Area Chart.

API

100% Stacked Area Chart API Reference

Explore the React 100% Stacked Area Chart APIs.


Explore all Syncfusion React components

Explore over 140+ React UI components featuring established, and production-ready controls built for modern web app development.

Scroll up icon
Syncfusion Feedback