11.1.1 • Published 3 months ago

ag-charts-react v11.1.1

Weekly downloads
1,705
License
MIT
Repository
github
Last release
3 months ago

React Charting Library

📖 Overview

AG Charts is available in two versions: Community & Enterprise.

Features & Chart Types

Chart Types

AG Charts offers 20+ React Chart types, each of which are fully customisable:

Chart TypeAG Charts CommunityAG Charts Enterprise
Bar
Line
Area
Scatter
Bubble
Pie
Donut
Combination
Box Plot
Bullet
Candlestick
OHLC
Heatmap
Histogram
Nightingale
Radar Line
Radar Area
Radial Column
Radial Bar
Range Area
Range Bar
Sunburst
Treemap
Waterfall
Sankey
Chord

Features

AG Charts React Charting Library comes with every feature you'd expect:

FeatureAG Charts CommunityAG Charts Enterprise
Accessibility
Localisation
Series Highlighting
Tooltips
Animations
Context Menu
Crosshairs
Navigator
Synchronization
Zoom

Financial Charts

Build interactive financial charts featuring advanced annotations with minimal configuration, all you need to do is provide your data:

const [options, setOptions] = useState({
    data: getData(),
});

return <AgFinancialCharts options={options} />;

Once created, users will have a Financial Chart that they can interact with and add annotations to.

The default chart type is Candlestick, with additional types like OHLC and Line for versatile data visualisation.


Maps

The Maps Series let you visualise geographic data in different ways.

Maps can display data using Shapes, Lines and Marker series:

const options = {
    topology: topology,
    series: [
        {
            type: 'map-shape',
            data: pacific,
            idKey: 'name',
            title: 'Pacific',
        },
        // ...
    ],
    legend: {
        enabled: true,
    },
    // ...
};

⚡️ Quick Start

AG Charts are easy to set up - all you need to do is provide your data and series type along with any other chart options.

Installation

$ npm install ag-charts-react

Setup

  1. Import the React Chart
import React, { useState } from 'react';
import ReactDOM from 'react-dom/client';

// React Chart Component
import { AgCharts } from 'ag-charts-react';
  1. Define Chart Data and Series
const ChartExample = () => {
    // Chart Options: Control & configure the chart
    const [chartOptions, setChartOptions] = useState({
        // Data: Data to be displayed in the chart
        data: [
            { month: 'Jan', avgTemp: 2.3, iceCreamSales: 162000 },
            { month: 'Mar', avgTemp: 6.3, iceCreamSales: 302000 },
            { month: 'May', avgTemp: 16.2, iceCreamSales: 800000 },
            { month: 'Jul', avgTemp: 22.8, iceCreamSales: 1254000 },
            { month: 'Sep', avgTemp: 14.5, iceCreamSales: 950000 },
            { month: 'Nov', avgTemp: 8.9, iceCreamSales: 200000 },
        ],
        // Series: Defines which chart type and data to use
        series: [{ type: 'bar', xKey: 'month', yKey: 'iceCreamSales' }],
    });

    // ...
};
  1. React Chart Component

Replace your index.js file (or root component) with the following code:

// React Chart Component
  return (
    // AgCharts component with options passed as prop
    <AgCharts options={chartOptions} />
  );
}

// Render component inside root element
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<ChartExample />);

🤝 Support

Enterprise Support

AG Charts Enterprise customers have access to dedicated support via ZenDesk, which is monitored by our support & engineering teams.

Bug Reports

If you have found a bug, please report it in this repository's issues section.

Questions

Look for similar problems on StackOverflow using the ag-charts tag. If nothing seems related, post a new message there. Please do not use GitHub issues to ask questions.

Contributing

AG Charts is developed by a team of co-located developers in London. If you want to join the team send your application to info@ag-grid.com.

⚠️ License

ag-charts-community is licensed under the MIT license.

ag-charts-enterprise has a Commercial license.

See the LICENSE file for more info.

AG Charts is used within AG Grid to power the Integrated Charting feature.

Learn more at ag-grid.com

Follow us to keep up to date with all the latest news from AG Grid:

10.3.4

3 months ago

11.1.1

4 months ago

11.1.0

4 months ago

11.0.4

5 months ago

11.0.3

6 months ago

11.0.0

6 months ago

10.3.3

7 months ago

10.3.1

8 months ago

10.3.0

8 months ago

10.2.0

9 months ago

10.1.0

10 months ago

10.0.0

12 months ago

10.0.1

11 months ago

10.0.2

11 months ago

9.3.2

11 months ago

9.3.1

1 year ago

9.3.0

1 year ago

9.2.1

1 year ago

9.2.0

1 year ago

9.1.1

1 year ago

9.1.0

1 year ago

9.0.2

1 year ago

9.0.1

2 years ago

8.0.5

2 years ago

8.0.6

2 years ago

8.1.0

2 years ago

8.2.1

2 years ago

8.0.3

2 years ago

8.2.0

2 years ago

9.0.0

2 years ago

8.0.0

2 years ago

7.3.0

2 years ago

7.2.0

2 years ago

7.0.0

2 years ago

7.1.0

2 years ago

5.3.0

3 years ago

5.2.0

3 years ago

5.1.0

3 years ago

6.1.0

3 years ago

6.0.0

3 years ago

6.2.1

3 years ago

6.2.0

3 years ago

6.1.1

3 years ago

5.0.0

3 years ago

4.2.0

4 years ago

4.1.0

4 years ago

4.0.0

4 years ago

3.3.0

4 years ago

3.2.0

4 years ago

3.1.0

4 years ago

3.0.0

4 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

22.1.2-beta.0

5 years ago