pdfmake upgrade notice (0.2 → 0.3)

Type tutorial

As of version 5.18.0, amCharts 5 now ships with pdfmake 0.3. If you are using getPdfmake() to obtain a pdfmake instance and calling its API directly, you will need to update your code. The pdfmake document structure does not change. If you are using the pdfdocready event to modify only the document contents, the version […]

Using the Color Picker

Type tutorial

amCharts 5 comes with an optional plugin – Color Picker – which does what its name says, and can even be use as a standalone element. Loading Color Picker plugin needs to be loaded in order for it to be used. You can import those in your TypeScript / ES6 application as JavaScript modules: For […]

Printing pages with large charts

Type tutorial

When browser prints a page, it resizes and refloats the whole DOM to fit the page. This ensures that all content fits into the print format, say, A4 or Letter. Chart containers are resized as well, but since browser rendering is an async operation, they do not re-render before the page goes to print. We […]

Toggling active state of a bullet

Type tutorial

This demo shows how we can toggle “active” state of a bullet by clicking on it. It works by creating an “active” state for the bullet’s circle. This state is triggered on clicked objects if they have their toggleKey: “active” set. It also uses an event to monitor changes for bullet circle’s active setting, to […]

Creating multi-content PDF export

Type tutorial

This extensive tutorial will show how you can use pdfmake library, which is bundled with amCharts 5 plugin Exporting, to generate full page, multi-content report PDF documents. Disclaimer Majority of this tutorial is based on using pdfmake. It’s an excellent third party library enabling generating PDF documents in JavaScript. Our aim is to walk you […]