AG Charts Enterprise

13.2.1 · active · verified Sun Apr 19

AG Charts Enterprise is a high-performance, canvas-based charting library for advanced data visualization in JavaScript and TypeScript applications. Currently at version 13.2.1, the library maintains an active development pace with frequent minor and patch releases. It offers extensive customization capabilities and native component wrappers for popular frameworks like React, Angular, and Vue. A key differentiator is its commitment to zero third-party dependencies, which helps ensure a lean bundle size and minimizes potential conflicts. It is specifically designed for enterprise-grade applications requiring robust, fully-featured, and highly performant charting solutions for complex datasets and interactive dashboards.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to create a basic pie chart using the `AgCharts.create` method with a declarative options object, showing operating system market share.

import * as AgCharts from 'ag-charts-enterprise';

document.addEventListener('DOMContentLoaded', () => {
  const data = [
    { os: 'Windows', share: 75.9 },
    { os: 'macOS', share: 15.8 },
    { os: 'Linux', share: 2.1 },
    { os: 'Other', share: 6.2 }
  ];

  const options = {
    container: document.getElementById('myChart'),
    data: data,
    series: [{
      type: 'pie',
      angleKey: 'share',
      legendItemKey: 'os',
      sectorLabelKey: 'share',
      sectorLabel: {
        formatter: ({ datum, sectorLabelKey }) => `${datum[sectorLabelKey]}%`
      }
    }],
    title: {
      text: 'OS Market Share (2024)'
    },
    subtitle: {
      text: 'Worldwide Desktop Operating Systems'
    }
  };

  AgCharts.create(options);
});

// In your HTML: <div id="myChart" style="height: 400px; width: 600px;"></div>

view raw JSON →