ag-charts-core is a high-performance, fully-featured, and highly customizable canvas-based charting library for JavaScript and TypeScript applications. It provides advanced charting capabilities with a strong focus on performance, delivering smooth interactions and rendering. A key differentiator is its "no third-party dependencies" philosophy, making it a lightweight and self-contained solution compared to many alternatives. The library is currently at version 13.2.1 and maintains an active release cadence with frequent patch and minor updates, and significant API changes occurring with major versions, such as 13.0.0. It serves as the foundational charting engine for the broader AG Charts ecosystem, offering direct integrations and comprehensive examples for popular frameworks including React, Angular, and Vue.
npm install ag-charts-coreVerified import paths — ran on the pinned version, not inferred.
Initializes and renders a simple column and line chart displaying annual company spending and profit data using `AgCharts.create`.
Refactor calls from `AgCharts.create(myContainer, myOptions)` to `AgCharts.create({ container: myContainer, ...myOptions })`.Remove `fillOpacity` and `strokeOpacity` properties. Adjust `fill` and `stroke` color values to include alpha transparency, e.g., `'rgba(255, 0, 0, 0.5)'`.
Ensure the chart container element is present in the DOM before calling `AgCharts.create`. Use `document.getElementById()` or similar methods after `DOMContentLoaded` or a React/Angular lifecycle hook.
Adhere strictly to the documented API for chart configuration and interaction. Avoid accessing private or internal properties unless explicitly advised by AG Charts documentation.
Verify that `document.getElementById('your-container-id')` returns a valid HTML element. Ensure the DOM is fully loaded before chart initialization.Update `AgCharts.create` calls to use the single options object format: `AgCharts.create({ container: myContainerElement, data: myData, ...otherOptions })`.Remove `fillOpacity` and `strokeOpacity`. Integrate opacity into the `fill` and `stroke` color values, e.g., `'rgba(255,0,0,0.5)'` or `'#FF000080'`.
No dependency data recorded yet.