• Demos
    • JavaScript Charts
    • JavaScript StockCharts
  • Download/NPM
    • Download CanvasJS
    • Install via NPM
  • Integrations
    Front End Technology Samples
    • React Charts
    • Angular Charts
    • Vue.js Charts New!
    • jQuery Charts
    • Dashboards
    Server Side Technology Samples
    • PHP Charts
    • Python Charts New!
    • ASP.NET MVC Charts
    • Spring MVC Charts
    • JSP Charts
  • License
  • Blog
  • Docs
    • Chart Documentation
    • StockChart Documentation
  • Support Forum
    • Chart Support
    • StockChart Support
  • My Account
My Account
  • KEY FEATURES
    • Chart with Index / Data Label
    • Chart with Zooming / Panning
    • Chart using JSON Data
    • Chart with Animation
    • Multi Series Chart
    • Chart with Multiple Axes
    • Chart with Crosshair
    • Chart with Scale Breaks
    • Chart with Logarithmic Axis
    • Performance with 50,000 Data Points
    • Responsive Charts
    • Chart with Drilldown
  • LINE CHARTS
    • Line Chart with Formatted Axes Labels
    • Dashed Line Chart
    • Multi Series Line Chart
    • Spline Chart
    • Multi Series Spline Chart
    • Step Line Chart
    • Multi Series Step Line Chart
  • BAR CHARTS
    • Bar Chart with Category Axis
    • Multi Series Bar Chart
    • Stacked Bar Chart
    • Stacked Bar 100% Chart
    • Stacked Bar 100% Chart with Indexlabel
  • COLUMN CHARTS
    • Column Chart with Category Axis
    • Multi Series Column Chart
    • Stacked Column Chart
    • Stacked Column 100% Chart
    • Stacked Column 100% Chart with Indexlabel
    • Waterfall Chart
    • Waterfall Chart with Indexlabel
  • AREA CHARTS
    • Area Chart with Date-Time Axis
    • Multi Series Area Chart
    • Spline Area Chart
    • Multi Series Spline Area Chart
    • Step Area Chart
    • Stacked Area Chart
    • Stacked Area 100% Chart
  • RANGE CHARTS
    • Range Column Chart
    • Multi Series Range Column Chart
    • Range Bar Chart
    • Multi Series Range Bar Chart
    • Range Area Chart
    • Multi Series Range Area Chart
    • Range Spline Area Chart
    • Multi Series Range Spline Area Chart
  • PIE & DOUGHNUT CHARTS
    • Pie Chart with Indexlabels
    • Pie Chart with Index Labels Placed Inside
    • Doughnut Chart
    • Doughnut Chart in Dark Theme
  • FUNNEL & PYRAMID CHARTS
    • Funnel Chart
    • Funnel Chart with Custom Neck
    • Pyramid Chart
  • FINANCIAL CHARTS
    • Candlestick Chart
    • Candlestick Chart from JSON
    • OHLC Chart
    • OHLC with Trendline
    • Box and Whisker Chart
    • Box and Whisker Chart with Customization
  • BUBBLE & SCATTER CHARTS
    • Scatter Chart
    • Scatter Chart with Custom Markers
    • Bubble Chart
  • COMBINATION CHARTS
    • Error chart
    • Error Line Chart
    • Pareto Chart
    • Combination of Column, Line and Area Chart
  • DYNAMIC CHARTS
    • Dynamic Line Chart
    • Dynamic Column Chart
    • Dynamic Multi Series Chart
  • STOCKCHARTS
    • StockChart with Numeric Axis
    • StockChart with Date-Time Axis
    • StockChart with SplineArea & Range Selector
  • ANGULAR, VUE.JS, JAVASCRIPT, JQUERY
    • Angular Charts
    • Vue.js Charts
    • jQuery Charts
    • JavaScript Charts
  • SERVER SIDE TECHNOLOGIES
    • ASP.NET MVC Charts
    • PHP Charts
    • Python Charts
    • JSP Charts
    • Spring MVC Charts

React Multi Series Spline Area Charts & Graphs

Download React Chart Samples
  • React Chart Samples
  • JavaScript Chart Samples
  • Angular Chart Samples
  • Vue.js Chart Samples
  • jQuery Chart Samples
  • PHP Chart Samples
  • Python Django Chart Samples
  • ASP.NET Chart Samples
  • JSP Chart Samples
  • Spring MVC Chart Samples
  • Dashboard Samples
  • JavaScript StockChart Samples

Example shows React Multi Series Spline Area Chart, that's generally used to show smooth gradual changes instead of sharp changes in value.

  • Tab1
[React Code]
/* App.js */
import React, { Component } from 'react';
import CanvasJSReact from '@canvasjs/react-charts';
//var CanvasJSReact = require('@canvasjs/react-charts');

var CanvasJS = CanvasJSReact.CanvasJS;
var CanvasJSChart = CanvasJSReact.CanvasJSChart;

