Map heat legend with real start/end value labels

Type tutorial

A Heat legend uses regular axis to display value range/scale. For narrower setups it might mean that there are not real start/end labels. This tutorial will show how to remedy that. Problem HeatLegend uses real ValueAxis to display value labels. Value axis come with its certain logic how labels are spaced, positioned, and rounded to […]

Map polygon hover via API

Type tutorial

In most map setups, a polygon (country) will change color and show a tooltip with its name when hovered. This tutorial will show how you can “simulate” hover via API, without user actually interacting with the map. Base map Here’s what we are going to start with. The map below has already set up states […]

“Fixing” maps for countries that span 180 longitude

Type tutorial

Some countries, like New Zealand have islands across that line. This causes the “over the line” parts to be “wrapped” and drawn all the way to the right of the map area. This may not be an issue on a world map, but might look a bit odd for a country only map. The issue […]

Projected circles over map

Type tutorial

This tutorial will show how you can add “projected circles” on the map. Projected circles respect map projection and look much more natural, as if they were “laid down” on the ground, not stuck as pins. How to add regular images to map is covered pretty well in “Image series” section of our Map chart […]

Using actual images in MapImageSeries

Type tutorial

In our main Map Chart article we have touched the topic of creating an image series, feeding them data, and positioning them. However, we were operating using plain, same shapes. This tutorial will show how we can use actual images as markers on the map. Using same image Explaining MapImageSeries in our Map Chart article, […]

Pre-zooming Map to a list of countries

Type tutorial

In this tutorial we explained how you can pre-zoom your map to a specific country. This tutorial builds on it to produce an example that pre-zooms the map to several countries. One-country solution In the previous tutorial we have used Map series’ method getPolygonById(id) to extract a polygon object of a specific country by its […]

Using “d3-geo” projections

Type tutorial

There are quite a few projections built-into amCharts 4. However, if you are not finding one that suits your needs, you can use one from “d3-geo” package. This tutorial will explain how. Finding a D3 projection D3 has a list of supported projections on their GitHub page. When sifting through the list, note the function […]

Automatic labels over map polygons

Type tutorial

During the course of this article we’re going to learn how to automatically place labels over map polygons, as well as make them positioned just the right way. Base map As a polygon of our development, let’s use a map of the United States in an Albers USA projection. Series for polygons Setting up Polygon […]

Using Albers USA projection

Type tutorial

The most common depiction of a map of the United States is one that shows Alaska and Hawaii placed right below mainland USA. This allows this map to be more compact and usable, in comparison how it would be if both of those states were in their usual places. This way of depicting USA map […]

Hide map images until zoomed in

Type tutorial

Showing a lot of markers on the map may render it cluttered beyond usability. This tutorial will show how you can easily specify custom zoom levels for each individual image to be shown at. The problem Say we have a map with a lot of images in a MapImageSeries: While not exactly “unusable”, still a […]