A Massive Maps Upgrade in amCharts 4.3
The just-released amCharts 4.3 includes a slew of exciting updates to maps functionality. From new projections to the additional rotation and panning features and more, the new release delivers a bunch of exciting goodies for those investing in map charts.
Here’s the complete list of what was added, changed and fixed in version 4.3:
MapChartcan now use any projection supported by d3-geo.
Projection.d3Projectionproperty added and you can set any d3-geo projection using it, like
mapChart.projection.d3Projection = am4maps.d3geo.geoConicEquidistant();
- Albers, AlbersUsa, AzimuthalEqualArea, EqualEarth, NaturalEarth1, Stereographic projection classes added (use them regularly like:
mapChart.projection = new EqualEarth()).
.Together with already existing
allowsrotating maps in any possible direction.
.Values: “move” (default), “ rotateLat“, “rotateLong”, “rotateLongLat”. Indicate what should happen when mapis dragged.
.Specifies if this series must be included when calculating bounds of the map.
.Specifies if map polygons should calculate their visual center. Visual center is good for placing labels.
.They return coordinates if
ofseries is set to
.You can also set them manually.
classedadded. Those allow creating graticules (map grid).
backgroundSeriesadded to MapChart. Allows creating a map-shaped background fill.
Enginebehind rendering of maps was changed to use d3-geo .Whilethe change should be ackwardscompatible, beware of and report any issues.
demoswe changed to work properly with newversion.
- When adding a
valign = "bottom"
isno longer set by default. Set it explicitly if you need legendto bottom-aligned.
rtlsetting was not being inherited properly.
- Fixed RTL behavior for labels.
- Disposing a hovered chart with scroll pan enabled used to leave whole document with disabled wheel scroll.