class App extends Component {
    render() {
        const options = {
    animationEnabled: true,
    exportEnabled: true,
    title: {
        text: "Annual Expenses"
    },
    axisY: {
        prefix: "$"
    },
    toolTip: {
        shared: true,
        content: "{name}: ${y}"
    },
    legend: {
        fontSize: 13
    },
    data: [{
        type: "splineArea",
        showInLegend: true,
        name: "Salaries",
        markerSize: 0,
        color: "rgba(54,158,173,.9)",
        dataPoints: [
            { x: new Date(2020, 0), y: 3000000 },
            { x: new Date(2020, 1), y: 3500000 },
            { x: new Date(2020, 2), y: 3000000 },
            { x: new Date(2020, 3), y: 3040000 },
            { x: new Date(2020, 4), y: 2090000 },
            { x: new Date(2020, 5), y: 3100000 },
            { x: new Date(2020, 6), y: 3020000 },
            { x: new Date(2020, 7), y: 3000000 },
            { x: new Date(2020, 8), y: 3300000 },
            { x: new Date(2020, 9), y: 3800000 },
            { x: new Date(2020, 10), y: 3890000 },
            { x: new Date(2020, 11), y: 3900000 }
        ]
    },
    {
        type: "splineArea",
        showInLegend: true,
        name: "Office Cost",
        markerSize: 0,
        color: "rgba(134,180,2,.9)",
        dataPoints: [
            { x: new Date(2020, 0), y: 2010000 },
            { x: new Date(2020, 1), y: 1600000 },
            { x: new Date(2020, 2), y: 1400000 },
            { x: new Date(2020, 3), y: 1800000 },
            { x: new Date(2020, 4), y: 1800000 },
            { x: new Date(2020, 5), y: 2100000 },
            { x: new Date(2020, 6), y: 2200000 },
            { x: new Date(2020, 7), y: 2500000 },
            { x: new Date(2020, 8), y: 2300000 },
            { x: new Date(2020, 9), y: 2500000 },
            { x: new Date(2020, 10), y: 2600000 },
            { x: new Date(2020, 11), y: 2500000 }
        ]
    },
    {
        type: "splineArea",
        showInLegend: true,
        name: "Entertainment",
        markerSize: 0,
        color: "rgba(194,70,66,.9)",
        dataPoints: [
            { x: new Date(2020, 0), y: 1010000 },
            { x: new Date(2020, 1), y: 600000 },
            { x: new Date(2020, 2), y: 340000 },
            { x: new Date(2020, 3), y: 400000 },
            { x: new Date(2020, 4), y: 900000 },
            { x: new Date(2020, 5), y: 390000 },
            { x: new Date(2020, 6), y: 420000 },
            { x: new Date(2020, 7), y: 500000 },
            { x: new Date(2020, 8), y: 1430000 },
            { x: new Date(2020, 9), y: 1230000 },
            { x: new Date(2020, 10), y: 830000 },
            { x: new Date(2020, 11), y: 630000 }
        ]
    },
    {
        type: "splineArea",
        showInLegend: true,
        name: "Maintenance",
        markerSize: 0,
        color: "rgba(127,96,132,.9)",
        dataPoints: [
            { x: new Date(2020, 0), y: 170000 },
            { x: new Date(2020, 1), y: 260000 },
            { x: new Date(2020, 2), y: 100000 },
            { x: new Date(2020, 3), y: 140000 },
            { x: new Date(2020, 4), y: 90000 },
            { x: new Date(2020, 5), y: 100000 },
            { x: new Date(2020, 6), y: 120000 },
            { x: new Date(2020, 7), y: 500000 },
            { x: new Date(2020, 8), y: 130000 },
            { x: new Date(2020, 9), y: 230000 },
            { x: new Date(2020, 10), y: 280000 },
            { x: new Date(2020, 11), y: 130000 }
        ]
    }]
};

        return (
            <div>
                <CanvasJSChart options={options}
                /* onRef={ref => this.chart = ref} */
                />
                {/*You can get reference to the chart instance as shown above using onRef. This allows you to access all chart properties and methods*/}
            </div >
        );
    }
}
export default App;                              

Chart Customizations

Shared tooltip is helpful to display information of all the dataseries common to x-value in a single tooltip. Some of the other commonly used customization options are color, fillOpacity, etc.

Note   For step by step instructions, follow our React Integration Tutorial

Quick Links

  • Chart Docs
  • StockChart Docs
  • About Us
  • FAQs

Server Side Technologies

  • ASP.NET MVC Charts
  • PHP Charts
  • JSP Charts
  • Spring MVC Charts

Front Side Technologies

  • JavaScript Charts
  • jQuery Charts
  • React Charts
  • Angular Charts
  • JavaScript StockCharts

Contact

  • Fenopix, Inc.
  • 2093 Philadelphia Pike,
  • #5678, Claymont,
  • Delaware 19703
  • United States Of America

©2025 Fenopix Privacy Policy Cookies Policy Careers