Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/area map iso #853

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/user-guide/reports/areamap.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ link:../../extensions/advanced-visualizations[label:Advanced Visualization[
The Area Map charts can be used to render geographical based information on geoJson polygons. It's possible to click a polygon to visualize its regions and their related data.
It takes two fields:

- *code*: String. This represents the country code or regional code that must be binded to the visualization. The map supports Alpha-3 and Alpha-2 country codes (by default Alpha-2). Instead the supported format for the region polygons is ISO 3166.
- *code*: String. This represents the country code or regional code that must be binded to the visualization. The map supports Alpha-3 and Alpha-2 country codes (by default Alpha-2). Instead the supported format for the region polygons is ISO 3166-2.
- *value*: Number. Cardinal data to be used on the chart.

== Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ WITH code, sum(value) as totalCount
RETURN code,totalCount
`,
syntheticQuery: `
UNWIND [["FR", 1], ["IT", 3], ["FR.32", 1], ["IT.02", 2], ["IT.01", 1]] as v
UNWIND [["FR", 1], ["IT", 3], ["FR-HDF", 1], ["IT-65", 2], ["IT-72", 1]] as v
RETURN v[0] as code, v[1] as value
`,
settings: { mapDrillDown: true, showLegend: false },
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/advancedcharts/chart/areamap/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const keyLengthToKeyName = { 'Alpha-2': 'SHORT_COUNTRY_CODE', 'Alpha-3': 'COUNTRY_CODE' };
export const regionCodeName = 'code';
export const regionCodeName = 'isoCode';
Loading