Install via NPM
The best way to get amCharts 4 is via NPM. The charting functionality is in the package @amcharts/amcharts4
. Map files are in @amcharts/amcharts4-geodata
. Font files used for PDF in @amcharts/amcharts4-fonts
.
npm install @amcharts/amcharts4
npm install @amcharts/amcharts4-geodata
npm install @amcharts/amcharts4-fonts
Use CDN
Latest version (4.10.39)
All amCharts libraries and plugins are available as a ready-to-include CDN resources. They are all accessible via http(s)://cdn.amcharts.com/lib/4/
URL prefix.
<script src="https://cdn.amcharts.com/lib/4/core.js"></script>
<script src="https://cdn.amcharts.com/lib/4/charts.js"></script>
<script src="https://cdn.amcharts.com/lib/4/themes/material.js"></script>
<script src="https://cdn.amcharts.com/lib/4/lang/de_DE.js"></script>
<script src="https://cdn.amcharts.com/lib/4/geodata/germanyLow.js"></script>
<script src="https://cdn.amcharts.com/lib/4/fonts/notosans-sc.js"></script>
Please note, above CDN links contains the latest released versions. This means that the version you use may be upgraded without your intervention. If you need to keep control on what version is used, use your own servers or version-specific links as below.
The current latest versions of amCharts 4 packages are as follows:
amCharts 4 (main package) | 4.10.39 |
Geodata | 4.1.30 |
Fonts | 4.0.1 |
Specific versions
Whole backcatalog of versions are available in CDN as well via http(s)://cdn.amcharts.com/lib/version/[version number]/
.
<script src="https://cdn.amcharts.com/lib/version/4.10.39/core.js"></script> <script src="https://cdn.amcharts.com/lib/version/4.10.39/charts.js"></script> <script src="https://cdn.amcharts.com/lib/version/4.10.39/themes/material.js"></script> <script src="https://cdn.amcharts.com/lib/version/4.10.39/lang/de_DE.js"></script>
Version specific CDN is not available for geodata and fonts packages.
DISCLAIMER: The CDN resources are served through high-availability, load-balanced infrastructure. However amCharts does not provide any guarantees regarding uptime, availability and version consistency. It’s pretty reliable for production use, but if you need any to be extra cautious, use your own server infrastructure.
Download a standalone JavaScript version
If you’d like to install amCharts 4 files right on your server, you can download these archives listed below.
amCharts 4 JavaScript Charts & Maps | Version 4.10.39 (June 18, 2024) | 7.1M | Download |
amCharts 4 geodata Map data files for JavaScript Maps | Version 4.1.30 (July 03, 2024) | 68.2M | Download |
amCharts 4 fonts | Version 4.0.1 (May 02, 2020) | 37.1M | Download |
Fork from GitHub
Our amCharts 4 repository is up-to-date and contains both ES2015 and JavaScript version.
Further info
Not sure where to start? How about checking out “Getting started” article in amCharts 4 documentation website.