diff --git a/explorer/Explorer.tsx b/explorer/Explorer.tsx index adf27c43b14..6ecbd40fd09 100644 --- a/explorer/Explorer.tsx +++ b/explorer/Explorer.tsx @@ -24,6 +24,7 @@ import { setSelectedEntityNamesParam, SlideShowController, SlideShowManager, + DEFAULT_GRAPHER_ENTITY_TYPE, } from "@ourworldindata/grapher" import { Bounds, @@ -186,7 +187,7 @@ export class Explorer this.props.selection ?? new SelectionArray(this.explorerProgram.selection) - entityType = this.explorerProgram.entityType ?? "country or region" + entityType = this.explorerProgram.entityType ?? DEFAULT_GRAPHER_ENTITY_TYPE @observable.ref grapher?: Grapher diff --git a/package.json b/package.json index 78d32254b32..053c7fd04dc 100644 --- a/package.json +++ b/package.json @@ -144,6 +144,7 @@ "googleapis": "^108.0.0", "handsontable": "^12.3.3", "html-to-text": "^8.2.0", + "indefinite": "^2.4.3", "instantsearch.js": "^4.56.9", "js-base64": "^3.7.2", "js-cookie": "^3.0.1", @@ -224,6 +225,7 @@ "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^12", "@types/geojson": "^7946.0.10", + "@types/indefinite": "^2.3.2", "@types/jest": "^29.0.3", "@types/js-yaml": "^4.0.5", "@types/opener": "^1.4.0", diff --git a/packages/@ourworldindata/grapher/src/captionedChart/CaptionedChart.tsx b/packages/@ourworldindata/grapher/src/captionedChart/CaptionedChart.tsx index eaf173c279f..bf6711782f2 100644 --- a/packages/@ourworldindata/grapher/src/captionedChart/CaptionedChart.tsx +++ b/packages/@ourworldindata/grapher/src/captionedChart/CaptionedChart.tsx @@ -243,9 +243,11 @@ export class CaptionedChart extends React.Component { const { showContentSwitchers } = this return (