Exporting MapChart data

Type tutorial

amCharts 4 exporting functionality can export not only visual representation of the chart, but also its data. However, for MapChart which does not have central or clear-cut data, it’s disabled by default. This tutorial will show how you can re-enable selective data export for your maps. Enabling data export Determining data source Before we go […]

About “Chart was not disposed” warning

Type tutorial

Are you getting a “Chart was not disposed” warning in your browser console? You’re doing something wrong. Read on for an explanation. When the warning is displayed? When you instantiate a chart, it creates a bunch of objects as well as other stuff like event handlers. All those things occupy computer memory and consume some […]

Tackling label background

Type tutorial

In amCharts 4, labels – be it bullets, axis values, or just about any other text – are not limited to just font size and color. This tutorial will show how you can set background color and shape for them as well. Enabling label background Whenever you see text on a chart, it is represented […]

Building drill-down maps

Type tutorial

In this tutorial we’ll look at techniques for building various map-based drill-down scenarios. Requisites The techniques described in this tutorial rely on event infrastructure. If you’re not yet familiar how events work in amCharts 4, we suggest taking a look at “Event Listeners” article first. We also assume that you have basic knowledge of MapChart […]

Using India version of world map

Type tutorial

This short tutorial will show how you can use MapChart with a version of world map that is compatible with regulations in place in India. Two versions of maps Regulations in India require contested areas to be shown as part of the country as a whole. Unfortunately, those border lines do not correspond with areas […]

Using U.S. congressional districts maps

Type tutorial

Since version 4.1.8 the geodata package for Map Chart includes a collection of maps for U.S. Congressional Districts. This tutorial will show how you can use them. Using congressional district maps The congressional district map files are located under region/usa/congressional subdirectory of the geodata package. If you are not familiar with the geodata package and how […]

Using map country name translations

Type tutorial

By default the maps bundled with amCharts 4 include names of countries in English. This tutorial will show how you can use bundled translation files to translate them into a multitude of other languages. Prerequisites The techniques described in this tutorial rely on features introduced in specific versions of amCharts 4 and Geodata packaged. Make […]

Export menu in external container

Type tutorial

By default, the chart places its export menu in one of its corners. This tutorial will show how you can easily move it out of the chart and into any container on your page. The solution If you examine ExportMenu class, you’ll notice the property named container. By default it contains reference to the <div> […]

Changing appearance of focused items

Type tutorial

amCharts 4 comes with extensive accessibility functionality, of which part is ability to highlight focused items with a high-contrast outline. This tutorial will show how you can modify the appearance of this outline. Default behavior Some chart elements – columns, buttons, bullets, or slices to name a few – are selectable via TAB key. When […]

Adding extra info in exported PDF

Type tutorial

amCharts 4 comes pre-loaded with extensive chart export functionality. Besides ability to export chart to various image and data formats, it can also export to PDF documents. This tutorial will show, how you can easily tap into this process to include extra information, like text, tables, and even images, into exported PDF. The task By […]