ag-grid / ag-charts

AG Charts is a fully-featured and highly customizable JavaScript charting library. The professional choice for developers building enterprise applications
https://charts.ag-grid.com
Other
146 stars 9 forks source link
angular angular-charts angular-component angular-graphs charts data data-component graph graphs react react-charts react-graphs reactjs vue vuejs

JavaScript Charting Library

AG Charts Logo

🌐 Website β€’ πŸ“– Documentation β€’ πŸ“Š Gallery


GitHub Release NPM Downloads GitHub Repo stars GitHub forks

Quality Gate Status npms.io Maintenance Score GitHub commit activity Dependents (via libraries.io?style=for-the-badge)

AG Charts is a fully-featured and highly customizable canvas-based JavaScript Charting library. It delivers outstanding performance, has no third-party dependencies, and comes with support for React Logo React , Angular Logo Angular and Vue Logo Vue .


Preview of AG Charts JavaScript Charting Examples

Static Badge

πŸ“– Overview

Table of Contents - [πŸ“– Overview](#-overview) - [Chart Types](#chart-types) - [Features](#features) - [Financial Charts](#financial-charts) - [Map Charts](#map-charts) - [⚑️ Quick Start](#️-quick-start) - [Installation](#installation) - [Setup](#setup) - [🀝 Support](#-support) - [Enterprise Support](#enterprise-support) - [Bug Reports](#bug-reports) - [Questions](#questions) - [Contributing](#contributing) - [⚠️ License](#️-license)

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

Features & Chart Types

Chart Types

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

Chart Type AG Charts Community AG 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 JavaScript Charting Library comes with every feature you'd expect:

Feature AG Charts Community AG Charts Enterprise
Accessibility βœ… βœ…
Localisation βœ… βœ…
Series Highlighting βœ… βœ…
Tooltips βœ… βœ…
Animations ❌ βœ…
Context Menu ❌ βœ…
Crosshairs ❌ βœ…
Navigator ❌ βœ…
Synchronization ❌ βœ…
Zoom ❌ βœ…

ℹ️ Note:

Visit the Pricing page for a full comparison.

Financial Charts

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

const options = {
    data: getData(),
};

AgCharts.createFinancialChart(options);

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

Financial Charts Annotations

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


Static Badge

Maps

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

Preview of Map Charts from AG Charts

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,
    },
    // ...
};
Static Badge

⚑️ 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. Read on for vanilla JavaScript installation instructions, or refer to our framework-specific guides for React Logo React, Angular Logo Angular and Vue Logo Vue.

Installation

$ npm install ag-charts-community

Setup

  1. Provide a Container
<!doctype html>
<html lang="en">
    <head>
        <title>AG Charts Quick Start</title>
        <!-- JavaScript Charts Core Library -->
        <script src="https://cdn.jsdelivr.net/npm/ag-charts-community/dist/umd/ag-charts-community.js"></script>
    </head>
    <body>
        <!-- Container for Chart -->
        <div id="myChart"></div>
        <!-- Charts configuration file -->
        <script src="https://github.com/ag-grid/ag-charts/raw/latest/index.js"></script>
    </body>
</html>
  1. Instantiate the JavaScript Chart
// Chart Options
const options = {};

// Create Chart
const chart = agCharts.AgCharts.create(options);
  1. Define Chart Data and Series
// Chart Options
const options = {
    // Container: HTML Element to hold the chart
    container: document.getElementById('myChart'),
    // 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' }],
};

ℹ️ Note:

For more information on building JavaScript Charts with AG Charts, refer to our Documentation.

🀝 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.

GitHub Issues

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.

Stack Exchange 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 ChartsLogoAG Grid

AG Grid is our flagship product, a fully-featured and highly customizable JavaScript Data Grid. It delivers outstanding performance, has no third-party dependencies and comes with support for React Logo React, Angular Logo Angular and Vue Logo Vue.

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: Twitter Badge LinkedIn Badge YouTube Badge Blog Badge