We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies


The React Sparkline Charts is a replacement for normal charts to display trends in a very small area. Customize sparklines completely by changing the series or axis type and by adding markers, data labels, range bands, and more.

Sparkline types

React Sparkline Charts support five types of sparklines (line, column, area, win-loss, and pie) to show data trends.

React sparkline chart rendered in line type.

Line sparkline

Use a line sparkline to represent patterns and trends in data, such as seasonal effects, large changes, and turning points over a period of time.

React sparkline chart rendered in area type.

Area sparkline

An area sparkline is a line sparkline with the area between its points colored. Use this when the magnitude of the trend is to be communicated rather than individual data values.

React sparkline charts rendered in column type.

Column sparkline

A column sparkline is designed to show different values of two or more subjects. Use vertical bars to represent the different values.

React sparkline chart rendered in win-loss type.

Win-loss sparkline

Use a win-loss sparkline to show if each value is positive, negative, or zero to visualize win/loss scenarios such as results in games.

React sparkline chart rendered in pie type.

Pie sparkline

A pie sparkline is a circular graph that is divided into slices to illustrate numeric proportions.

Axis value types

React Sparkline Charts control offers different axes types like numeric, category, and date-time to plot any type of data in the sparkline.

Axis customization

Configure and customize axis in the sparkline graphs to show the origin and range of the data points.

React sparkline chart rendered with customized axis.

Special points customization

Some data points in the sparklines are special. Denote the data usage by highlighting and customizing the special data points, such as first, last, high, low, and negative points.

React sparkline chart rendered with customized special points.


The markers highlights data points in the line and area sparklines and makes these sparklines more readable.

React sparkline chart rendered with markers.

Data label

Improve readability by using data labels in the sparkline to display the values of data points.

React Sparkline with Data labels.


The interactive React Sparkline Charts provide options to display details about data point values through a tooltip when hovering the mouse over a data point.

Displays a tooltip on moving mouse over the data points in React sparkline charts.

Track line

The track line tracks the data points that are closer to the mouse position or touch contact.

Displays a track line on moving mouse over the data points in React sparkline charts.

Range band

Highlight a particular region in a React sparkline charts using a range band to show the range of safe values. By setting the minimum and maximum for a range band, the outliers can be easily identified.

React sparkline chart rendered with a range band.

Sparkline dimensions

Sparklines can be rendered to its container size. The size of a Sparkline can be set directly on the Sparkline or to the Sparkline’s container. Customize the Sparkline dimensions by setting the container element’s width and height.

React sparkline dimensions.

Touch and browser support

The interactive Sparkline Chart control also supports touch interactions.

React Sparklines Touch illustration

Touch support

All the React sparkline features will work on touch devices with zero configuration. Use touch features such as tooltip and track line without any customization.

React Sparklines Responsive illustration


You can view the React Sparkline Charts control on various devices. Also hide specific elements in the sparkline for particular screen sizes by making a very minimal change in the events.

Cross-browser illustration

Cross-browser support

You can render the Sparkline Charts component in all modern browsers.

React Sparkline Code Example

Easily get started with the React Sparkline using a few simple lines of TSX code example as demonstrated below. Also explore our React Sparkline Example that shows you how to render and configure the Smith Chart in React.

import * as React from "react";
import * as ReactDOM from "react-dom";
import { SparklineComponent, Inject, SparklineTooltip } from '@syncfusion/ej2-react-charts';
class App extends React.Component {
    render() {
        return (
            <SparklineComponent id='spark1-container' height='80px' width='90%' lineWidth={1} type='Line' valueType='Numeric' fill='#3C78EF' markerSettings= dataSource={[
            { x: 1, yval: 5 },
            { x: 2, yval: 6 },
            { x: 3, yval: 5 },
            { x: 4, yval: 7 },
            { x: 5, yval: 4 },
            { x: 6, yval: 3 },
            { x: 7, yval: 9 },
            { x: 8, yval: 5 },
            { x: 9, yval: 6 },
            { x: 10, yval: 5 },
            { x: 11, yval: 7 },
            { x: 12, yval: 8 },
            { x: 13, yval: 4 },
            { x: 14, yval: 5 },
            { x: 15, yval: 3 },
            { x: 16, yval: 4 },
            { x: 17, yval: 11 },
            { x: 18, yval: 10 },
            { x: 19, yval: 2 },
            { x: 20, yval: 12 },
            { x: 21, yval: 4 },
            { x: 22, yval: 7 },
            { x: 23, yval: 6 },
            { x: 24, yval: 8 },
        ]} xName='x' yName='yval'>
            <Inject services={[SparklineTooltip]}/>                                    
ReactDOM.render(<App />, document.getElementById('smithchart'));

Other supported frameworks

The Sparkline Charts component is also available in Blazor, Vue, Angular, and JavaScript frameworks. Check out the different Sparkline Charts platforms from the links below,


Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.


Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon
Live Chat Icon For mobile