Overview
The React spline chart connects data points using smooth curves, offering a refined visual representation of trends. It supports various axis types including numeric, categorical, date-time, and logarithmic.
Multiple data series
Multiple data series can be plotted within a single chart, allowing users to compare different datasets. Enabling features like legends and tooltips provides additional insights into each series.
Data markers
Data points can be marked using built-in shapes: circles, rectangles, ellipses, vertical and horizontal lines, diamonds, triangles, pentagons, crosses, and plus signs. Custom images can also be used to enhance visual appeal.
Data labels
Data labels offer contextual information for each data point and can be rotated to a specified angle for better readability.
Dual axes
Multiple axes can be used to plot datasets with significantly different value ranges, enabling clearer comparisons.
Zoom and pan
Zooming and panning features allow users to explore specific regions of large datasets for detailed analysis.
Dynamic spline chart
The dynamic spline chart enables live data visualization. It updates in real-time to reflect changes occurring within seconds or minutes, letting you track trends like stock prices.
Missing data handling
React line charts gracefully handle missing data by supporting empty points, ensuring continuity in visualization.
Vertical charts
The chart can be rotated vertically to provide an alternative view of the data.
Styling options
Customize line colors, thicknesses, and dash patterns using built-in APIs to match your design and data presentation needs.
React spline chart code example
Quickly get started with the React spline chart using a few lines of TSX code, as shown below. You can also explore this React spline chart example to learn how to render and customize the chart in a React application.
import { Chart, ChartPrimaryXAxis, ChartSeriesCollection, ChartSeries } from '@syncfusion/react-charts';
export default function App() {
const data = [
{ x: 'Sun', y: 15 },
{ x: 'Mon', y: 22 },
{ x: 'Tue', y: 32 },
{ x: 'Wed', y: 31 },
{ x: 'Thu', y: 29 },
{ x: 'Fri', y: 24 },
{ x: 'Sat', y: 18 }
];
return (
<Chart>
<ChartPrimaryXAxis valueType='Category'>
</ChartPrimaryXAxis>
<ChartSeriesCollection>
<ChartSeries dataSource={data} xField="x" yField="y" type="Spline" />
</ChartSeriesCollection>
</Chart>
)
}Learning resources
Pure React Components
Developed using React’s core principles, this library employs functional components and hooks without any external dependencies.

