Vertical Chart in React Chart
Vertical
To render a chart in a vertical orientation, set the isTransposed property to true. This swaps the X and Y axes so categorical values appear on the Y axis and numeric values on the X axis. The setting is supported by all series types.
import * as React from "react";
import * as ReactDOM from "react-dom";
import { ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject, Legend, Category, Tooltip, DataLabel, SplineSeries } from '@syncfusion/ej2-react-charts';
import { splineData } from './datasource';
function App() {
const primaryxAxis = { title: 'Month', valueType: 'Category' };
const primaryyAxis = { minimum: -5, maximum: 35, interval: 5, title: 'Temperature in Celsius', labelFormat: '{value}C' };
const marker;
return <ChartComponent id='charts' primaryXAxis={primaryxAxis} primaryYAxis={primaryyAxis} title='CO2 - Intensity Analysis' isTransposed={true}>
<Inject services={[SplineSeries, Legend, Tooltip, DataLabel, Category]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource={splineData} xName='x' yName='y' width={2} name='London' type='Spline' marker={marker}>
</SeriesDirective>
</SeriesCollectionDirective>
</ChartComponent>;
}
;
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));import * as React from "react";
import * as ReactDOM from "react-dom";
import { AxisModel, ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject,
Legend, Category, Tooltip, DataLabel, Zoom, Crosshair, SplineSeries, Selection}
from'@syncfusion/ej2-react-charts';
import { splineData } from './datasource';
function App() {
const primaryxAxis: AxisModel= { title: 'Month',valueType: 'Category'} ;
const primaryyAxis: AxisModel= { minimum: -5, maximum: 35, interval: 5,title: 'Temperature in Celsius',labelFormat: '{value}C'} ;
const marker = { visible: true, width: 10, height: 10 };
return <ChartComponent id='charts'
primaryXAxis={ primaryxAxis }
primaryYAxis={ primaryyAxis }
title='CO2 - Intensity Analysis' isTransposed={ true }>
<Inject services={[SplineSeries, Legend, Tooltip, DataLabel, Category]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource ={splineData} xName='x' yName='y' width={2} name='London' type='Spline'
marker={ marker }>
</SeriesDirective>
</SeriesCollectionDirective>
</ChartComponent>
};
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));export let splineData = [
{ x: 'Jan', y: -1 }, { x: 'Feb', y: -1 },
{ x: 'Mar', y: 2 }, { x: 'Apr', y: 8 },
{ x: 'May', y: 13 }, { x: 'Jun', y: 18 },
{ x: 'Jul', y: 21 }, { x: 'Aug', y: 20 },
{ x: 'Sep', y: 16 }, { x: 'Oct', y: 10 },
{ x: 'Nov', y: 4 }, { x: 'Dec', y: 0 }
];export let splineData: Object[] = [
{ x: 'Jan', y: -1 }, { x: 'Feb', y: -1 },
{ x: 'Mar', y: 2 }, { x: 'Apr', y: 8 },
{ x: 'May', y: 13 }, { x: 'Jun', y: 18 },
{ x: 'Jul', y: 21 }, { x: 'Aug', y: 20 },
{ x: 'Sep', y: 16 }, { x: 'Oct', y: 10 },
{ x: 'Nov', y: 4 }, { x: 'Dec', y: 0 }
];Binding data with series
You can bind data to the chart using the dataSource property within the series configuration. This allows you to connect a JSON dataset or remote data to your chart. To display the data correctly, map the fields from the data to the chart series xName and yName properties.
import * as React from "react";
import * as ReactDOM from "react-dom";
import { ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject, Legend, Category, Tooltip, DataLabel, SplineSeries } from '@syncfusion/ej2-react-charts';
import { splineData } from './datasource';
function App() {
const primaryxAxis = { title: 'Month', valueType: 'Category' };
const primaryyAxis = { minimum: -5, maximum: 35, interval: 5, title: 'Temperature in Celsius', labelFormat: '{value}C' };
const marker;
return <ChartComponent id='charts' primaryXAxis={primaryxAxis} primaryYAxis={primaryyAxis} title='CO2 - Intensity Analysis' isTransposed={true}>
<Inject services={[SplineSeries, Legend, Tooltip, DataLabel, Category]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource={splineData} xName='x' yName='y' width={2} name='London' type='Spline' marker={marker}>
</SeriesDirective>
</SeriesCollectionDirective>
</ChartComponent>;
}
;
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));import * as React from "react";
import * as ReactDOM from "react-dom";
import { AxisModel, ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject,
Legend, Category, Tooltip, DataLabel, Zoom, Crosshair, SplineSeries, Selection}
from'@syncfusion/ej2-react-charts';
import { splineData } from './datasource';
function App() {
const primaryxAxis: AxisModel= { title: 'Month',valueType: 'Category'} ;
const primaryyAxis: AxisModel= { minimum: -5, maximum: 35, interval: 5,title: 'Temperature in Celsius',labelFormat: '{value}C'} ;
const marker = { visible: true, width: 10, height: 10 };
return <ChartComponent id='charts'
primaryXAxis={ primaryxAxis }
primaryYAxis={ primaryyAxis }
title='CO2 - Intensity Analysis' isTransposed={ true }>
<Inject services={[SplineSeries, Legend, Tooltip, DataLabel, Category]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource ={splineData} xName='x' yName='y' width={2} name='London' type='Spline'
marker={ marker }>
</SeriesDirective>
</SeriesCollectionDirective>
</ChartComponent>
};
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));export let splineData = [
{ x: 'Jan', y: -1 }, { x: 'Feb', y: -1 },
{ x: 'Mar', y: 2 }, { x: 'Apr', y: 8 },
{ x: 'May', y: 13 }, { x: 'Jun', y: 18 },
{ x: 'Jul', y: 21 }, { x: 'Aug', y: 20 },
{ x: 'Sep', y: 16 }, { x: 'Oct', y: 10 },
{ x: 'Nov', y: 4 }, { x: 'Dec', y: 0 }
];export let splineData: Object[] = [
{ x: 'Jan', y: -1 }, { x: 'Feb', y: -1 },
{ x: 'Mar', y: 2 }, { x: 'Apr', y: 8 },
{ x: 'May', y: 13 }, { x: 'Jun', y: 18 },
{ x: 'Jul', y: 21 }, { x: 'Aug', y: 20 },
{ x: 'Sep', y: 16 }, { x: 'Oct', y: 10 },
{ x: 'Nov', y: 4 }, { x: 'Dec', y: 0 }
];Empty points
Data points with null or undefined values are considered empty. By default (mode: 'Gap'), empty points leave a gap in the series; the mode property on emptyPointSettings lets you change how they are handled.
Mode
Use the mode property to control handling of empty points. Available modes: Gap, Drop, Zero, Average. The default mode is Gap.
import * as React from "react";
import * as ReactDOM from "react-dom";
import { ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject, Legend, Category, Tooltip, DataLabel, SplineSeries } from '@syncfusion/ej2-react-charts';
import { splineData } from './datasource';
function App() {
const primaryxAxis = { title: 'Month', valueType: 'Category' };
const primaryyAxis = { minimum: -5, maximum: 35, interval: 5, title: 'Temperature in Celsius', labelFormat: '{value}C' };
const marker={visible:true};
const emptyPoint= { mode: 'Zero' };
return <ChartComponent id='charts' primaryXAxis={primaryxAxis} primaryYAxis={primaryyAxis} title='CO2 - Intensity Analysis' isTransposed={true}>
<Inject services={[SplineSeries, Legend, Tooltip, DataLabel, Category]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource={splineData} xName='x' yName='y' name='London' type='Spline' emptyPointSettings={emptyPoint} marker={marker}>
</SeriesDirective>
</SeriesCollectionDirective>
</ChartComponent>;
}
;
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));import * as React from "react";
import * as ReactDOM from "react-dom";
import { AxisModel, ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject,
Legend, Category, Tooltip, DataLabel, Zoom, Crosshair, SplineSeries, Selection}
from'@syncfusion/ej2-react-charts';
import { splineData } from './datasource';
function App() {
const primaryxAxis: AxisModel= { title: 'Month',valueType: 'Category'} ;
const primaryyAxis: AxisModel= { minimum: -5, maximum: 35, interval: 5,title: 'Temperature in Celsius',labelFormat: '{value}C'} ;
const marker = { visible: true };
const emptyPoint: object = { mode: 'Zero' };
return <ChartComponent id='charts'
primaryXAxis={ primaryxAxis }
primaryYAxis={ primaryyAxis }
title='CO2 - Intensity Analysis' isTransposed={ true }>
<Inject services={[SplineSeries, Legend, Tooltip, DataLabel, Category]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource={splineData} xName='x' yName='y' name='London' type='Spline' emptyPointSettings={emptyPoint} marker={marker}>
</SeriesDirective>
</SeriesCollectionDirective>
</ChartComponent>
};
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));export let splineData = [
{ x: 'Jan', y: -1 }, { x: 'Feb', y: -1 },
{ x: 'Mar', y: 2 }, { x: 'Apr', y: null },
{ x: 'May', y: 13 }, { x: 'Jun', y: 18 },
{ x: 'Jul', y: 21 }, { x: 'Aug', y: 20 },
{ x: 'Sep', y: undefined }, { x: 'Oct', y: 10 },
{ x: 'Nov', y: 4 }, { x: 'Dec', y: 0 }
];export let splineData: Object[] = [
{ x: 'Jan', y: -1 }, { x: 'Feb', y: -1 },
{ x: 'Mar', y: 2 }, { x: 'Apr', y: null },
{ x: 'May', y: 13 }, { x: 'Jun', y: 18 },
{ x: 'Jul', y: 21 }, { x: 'Aug', y: 20 },
{ x: 'Sep', y: undefined }, { x: 'Oct', y: 10 },
{ x: 'Nov', y: 4 }, { x: 'Dec', y: 0 }
];Fill
Use the fill property to set the fill color for empty points.
import * as React from "react";
import * as ReactDOM from "react-dom";
import { ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject, Legend, Category, Tooltip, DataLabel, SplineSeries } from '@syncfusion/ej2-react-charts';
import { splineData } from './datasource';
function App() {
const primaryxAxis = { title: 'Month', valueType: 'Category' };
const primaryyAxis = { minimum: -5, maximum: 35, interval: 5, title: 'Temperature in Celsius', labelFormat: '{value}C' };
const marker={visible:true};
const emptyPoint= { mode: 'Zero', fill: 'red' };
return <ChartComponent id='charts' primaryXAxis={primaryxAxis} primaryYAxis={primaryyAxis} title='CO2 - Intensity Analysis' isTransposed={true}>
<Inject services={[SplineSeries, Legend, Tooltip, DataLabel, Category]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource={splineData} xName='x' yName='y' name='London' type='Spline' emptyPointSettings={emptyPoint} marker={marker}>
</SeriesDirective>
</SeriesCollectionDirective>
</ChartComponent>;
}
;
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));import * as React from "react";
import * as ReactDOM from "react-dom";
import { AxisModel, ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject,
Legend, Category, Tooltip, DataLabel, Zoom, Crosshair, SplineSeries, Selection}
from'@syncfusion/ej2-react-charts';
import { splineData } from './datasource';
function App() {
const primaryxAxis: AxisModel= { title: 'Month',valueType: 'Category'} ;
const primaryyAxis: AxisModel= { minimum: -5, maximum: 35, interval: 5,title: 'Temperature in Celsius',labelFormat: '{value}C'} ;
const marker = { visible: true };
const emptyPoint: object = { mode: 'Zero', fill: 'red' };
return <ChartComponent id='charts'
primaryXAxis={ primaryxAxis }
primaryYAxis={ primaryyAxis }
title='CO2 - Intensity Analysis' isTransposed={ true }>
<Inject services={[SplineSeries, Legend, Tooltip, DataLabel, Category]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource={splineData} xName='x' yName='y' name='London' type='Spline' emptyPointSettings={emptyPoint} marker={marker}>
</SeriesDirective>
</SeriesCollectionDirective>
</ChartComponent>
};
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));export let splineData = [
{ x: 'Jan', y: -1 }, { x: 'Feb', y: -1 },
{ x: 'Mar', y: 2 }, { x: 'Apr', y: null },
{ x: 'May', y: 13 }, { x: 'Jun', y: 18 },
{ x: 'Jul', y: 21 }, { x: 'Aug', y: 20 },
{ x: 'Sep', y: undefined }, { x: 'Oct', y: 10 },
{ x: 'Nov', y: 4 }, { x: 'Dec', y: 0 }
];export let splineData: Object[] = [
{ x: 'Jan', y: -1 }, { x: 'Feb', y: -1 },
{ x: 'Mar', y: 2 }, { x: 'Apr', y: null },
{ x: 'May', y: 13 }, { x: 'Jun', y: 18 },
{ x: 'Jul', y: 21 }, { x: 'Aug', y: 20 },
{ x: 'Sep', y: undefined }, { x: 'Oct', y: 10 },
{ x: 'Nov', y: 4 }, { x: 'Dec', y: 0 }
];Border
Use the border property to customize the border width and color for empty points.
import * as React from "react";
import * as ReactDOM from "react-dom";
import { ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject, Legend, Category, Tooltip, DataLabel, SplineSeries } from '@syncfusion/ej2-react-charts';
import { splineData } from './datasource';
function App() {
const primaryxAxis = { title: 'Month', valueType: 'Category' };
const primaryyAxis = { minimum: -5, maximum: 35, interval: 5, title: 'Temperature in Celsius', labelFormat: '{value}C' };
const marker={visible:true};
const emptyPoint= { mode: 'Zero', fill: 'red', border: {width: 2, color: 'red'} };
return <ChartComponent id='charts' primaryXAxis={primaryxAxis} primaryYAxis={primaryyAxis} title='CO2 - Intensity Analysis' isTransposed={true}>
<Inject services={[SplineSeries, Legend, Tooltip, DataLabel, Category]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource={splineData} xName='x' yName='y' name='London' type='Spline' emptyPointSettings={emptyPoint} marker={marker}>
</SeriesDirective>
</SeriesCollectionDirective>
</ChartComponent>;
}
;
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));import * as React from "react";
import * as ReactDOM from "react-dom";
import { AxisModel, ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject,
Legend, Category, Tooltip, DataLabel, Zoom, Crosshair, SplineSeries, Selection}
from'@syncfusion/ej2-react-charts';
import { splineData } from './datasource';
function App() {
const primaryxAxis: AxisModel= { title: 'Month',valueType: 'Category'} ;
const primaryyAxis: AxisModel= { minimum: -5, maximum: 35, interval: 5,title: 'Temperature in Celsius',labelFormat: '{value}C'} ;
const marker = { visible: true };
const emptyPoint: object = { mode: 'Zero', fill: 'red', border: {width: 2, color: 'red'} };
return <ChartComponent id='charts'
primaryXAxis={ primaryxAxis }
primaryYAxis={ primaryyAxis }
title='CO2 - Intensity Analysis' isTransposed={ true }>
<Inject services={[SplineSeries, Legend, Tooltip, DataLabel, Category]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource={splineData} xName='x' yName='y' name='London' type='Spline' emptyPointSettings={emptyPoint} marker={marker}>
</SeriesDirective>
</SeriesCollectionDirective>
</ChartComponent>
};
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));export let splineData = [
{ x: 'Jan', y: -1 }, { x: 'Feb', y: -1 },
{ x: 'Mar', y: 2 }, { x: 'Apr', y: null },
{ x: 'May', y: 13 }, { x: 'Jun', y: 18 },
{ x: 'Jul', y: 21 }, { x: 'Aug', y: 20 },
{ x: 'Sep', y: undefined }, { x: 'Oct', y: 10 },
{ x: 'Nov', y: 4 }, { x: 'Dec', y: 0 }
];export let splineData: Object[] = [
{ x: 'Jan', y: -1 }, { x: 'Feb', y: -1 },
{ x: 'Mar', y: 2 }, { x: 'Apr', y: null },
{ x: 'May', y: 13 }, { x: 'Jun', y: 18 },
{ x: 'Jul', y: 21 }, { x: 'Aug', y: 20 },
{ x: 'Sep', y: undefined }, { x: 'Oct', y: 10 },
{ x: 'Nov', y: 4 }, { x: 'Dec', y: 0 }
];Events
Series render
The seriesRender event fires before each series is rendered and lets you modify series properties such as data, fill, or name. For a vertical chart, use it to vary per-series fill or to swap data sources between renders.
import * as React from "react";
import * as ReactDOM from "react-dom";
import { ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject, Legend, Category, Tooltip, DataLabel, SplineSeries } from '@syncfusion/ej2-react-charts';
import { splineData } from './datasource';
function App() {
const primaryxAxis = { title: 'Month', valueType: 'Category' };
const primaryyAxis = { minimum: -5, maximum: 35, interval: 5, title: 'Temperature in Celsius', labelFormat: '{value}C' };
const marker={visible:true};
const seriesRender = (args) => {
args.fill = '#ff6347';
};
return <ChartComponent id='charts' primaryXAxis={primaryxAxis} primaryYAxis={primaryyAxis} title='CO2 - Intensity Analysis' isTransposed={true} seriesRender={seriesRender}>
<Inject services={[SplineSeries, Legend, Tooltip, DataLabel, Category]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource={splineData} xName='x' yName='y' name='London' type='Spline' marker={marker}>
</SeriesDirective>
</SeriesCollectionDirective>
</ChartComponent>;
}
;
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));import * as React from "react";
import * as ReactDOM from "react-dom";
import { AxisModel, ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject,
Legend, Category, Tooltip, DataLabel, Zoom, Crosshair, SplineSeries, ISeriesRenderEventArgs}
from'@syncfusion/ej2-react-charts';
import { splineData } from './datasource';
function App() {
const primaryxAxis: AxisModel= { title: 'Month',valueType: 'Category'} ;
const primaryyAxis: AxisModel= { minimum: -5, maximum: 35, interval: 5,title: 'Temperature in Celsius',labelFormat: '{value}C'} ;
const marker = { visible: true };
const seriesRender = (args: ISeriesRenderEventArgs) => {
args.fill = '#ff6347';
};
return <ChartComponent id='charts'
primaryXAxis={ primaryxAxis }
primaryYAxis={ primaryyAxis }
title='CO2 - Intensity Analysis' isTransposed={ true } seriesRender={seriesRender}>
<Inject services={[SplineSeries, Legend, Tooltip, DataLabel, Category]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource={splineData} xName='x' yName='y' name='London' type='Spline' marker={marker}>
</SeriesDirective>
</SeriesCollectionDirective>
</ChartComponent>
};
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));export let splineData = [
{ x: 'Jan', y: -1 }, { x: 'Feb', y: -1 },
{ x: 'Mar', y: 2 }, { x: 'Apr', y: 14 },
{ x: 'May', y: 13 }, { x: 'Jun', y: 18 },
{ x: 'Jul', y: 21 }, { x: 'Aug', y: 20 },
{ x: 'Sep', y: 10 }, { x: 'Oct', y: 10 },
{ x: 'Nov', y: 4 }, { x: 'Dec', y: 0 }
];export let splineData: Object[] = [
{ x: 'Jan', y: -1 }, { x: 'Feb', y: -1 },
{ x: 'Mar', y: 2 }, { x: 'Apr', y: 14 },
{ x: 'May', y: 13 }, { x: 'Jun', y: 18 },
{ x: 'Jul', y: 21 }, { x: 'Aug', y: 20 },
{ x: 'Sep', y: 10 }, { x: 'Oct', y: 10 },
{ x: 'Nov', y: 4 }, { x: 'Dec', y: 0 }
];Point render
The pointRender event fires before each data point is drawn, letting you customize per-point marker shape, border, or fill. For a vertical chart, use it to highlight specific points or apply conditional formatting.
import * as React from "react";
import * as ReactDOM from "react-dom";
import { ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject, Legend, Category, Tooltip, DataLabel, SplineSeries } from '@syncfusion/ej2-react-charts';
import { splineData } from './datasource';
function App() {
const primaryxAxis = { title: 'Month', valueType: 'Category' };
const primaryyAxis = { minimum: -5, maximum: 35, interval: 5, title: 'Temperature in Celsius', labelFormat: '{value}C' };
const marker={visible:true};
const pointRender = (args) => {
if (args.point.index % 2 !== 0) {
args.fill = '#ff6347';
}
else {
args.fill = '#009cb8';
}
};
return <ChartComponent id='charts' primaryXAxis={primaryxAxis} primaryYAxis={primaryyAxis} title='CO2 - Intensity Analysis' isTransposed={true} pointRender={pointRender}>
<Inject services={[SplineSeries, Legend, Tooltip, DataLabel, Category]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource={splineData} xName='x' yName='y' name='London' type='Spline' marker={marker}>
</SeriesDirective>
</SeriesCollectionDirective>
</ChartComponent>;
}
;
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));import * as React from "react";
import * as ReactDOM from "react-dom";
import { AxisModel, ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject,
Legend, Category, Tooltip, DataLabel, Zoom, Crosshair, SplineSeries, IPointRenderEventArgs}
from'@syncfusion/ej2-react-charts';
import { splineData } from './datasource';
function App() {
const primaryxAxis: AxisModel= { title: 'Month',valueType: 'Category'} ;
const primaryyAxis: AxisModel= { minimum: -5, maximum: 35, interval: 5,title: 'Temperature in Celsius',labelFormat: '{value}C'} ;
const marker = { visible: true };
const pointRender = (args: IPointRenderEventArgs) => {
if (args.point.index % 2 !== 0) {
args.fill = '#ff6347';
}
else {
args.fill = '#009cb8';
}
};
return <ChartComponent id='charts'
primaryXAxis={ primaryxAxis }
primaryYAxis={ primaryyAxis }
title='CO2 - Intensity Analysis' isTransposed={ true } pointRender={pointRender}>
<Inject services={[SplineSeries, Legend, Tooltip, DataLabel, Category]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource={splineData} xName='x' yName='y' name='London' type='Spline' marker={marker}>
</SeriesDirective>
</SeriesCollectionDirective>
</ChartComponent>
};
export default App;
ReactDOM.render(<App />, document.getElementById("charts"));export let splineData = [
{ x: 'Jan', y: -1 }, { x: 'Feb', y: -1 },
{ x: 'Mar', y: 2 }, { x: 'Apr', y: 14 },
{ x: 'May', y: 13 }, { x: 'Jun', y: 18 },
{ x: 'Jul', y: 21 }, { x: 'Aug', y: 20 },
{ x: 'Sep', y: 10 }, { x: 'Oct', y: 10 },
{ x: 'Nov', y: 4 }, { x: 'Dec', y: 0 }
];export let splineData: Object[] = [
{ x: 'Jan', y: -1 }, { x: 'Feb', y: -1 },
{ x: 'Mar', y: 2 }, { x: 'Apr', y: 14 },
{ x: 'May', y: 13 }, { x: 'Jun', y: 18 },
{ x: 'Jul', y: 21 }, { x: 'Aug', y: 20 },
{ x: 'Sep', y: 10 }, { x: 'Oct', y: 10 },
{ x: 'Nov', y: 4 }, { x: 'Dec', y: 0 }
];