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 […]
Type tutorial
Tooltips are used in a number of places to provide contextual information on a hovered/tapped object, like a Slice of a Pie Chart, or a country on a map. By default, tooltips are completely static with no way to interact with them. This tutorial will explain how you can make them interactive, adding clickable links […]
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 […]
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 […]
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 […]
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, […]
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 […]
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 […]
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 […]
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 […]