Area map

You can use area maps to render geographic information on GeoJSON polygons. When you click a polygon, its regions and their related data are displayed. An area map has two fields:

  • code: String. Represents the country code or regional code that must be binded to the visualization. The map supports Alpha-3 and Alpha-2 country codes, Alpha-2 is the default. The supported format for the region polygons is ISO 3166.

  • value: Number. Cardinal data to be used on the map.

Examples

Basic area map

MATCH (:Company{name:'NeoDash'})-[:HAS_DEPARTMENT]->(:Department)<-[:IN_DEPARTMENT]-(e:Employee),
(e)-[:LIVES]->(city:City)-[:IN_COUNTRY]->(country:Country)
WITH city, country
CALL {
    WITH country
    RETURN country.countryCode as code, count(*) as value
    UNION
    WITH city
    RETURN city.countryCode as code, count(*) as value
}
WITH code, sum(value) as totalCount
RETURN code,totalCount
Country Level Visualization
Example of Drill Down inside a Country

Advanced settings

Name Type Default value Description

Map Provider URL

Text

https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png

If specified, overrides the OpenStreetMap provider with a custom map tiles provider.

Color Scheme

List

The color scheme to use for the area map. Country colors vary according their min to max ratio.

Country Code Format

List

Alpha-2

Type of the country code (two or three letters).

Color Legend

on/off

on

Enables a color legend.

Drilldown Enabled

on/off

off

Enables a map drilldown to visualize regional data.

Refreshable

on/off

off

Enables a refresh button for the report.

Fullscreen enabled

on/off

off

Enables a fullscreen view button for the report.

Download image enabled

on/off

off

Enables an image download button for the report.

Auto-run query

on/off

on

If set, automatically runs the query when the report is displayed. Otherwise, the query is displayed and must be executed manually.

Report Description

Markdown text

If set, adds a button to the report header that opens a pop-up. The pop-up contains the rendered Markdown from this setting.