This package provides an AngularJS directive for integrating amCharts visualizations into web applications. Its current stable version is 1.1.0, and it appears to be an abandoned project, with no active development or maintenance since its last release. The package targets the original AngularJS framework (version 1.x) and its ecosystem, including installation via Bower. Key differentiators at the time of its development included simplifying the integration of various amCharts types, such as serial, pie, radar, and funnel charts, directly within an AngularJS application. It supports both static configuration options and promise-based data loading, allowing for asynchronous chart rendering. Given its foundation on AngularJS, which reached End-of-Life, and its reliance on deprecated tools like Bower, this package is not suitable for modern web development or contemporary Angular applications.
npm install amcharts-angularVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to set up an AngularJS application with the amCharts-Angular directive, load the necessary libraries, and render a basic serial chart using static data defined within the controller's scope.
For new projects or migration, consider using an amCharts integration library built for your target framework (e.g., amCharts official Angular, React, or Vue components) or directly using the amCharts library.
If using this package, you may need to manually download the 'dist/amChartsDirective.js' file or attempt to install it via npm, though its primary dependencies are designed for manual script inclusion.
Ensure all required amCharts and AngularJS library files are loaded via `<script>` tags in the correct sequence in your HTML before the `amChartsDirective.js` file.
Verify the `pathToImages` URL points to the correct location of amCharts assets for your specific amCharts version. If self-hosting amCharts, ensure the images directory is correctly served.
Ensure that `amChartsDirective.js` is loaded via a script tag after `angular.min.js` and all required amCharts library files (like `amcharts.js`, `serial.js`), and that 'amChartsDirective' is correctly listed in your `angular.module()` dependencies.
Verify that `amcharts.js` is correctly included via a `<script>` tag in your HTML, and it is placed before `amChartsDirective.js` and any other amCharts-related scripts.
Double-check that the AngularJS scope variable assigned to the `options` attribute (e.g., `$scope.amChartOptions`) is correctly defined as a JavaScript object adhering to the amCharts configuration structure, and that its `data` property is an array of data objects.