@buildcanada/charts 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/GrapherTabIcon.tsx +1 -1
- package/src/components/GrapherTrendArrow.tsx +1 -1
- package/src/components/Halo/Halo.tsx +1 -1
- package/src/components/LabeledSwitch/LabeledSwitch.tsx +1 -1
- package/src/components/MarkdownTextWrap/MarkdownTextWrap.tsx +4 -4
- package/src/components/OverlayHeader.tsx +1 -1
- package/src/components/SimpleMarkdownText.tsx +1 -1
- package/src/components/TextWrap/TextWrap.tsx +1 -1
- package/src/components/index.ts +23 -23
- package/src/components/loadingIndicator/LoadingIndicator.tsx +1 -1
- package/src/core-table/ChartsTable.ts +7 -7
- package/src/core-table/CoreTable.ts +6 -6
- package/src/core-table/CoreTableColumns.ts +5 -5
- package/src/core-table/CoreTableUtils.ts +3 -3
- package/src/core-table/ErrorValues.ts +1 -1
- package/src/core-table/TableSynthesizers.ts +3 -3
- package/src/core-table/TableUtil.ts +2 -2
- package/src/core-table/Transforms.ts +3 -3
- package/src/core-table/index.ts +8 -8
- package/src/explorer/ColumnGrammar.ts +4 -4
- package/src/explorer/Explorer.sample.ts +4 -4
- package/src/explorer/Explorer.tsx +10 -10
- package/src/explorer/ExplorerConstants.ts +2 -2
- package/src/explorer/ExplorerControls.tsx +4 -4
- package/src/explorer/ExplorerDecisionMatrix.ts +7 -7
- package/src/explorer/ExplorerGrammar.ts +4 -4
- package/src/explorer/ExplorerProgram.ts +11 -11
- package/src/explorer/ExplorerUtils.ts +4 -4
- package/src/explorer/GrapherGrammar.ts +3 -3
- package/src/explorer/gridLang/GridCell.ts +4 -4
- package/src/explorer/gridLang/GridLangConstants.ts +1 -1
- package/src/explorer/gridLang/GridProgram.ts +5 -5
- package/src/explorer/index.ts +15 -15
- package/src/explorer/urlMigrations/CO2UrlMigration.ts +3 -3
- package/src/explorer/urlMigrations/CovidUrlMigration.ts +2 -2
- package/src/explorer/urlMigrations/EnergyUrlMigration.ts +3 -3
- package/src/explorer/urlMigrations/ExplorerPageUrlMigrationSpec.ts +1 -1
- package/src/explorer/urlMigrations/ExplorerUrlMigrationUtils.ts +2 -2
- package/src/explorer/urlMigrations/ExplorerUrlMigrations.ts +5 -5
- package/src/explorer/urlMigrations/LegacyCovidUrlMigration.ts +4 -4
- package/src/grapher/axis/Axis.ts +5 -5
- package/src/grapher/axis/AxisConfig.ts +2 -2
- package/src/grapher/axis/AxisViews.tsx +2 -2
- package/src/grapher/barCharts/DiscreteBarChart.tsx +4 -4
- package/src/grapher/barCharts/DiscreteBarChartConstants.ts +4 -4
- package/src/grapher/barCharts/DiscreteBarChartHelpers.ts +3 -3
- package/src/grapher/barCharts/DiscreteBarChartState.ts +2 -2
- package/src/grapher/barCharts/DiscreteBarChartThumbnail.tsx +2 -2
- package/src/grapher/captionedChart/CaptionedChart.tsx +4 -4
- package/src/grapher/captionedChart/Logos.tsx +2 -2
- package/src/grapher/captionedChart/StaticChartRasterizer.tsx +1 -1
- package/src/grapher/chart/Chart.tsx +5 -5
- package/src/grapher/chart/ChartAreaContent.tsx +3 -3
- package/src/grapher/chart/ChartDimension.ts +2 -2
- package/src/grapher/chart/ChartInterface.ts +2 -2
- package/src/grapher/chart/ChartManager.ts +3 -3
- package/src/grapher/chart/ChartTabs.ts +1 -1
- package/src/grapher/chart/ChartTypeMap.tsx +9 -9
- package/src/grapher/chart/ChartTypeSwitcher.tsx +1 -1
- package/src/grapher/chart/ChartUtils.tsx +3 -3
- package/src/grapher/chart/DimensionSlot.ts +1 -1
- package/src/grapher/chart/StaticChartWrapper.tsx +5 -5
- package/src/grapher/chart/guidedChartUtils.ts +4 -4
- package/src/grapher/color/BinningStrategies.ts +4 -4
- package/src/grapher/color/BinningStrategyEqualSizeBins.ts +3 -3
- package/src/grapher/color/BinningStrategyLogarithmic.ts +3 -3
- package/src/grapher/color/CategoricalColorAssigner.ts +1 -1
- package/src/grapher/color/ColorBrewerSchemes.ts +1 -1
- package/src/grapher/color/ColorScale.ts +4 -4
- package/src/grapher/color/ColorScaleBin.ts +1 -1
- package/src/grapher/color/ColorScaleConfig.ts +2 -2
- package/src/grapher/color/ColorScheme.ts +2 -2
- package/src/grapher/color/ColorSchemes.ts +2 -2
- package/src/grapher/color/ColorUtils.ts +1 -1
- package/src/grapher/color/CustomSchemes.ts +2 -2
- package/src/grapher/comparisonLine/ComparisonLine.tsx +1 -1
- package/src/grapher/comparisonLine/ComparisonLineGenerator.ts +1 -1
- package/src/grapher/comparisonLine/ComparisonLineHelpers.ts +1 -1
- package/src/grapher/comparisonLine/CustomComparisonLine.tsx +3 -3
- package/src/grapher/comparisonLine/VerticalComparisonLine.tsx +2 -2
- package/src/grapher/controls/ActionButtons.tsx +4 -4
- package/src/grapher/controls/CommandPalette.tsx +1 -1
- package/src/grapher/controls/ContentSwitchers.tsx +3 -3
- package/src/grapher/controls/DataTableFilterDropdown.tsx +2 -2
- package/src/grapher/controls/Dropdown.tsx +1 -1
- package/src/grapher/controls/EntitySelectionToggle.tsx +1 -1
- package/src/grapher/controls/MapRegionDropdown.tsx +1 -1
- package/src/grapher/controls/MapResetButton.tsx +1 -1
- package/src/grapher/controls/MapZoomDropdown.tsx +2 -2
- package/src/grapher/controls/MapZoomToSelectionButton.tsx +1 -1
- package/src/grapher/controls/SearchField.tsx +1 -1
- package/src/grapher/controls/SettingsMenu.tsx +3 -3
- package/src/grapher/controls/ShareMenu.tsx +3 -3
- package/src/grapher/controls/SortIcon.tsx +1 -1
- package/src/grapher/controls/controlsRow/ControlsRow.tsx +1 -1
- package/src/grapher/controls/entityPicker/EntityPicker.tsx +2 -2
- package/src/grapher/controls/entityPicker/EntityPickerConstants.ts +3 -3
- package/src/grapher/controls/globalEntitySelector/GlobalEntitySelector.tsx +2 -2
- package/src/grapher/controls/settings/AbsRelToggle.tsx +2 -2
- package/src/grapher/controls/settings/AxisScaleToggle.tsx +1 -1
- package/src/grapher/controls/settings/FacetStrategySelector.tsx +1 -1
- package/src/grapher/controls/settings/FacetYDomainToggle.tsx +2 -2
- package/src/grapher/controls/settings/NoDataAreaToggle.tsx +1 -1
- package/src/grapher/controls/settings/ZoomToggle.tsx +1 -1
- package/src/grapher/core/EntitiesByRegionType.ts +2 -2
- package/src/grapher/core/EntityCodes.ts +2 -2
- package/src/grapher/core/EntityUrlBuilder.ts +2 -2
- package/src/grapher/core/FetchingGrapher.tsx +8 -8
- package/src/grapher/core/Grapher.tsx +6 -6
- package/src/grapher/core/GrapherAnalytics.ts +1 -1
- package/src/grapher/core/GrapherConstants.ts +3 -3
- package/src/grapher/core/GrapherState.tsx +38 -38
- package/src/grapher/core/GrapherUrl.ts +4 -4
- package/src/grapher/core/GrapherUrlMigrations.ts +1 -1
- package/src/grapher/core/GrapherUseHelpers.tsx +5 -5
- package/src/grapher/core/LegacyToChartsTable.ts +4 -4
- package/src/grapher/core/loadGrapherTableHelpers.ts +4 -4
- package/src/grapher/core/loadVariable.ts +2 -2
- package/src/grapher/core/relatedQuestion.ts +1 -1
- package/src/grapher/dataTable/DataTable.sample.ts +3 -3
- package/src/grapher/dataTable/DataTable.tsx +3 -3
- package/src/grapher/dataTable/DataTableConstants.ts +2 -2
- package/src/grapher/entitySelector/EntitySelector.tsx +7 -7
- package/src/grapher/facet/FacetChart.tsx +4 -4
- package/src/grapher/facet/FacetChartConstants.ts +2 -2
- package/src/grapher/facet/FacetMap.tsx +4 -4
- package/src/grapher/facet/FacetMapConstants.ts +1 -1
- package/src/grapher/focus/FocusArray.ts +2 -2
- package/src/grapher/footer/Footer.tsx +2 -2
- package/src/grapher/footer/FooterManager.ts +1 -1
- package/src/grapher/fullScreen/FullScreen.tsx +1 -1
- package/src/grapher/header/Header.tsx +2 -2
- package/src/grapher/header/HeaderManager.ts +2 -2
- package/src/grapher/index.ts +8 -8
- package/src/grapher/legend/HorizontalColorLegends.tsx +2 -2
- package/src/grapher/legend/LegendInteractionState.ts +1 -1
- package/src/grapher/legend/VerticalColorLegend.tsx +2 -2
- package/src/grapher/lineCharts/LineChart.tsx +6 -6
- package/src/grapher/lineCharts/LineChartConstants.ts +2 -2
- package/src/grapher/lineCharts/LineChartHelpers.ts +2 -2
- package/src/grapher/lineCharts/LineChartState.ts +3 -3
- package/src/grapher/lineCharts/LineChartThumbnail.tsx +3 -3
- package/src/grapher/lineCharts/Lines.tsx +1 -1
- package/src/grapher/lineLegend/LineLegend.tsx +6 -6
- package/src/grapher/lineLegend/LineLegendHelpers.ts +1 -1
- package/src/grapher/lineLegend/LineLegendTypes.ts +2 -2
- package/src/grapher/mapCharts/ChoroplethGlobe.tsx +1 -1
- package/src/grapher/mapCharts/ChoroplethMap.tsx +1 -1
- package/src/grapher/mapCharts/GeoFeatures.ts +1 -1
- package/src/grapher/mapCharts/GlobeController.ts +2 -2
- package/src/grapher/mapCharts/MapAnnotations.ts +1 -1
- package/src/grapher/mapCharts/MapChart.sample.ts +2 -2
- package/src/grapher/mapCharts/MapChart.tsx +6 -6
- package/src/grapher/mapCharts/MapChartConstants.ts +4 -4
- package/src/grapher/mapCharts/MapChartState.ts +3 -3
- package/src/grapher/mapCharts/MapComponents.tsx +2 -2
- package/src/grapher/mapCharts/MapConfig.ts +2 -2
- package/src/grapher/mapCharts/MapHelpers.ts +5 -5
- package/src/grapher/mapCharts/MapProjections.ts +2 -2
- package/src/grapher/mapCharts/MapSparkline.tsx +5 -5
- package/src/grapher/mapCharts/MapTooltip.tsx +6 -6
- package/src/grapher/modal/DownloadModal.tsx +7 -7
- package/src/grapher/modal/EmbedModal.tsx +2 -2
- package/src/grapher/modal/EntitySelectorModal.tsx +1 -1
- package/src/grapher/modal/Modal.tsx +1 -1
- package/src/grapher/modal/ModalHeader.tsx +1 -1
- package/src/grapher/modal/SourcesDescriptions.tsx +1 -1
- package/src/grapher/modal/SourcesKeyDataTable.tsx +2 -2
- package/src/grapher/modal/SourcesModal.tsx +4 -4
- package/src/grapher/noDataModal/NoDataModal.tsx +2 -2
- package/src/grapher/scatterCharts/ConnectedScatterLegend.tsx +2 -2
- package/src/grapher/scatterCharts/NoDataSection.tsx +1 -1
- package/src/grapher/scatterCharts/ScatterPlotChart.tsx +5 -5
- package/src/grapher/scatterCharts/ScatterPlotChartConstants.ts +4 -4
- package/src/grapher/scatterCharts/ScatterPlotChartState.ts +4 -4
- package/src/grapher/scatterCharts/ScatterPlotChartThumbnail.tsx +2 -2
- package/src/grapher/scatterCharts/ScatterPlotTooltip.tsx +3 -3
- package/src/grapher/scatterCharts/ScatterPoints.tsx +1 -1
- package/src/grapher/scatterCharts/ScatterPointsWithLabels.tsx +3 -3
- package/src/grapher/scatterCharts/ScatterSizeLegend.tsx +3 -3
- package/src/grapher/scatterCharts/ScatterUtils.ts +3 -3
- package/src/grapher/schema/defaultGrapherConfig.ts +1 -1
- package/src/grapher/schema/migrations/migrate.ts +1 -1
- package/src/grapher/schema/migrations/migrations.ts +1 -1
- package/src/grapher/selection/MapSelectionArray.ts +1 -1
- package/src/grapher/selection/SelectionArray.ts +1 -1
- package/src/grapher/sidePanel/SidePanel.tsx +2 -2
- package/src/grapher/slopeCharts/MarkX.tsx +1 -1
- package/src/grapher/slopeCharts/Slope.tsx +1 -1
- package/src/grapher/slopeCharts/SlopeChart.tsx +5 -5
- package/src/grapher/slopeCharts/SlopeChartConstants.ts +3 -3
- package/src/grapher/slopeCharts/SlopeChartHelpers.ts +1 -1
- package/src/grapher/slopeCharts/SlopeChartState.ts +3 -3
- package/src/grapher/slopeCharts/SlopeChartThumbnail.tsx +3 -3
- package/src/grapher/stackedCharts/AbstractStackedChartState.ts +13 -13
- package/src/grapher/stackedCharts/MarimekkoBars.tsx +1 -1
- package/src/grapher/stackedCharts/MarimekkoBarsForOneEntity.tsx +2 -2
- package/src/grapher/stackedCharts/MarimekkoChart.tsx +5 -5
- package/src/grapher/stackedCharts/MarimekkoChartConstants.ts +3 -3
- package/src/grapher/stackedCharts/MarimekkoChartState.ts +5 -5
- package/src/grapher/stackedCharts/MarimekkoChartThumbnail.tsx +2 -2
- package/src/grapher/stackedCharts/MarimekkoInternalLabels.tsx +2 -2
- package/src/grapher/stackedCharts/StackedAreaChart.tsx +6 -6
- package/src/grapher/stackedCharts/StackedAreaChartState.ts +5 -5
- package/src/grapher/stackedCharts/StackedAreaChartThumbnail.tsx +3 -3
- package/src/grapher/stackedCharts/StackedAreas.tsx +2 -2
- package/src/grapher/stackedCharts/StackedBarChart.tsx +6 -6
- package/src/grapher/stackedCharts/StackedBarChartState.ts +8 -8
- package/src/grapher/stackedCharts/StackedBarChartThumbnail.tsx +3 -3
- package/src/grapher/stackedCharts/StackedBarSegment.tsx +1 -1
- package/src/grapher/stackedCharts/StackedBars.tsx +3 -3
- package/src/grapher/stackedCharts/StackedConstants.ts +3 -3
- package/src/grapher/stackedCharts/StackedDiscreteBarChart.tsx +3 -3
- package/src/grapher/stackedCharts/StackedDiscreteBarChartState.ts +3 -3
- package/src/grapher/stackedCharts/StackedDiscreteBarChartThumbnail.tsx +1 -1
- package/src/grapher/stackedCharts/StackedDiscreteBars.tsx +5 -5
- package/src/grapher/stackedCharts/StackedUtils.ts +2 -2
- package/src/grapher/testData/TestData.sample.ts +2 -2
- package/src/grapher/testData/TestData.ts +2 -2
- package/src/grapher/timeline/TimelineComponent.tsx +2 -2
- package/src/grapher/timeline/TimelineController.ts +2 -2
- package/src/grapher/tooltip/Tooltip.tsx +4 -4
- package/src/grapher/tooltip/TooltipContents.tsx +5 -5
- package/src/grapher/tooltip/TooltipProps.ts +1 -1
- package/src/grapher/tooltip/TooltipState.ts +1 -1
- package/src/grapher/verticalLabels/VerticalLabels.tsx +1 -1
- package/src/grapher/verticalLabels/VerticalLabelsState.ts +2 -2
- package/src/index.ts +55 -55
- package/src/types/Origin.ts +1 -1
- package/src/types/Variable.ts +3 -3
- package/src/types/VariableDisplayConfigInterface.ts +2 -2
- package/src/types/domainTypes/ContentGraph.ts +2 -2
- package/src/types/domainTypes/CoreTableTypes.ts +5 -5
- package/src/types/domainTypes/Posts.ts +4 -4
- package/src/types/domainTypes/Search.ts +2 -2
- package/src/types/gdocTypes/Gdoc.ts +2 -2
- package/src/types/grapherTypes/GrapherTypes.ts +9 -9
- package/src/types/index.ts +15 -15
- package/src/utils/Bounds.ts +2 -2
- package/src/utils/FuzzySearch.ts +1 -1
- package/src/utils/TimeBounds.ts +2 -2
- package/src/utils/Util.ts +3 -3
- package/src/utils/Variable.ts +2 -2
- package/src/utils/archival/archivalDate.ts +2 -2
- package/src/utils/formatValue.ts +2 -2
- package/src/utils/grapherConfigUtils.ts +1 -1
- package/src/utils/image.ts +2 -2
- package/src/utils/index.ts +27 -27
- package/src/utils/metadataHelpers.ts +3 -3
- package/src/utils/regions.ts +2 -2
- package/src/utils/urls/Url.ts +3 -3
- package/src/utils/urls/UrlMigration.ts +1 -1
- package/src/utils/urls/UrlUtils.ts +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as _ from "lodash-es"
|
|
2
|
-
import { EntityName } from "../../types/index
|
|
2
|
+
import { EntityName } from "../../types/index"
|
|
3
3
|
import {
|
|
4
4
|
AggregateSource,
|
|
5
5
|
aggregateSources,
|
|
6
6
|
Country,
|
|
7
7
|
excludeUndefined,
|
|
8
8
|
getRegionByName,
|
|
9
|
-
} from "../../utils/index
|
|
9
|
+
} from "../../utils/index"
|
|
10
10
|
import { CUSTOM_REGION_SOURCE_IDS, isWorldEntityName } from "./GrapherConstants"
|
|
11
11
|
import * as R from "remeda"
|
|
12
12
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { lazy, regions } from "../../utils/index
|
|
2
|
-
import { EntityName } from "../../types/index
|
|
1
|
+
import { lazy, regions } from "../../utils/index"
|
|
2
|
+
import { EntityName } from "../../types/index"
|
|
3
3
|
import * as R from "remeda"
|
|
4
4
|
|
|
5
5
|
const getEntityCodesToEntityNames: () => Record<string, string> = lazy(() =>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EntityName, SeriesName } from "../../types/index
|
|
2
|
-
import { Url, performUrlMigrations, UrlMigration } from "../../utils/index
|
|
1
|
+
import { EntityName, SeriesName } from "../../types/index"
|
|
2
|
+
import { Url, performUrlMigrations, UrlMigration } from "../../utils/index"
|
|
3
3
|
import { codeToEntityName, entityNameToCode } from "./EntityCodes"
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
VariableDataMetadataDimensions,
|
|
4
4
|
ArchiveContext,
|
|
5
5
|
VariableId,
|
|
6
|
-
} from "../../types/index
|
|
6
|
+
} from "../../types/index"
|
|
7
7
|
import React from "react"
|
|
8
|
-
import { Grapher, GrapherProgrammaticInterface } from "./Grapher
|
|
9
|
-
import { loadVariableDataAndMetadata } from "./loadVariable
|
|
10
|
-
import { fetchInputTableForConfig } from "./loadGrapherTableHelpers
|
|
11
|
-
import { legacyToCurrentGrapherQueryParams } from "./GrapherUrlMigrations
|
|
8
|
+
import { Grapher, GrapherProgrammaticInterface } from "./Grapher"
|
|
9
|
+
import { loadVariableDataAndMetadata } from "./loadVariable"
|
|
10
|
+
import { fetchInputTableForConfig } from "./loadGrapherTableHelpers"
|
|
11
|
+
import { legacyToCurrentGrapherQueryParams } from "./GrapherUrlMigrations"
|
|
12
12
|
import { unstable_batchedUpdates } from "react-dom"
|
|
13
|
-
import { Bounds } from "../../utils/index
|
|
14
|
-
import { migrateGrapherConfigToLatestVersion } from "../schema/migrations/migrate
|
|
15
|
-
import { useMaybeGlobalGrapherStateRef } from "../chart/guidedChartUtils
|
|
13
|
+
import { Bounds } from "../../utils/index"
|
|
14
|
+
import { migrateGrapherConfigToLatestVersion } from "../schema/migrations/migrate"
|
|
15
|
+
import { useMaybeGlobalGrapherStateRef } from "../chart/guidedChartUtils"
|
|
16
16
|
|
|
17
17
|
export interface FetchingGrapherProps {
|
|
18
18
|
config?: GrapherProgrammaticInterface
|
|
@@ -20,8 +20,8 @@ import {
|
|
|
20
20
|
strToQueryParams,
|
|
21
21
|
queryParamsToStr,
|
|
22
22
|
setWindowQueryStr,
|
|
23
|
-
} from "../../utils/index
|
|
24
|
-
import { BodyPortal } from "../../components/index
|
|
23
|
+
} from "../../utils/index"
|
|
24
|
+
import { BodyPortal } from "../../components/index"
|
|
25
25
|
import {
|
|
26
26
|
ScaleType,
|
|
27
27
|
AnnotationFieldsInTitle,
|
|
@@ -34,8 +34,8 @@ import {
|
|
|
34
34
|
AdditionalGrapherDataFetchFn,
|
|
35
35
|
GrapherVariant,
|
|
36
36
|
Time,
|
|
37
|
-
} from "../../types/index
|
|
38
|
-
import { ChartsTable } from "../../core-table/index
|
|
37
|
+
} from "../../types/index"
|
|
38
|
+
import { ChartsTable } from "../../core-table/index"
|
|
39
39
|
import {
|
|
40
40
|
GRAPHER_LOADED_EVENT_NAME,
|
|
41
41
|
GrapherModal,
|
|
@@ -60,9 +60,9 @@ import { SidePanel } from "../sidePanel/SidePanel"
|
|
|
60
60
|
import { EntitySelector } from "../entitySelector/EntitySelector"
|
|
61
61
|
import { SlideInDrawer } from "../slideInDrawer/SlideInDrawer"
|
|
62
62
|
import { FocusArray } from "../focus/FocusArray"
|
|
63
|
-
import { Chart } from "../chart/Chart
|
|
63
|
+
import { Chart } from "../chart/Chart"
|
|
64
64
|
import { flushSync } from "react-dom"
|
|
65
|
-
import { GrapherState } from "./GrapherState
|
|
65
|
+
import { GrapherState } from "./GrapherState"
|
|
66
66
|
|
|
67
67
|
declare global {
|
|
68
68
|
interface Window {
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
EntityName,
|
|
3
3
|
GRAPHER_CHART_TYPES,
|
|
4
4
|
GrapherChartType,
|
|
5
|
-
} from "../../types/index
|
|
6
|
-
import { Bounds } from "../../utils/index
|
|
7
|
-
import { defaultGrapherConfig } from "../schema/defaultGrapherConfig
|
|
5
|
+
} from "../../types/index"
|
|
6
|
+
import { Bounds } from "../../utils/index"
|
|
7
|
+
import { defaultGrapherConfig } from "../schema/defaultGrapherConfig"
|
|
8
8
|
|
|
9
9
|
export const GRAPHER_PROD_URL = "https://ourworldindata.org"
|
|
10
10
|
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
MarkdownTextWrap,
|
|
3
3
|
sumTextWrapHeights,
|
|
4
4
|
reactRenderToStringClientOnly,
|
|
5
|
-
} from "../../components/index
|
|
5
|
+
} from "../../components/index"
|
|
6
6
|
import {
|
|
7
7
|
ChartsTable,
|
|
8
8
|
BlankChartsTable,
|
|
9
9
|
CoreColumn,
|
|
10
10
|
ColumnTypeMap,
|
|
11
|
-
} from "../../core-table/index
|
|
11
|
+
} from "../../core-table/index"
|
|
12
12
|
import {
|
|
13
13
|
GrapherChartType,
|
|
14
14
|
GRAPHER_CHART_TYPES,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
GlobeRegionName,
|
|
64
64
|
GrapherWindowType,
|
|
65
65
|
MapRegionName,
|
|
66
|
-
} from "../../types/index
|
|
66
|
+
} from "../../types/index"
|
|
67
67
|
import {
|
|
68
68
|
objectWithPersistablesToObject,
|
|
69
69
|
deleteRuntimeAndUnchangedProps,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
checkIsIncomeGroup,
|
|
100
100
|
checkHasMembers,
|
|
101
101
|
sortNumeric,
|
|
102
|
-
} from "../../utils/index
|
|
102
|
+
} from "../../utils/index"
|
|
103
103
|
import Cookies from "js-cookie"
|
|
104
104
|
import * as _ from "lodash-es"
|
|
105
105
|
import {
|
|
@@ -113,14 +113,14 @@ import {
|
|
|
113
113
|
import React from "react"
|
|
114
114
|
import * as R from "remeda"
|
|
115
115
|
import { match } from "ts-pattern"
|
|
116
|
-
import { AxisConfig } from "../axis/AxisConfig
|
|
116
|
+
import { AxisConfig } from "../axis/AxisConfig"
|
|
117
117
|
import {
|
|
118
118
|
GrapherRasterizeFn,
|
|
119
119
|
StaticChartRasterizer,
|
|
120
|
-
} from "../captionedChart/StaticChartRasterizer
|
|
121
|
-
import { Chart } from "../chart/Chart
|
|
122
|
-
import { ChartDimension } from "../chart/ChartDimension
|
|
123
|
-
import { ChartState } from "../chart/ChartInterface
|
|
120
|
+
} from "../captionedChart/StaticChartRasterizer"
|
|
121
|
+
import { Chart } from "../chart/Chart"
|
|
122
|
+
import { ChartDimension } from "../chart/ChartDimension"
|
|
123
|
+
import { ChartState } from "../chart/ChartInterface"
|
|
124
124
|
import {
|
|
125
125
|
isChartTypeName,
|
|
126
126
|
isChartTab,
|
|
@@ -129,70 +129,70 @@ import {
|
|
|
129
129
|
isValidTabConfigOption,
|
|
130
130
|
mapChartTypeNameToTabConfigOption,
|
|
131
131
|
mapTabConfigOptionToChartTypeName,
|
|
132
|
-
} from "../chart/ChartTabs
|
|
133
|
-
import { makeChartState } from "../chart/ChartTypeMap
|
|
132
|
+
} from "../chart/ChartTabs"
|
|
133
|
+
import { makeChartState } from "../chart/ChartTypeMap"
|
|
134
134
|
import {
|
|
135
135
|
autoDetectSeriesStrategy,
|
|
136
136
|
autoDetectYColumnSlugs,
|
|
137
|
-
} from "../chart/ChartUtils
|
|
138
|
-
import { DimensionSlot } from "../chart/DimensionSlot
|
|
137
|
+
} from "../chart/ChartUtils"
|
|
138
|
+
import { DimensionSlot } from "../chart/DimensionSlot"
|
|
139
139
|
import {
|
|
140
140
|
GRAPHER_LIGHT_TEXT,
|
|
141
141
|
GRAPHER_BACKGROUND_BEIGE,
|
|
142
142
|
GRAPHER_BACKGROUND_DEFAULT,
|
|
143
|
-
} from "../color/ColorConstants
|
|
144
|
-
import { ColorScaleConfig } from "../color/ColorScaleConfig
|
|
145
|
-
import { isValidDataTableFilter } from "../dataTable/DataTable
|
|
146
|
-
import { DataTableConfig } from "../dataTable/DataTableConstants
|
|
143
|
+
} from "../color/ColorConstants"
|
|
144
|
+
import { ColorScaleConfig } from "../color/ColorScaleConfig"
|
|
145
|
+
import { isValidDataTableFilter } from "../dataTable/DataTable"
|
|
146
|
+
import { DataTableConfig } from "../dataTable/DataTableConstants"
|
|
147
147
|
import {
|
|
148
148
|
type EntitySelectorState,
|
|
149
149
|
EntitySelector,
|
|
150
|
-
} from "../entitySelector/EntitySelector
|
|
151
|
-
import { FacetChart } from "../facet/FacetChart
|
|
152
|
-
import { FocusArray } from "../focus/FocusArray
|
|
153
|
-
import { GlobeController } from "../mapCharts/GlobeController
|
|
150
|
+
} from "../entitySelector/EntitySelector"
|
|
151
|
+
import { FacetChart } from "../facet/FacetChart"
|
|
152
|
+
import { FocusArray } from "../focus/FocusArray"
|
|
153
|
+
import { GlobeController } from "../mapCharts/GlobeController"
|
|
154
154
|
import {
|
|
155
155
|
MAP_REGION_LABELS,
|
|
156
156
|
MAP_REGION_NAMES,
|
|
157
|
-
} from "../mapCharts/MapChartConstants
|
|
158
|
-
import { MapConfig } from "../mapCharts/MapConfig
|
|
157
|
+
} from "../mapCharts/MapChartConstants"
|
|
158
|
+
import { MapConfig } from "../mapCharts/MapConfig"
|
|
159
159
|
import {
|
|
160
160
|
isValidMapRegionName,
|
|
161
161
|
isOnTheMap,
|
|
162
162
|
getCountriesByRegion,
|
|
163
|
-
} from "../mapCharts/MapHelpers
|
|
164
|
-
import { DownloadModalTabName } from "../modal/DownloadModal
|
|
165
|
-
import { SelectionArray } from "../selection/SelectionArray
|
|
166
|
-
import { SlideShowController } from "../slideshowController/SlideShowController
|
|
163
|
+
} from "../mapCharts/MapHelpers"
|
|
164
|
+
import { DownloadModalTabName } from "../modal/DownloadModal"
|
|
165
|
+
import { SelectionArray } from "../selection/SelectionArray"
|
|
166
|
+
import { SlideShowController } from "../slideshowController/SlideShowController"
|
|
167
167
|
import {
|
|
168
168
|
TimelineDragTarget,
|
|
169
169
|
TimelineController,
|
|
170
|
-
} from "../timeline/TimelineController
|
|
171
|
-
import { TooltipManager } from "../tooltip/TooltipProps
|
|
170
|
+
} from "../timeline/TimelineController"
|
|
171
|
+
import { TooltipManager } from "../tooltip/TooltipProps"
|
|
172
172
|
import {
|
|
173
173
|
EntityRegionTypeGroup,
|
|
174
174
|
groupEntityNamesByRegionType,
|
|
175
175
|
EntityNamesByRegionType,
|
|
176
176
|
isEntityRegionType,
|
|
177
|
-
} from "./EntitiesByRegionType
|
|
177
|
+
} from "./EntitiesByRegionType"
|
|
178
178
|
import {
|
|
179
179
|
getEntityNamesParam,
|
|
180
180
|
getSelectedEntityNamesParam,
|
|
181
181
|
getFocusedSeriesNamesParam,
|
|
182
|
-
} from "./EntityUrlBuilder
|
|
182
|
+
} from "./EntityUrlBuilder"
|
|
183
183
|
import {
|
|
184
184
|
MinimalNarrativeChartInfo,
|
|
185
185
|
GrapherProgrammaticInterface,
|
|
186
186
|
GrapherManager,
|
|
187
187
|
DEFAULT_MS_PER_TICK,
|
|
188
|
-
} from "./Grapher
|
|
189
|
-
import { GrapherAnalytics } from "./GrapherAnalytics
|
|
188
|
+
} from "./Grapher"
|
|
189
|
+
import { GrapherAnalytics } from "./GrapherAnalytics"
|
|
190
190
|
import {
|
|
191
191
|
type GrapherAnalyticsContext,
|
|
192
192
|
type EntitySelectorEvent,
|
|
193
193
|
type GrapherImageDownloadEvent,
|
|
194
194
|
type GrapherInteractionEvent,
|
|
195
|
-
} from "../../types/index
|
|
195
|
+
} from "../../types/index"
|
|
196
196
|
import {
|
|
197
197
|
latestGrapherConfigSchema,
|
|
198
198
|
DEFAULT_GRAPHER_ENTITY_TYPE,
|
|
@@ -211,10 +211,10 @@ import {
|
|
|
211
211
|
STATIC_EXPORT_DETAIL_SPACING,
|
|
212
212
|
DEFAULT_GRAPHER_BOUNDS_SQUARE,
|
|
213
213
|
CHART_TYPES_THAT_SHOW_ALL_ENTITIES,
|
|
214
|
-
} from "./GrapherConstants
|
|
215
|
-
import { parseGlobeRotation, grapherObjectToQueryParams } from "./GrapherUrl
|
|
216
|
-
import { legacyToCurrentGrapherQueryParams } from "./GrapherUrlMigrations
|
|
217
|
-
import { getErrorMessageRelatedQuestionUrl } from "./relatedQuestion
|
|
214
|
+
} from "./GrapherConstants"
|
|
215
|
+
import { parseGlobeRotation, grapherObjectToQueryParams } from "./GrapherUrl"
|
|
216
|
+
import { legacyToCurrentGrapherQueryParams } from "./GrapherUrlMigrations"
|
|
217
|
+
import { getErrorMessageRelatedQuestionUrl } from "./relatedQuestion"
|
|
218
218
|
|
|
219
219
|
export class GrapherState {
|
|
220
220
|
$schema = latestGrapherConfigSchema
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
GrapherInterface,
|
|
4
4
|
GrapherQueryParams,
|
|
5
5
|
TimeBoundValueStr,
|
|
6
|
-
} from "../../types/index
|
|
6
|
+
} from "../../types/index"
|
|
7
7
|
import {
|
|
8
8
|
generateFocusedSeriesNamesParam,
|
|
9
9
|
generateSelectedEntityNamesParam,
|
|
10
|
-
} from "./EntityUrlBuilder
|
|
10
|
+
} from "./EntityUrlBuilder"
|
|
11
11
|
import { match } from "ts-pattern"
|
|
12
|
-
import { GrapherState } from "./GrapherState
|
|
12
|
+
import { GrapherState } from "./GrapherState"
|
|
13
13
|
import * as R from "remeda"
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_GLOBE_ROTATION,
|
|
16
16
|
DEFAULT_GLOBE_ZOOM,
|
|
17
|
-
} from "../mapCharts/MapChartConstants
|
|
17
|
+
} from "../mapCharts/MapChartConstants"
|
|
18
18
|
|
|
19
19
|
// This function converts a (potentially partial) GrapherInterface to the query params this translates to.
|
|
20
20
|
// This is helpful for when we have a patch config to a parent chart, and we want to know which query params we need to get the parent chart as close as possible to the patched child chart.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
|
|
3
|
-
import { Bounds } from "../../utils/index
|
|
3
|
+
import { Bounds } from "../../utils/index"
|
|
4
4
|
import { debounce } from "lodash-es"
|
|
5
|
-
import { GrapherProgrammaticInterface } from "../index
|
|
6
|
-
import { FetchingGrapher } from "./FetchingGrapher
|
|
5
|
+
import { GrapherProgrammaticInterface } from "../index"
|
|
6
|
+
import { FetchingGrapher } from "./FetchingGrapher"
|
|
7
7
|
import {
|
|
8
8
|
ArchiveContext,
|
|
9
9
|
VariableDataMetadataDimensions,
|
|
10
10
|
VariableId,
|
|
11
|
-
} from "../../types/index
|
|
12
|
-
import { loadVariableDataAndMetadata } from "./loadVariable
|
|
11
|
+
} from "../../types/index"
|
|
12
|
+
import { loadVariableDataAndMetadata } from "./loadVariable"
|
|
13
13
|
import { createRoot } from "react-dom/client"
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
ChartDimensionInterfaceWithMandatorySlug,
|
|
14
14
|
ChartDimensionInterface,
|
|
15
15
|
EntityName,
|
|
16
|
-
} from "../../types/index
|
|
16
|
+
} from "../../types/index"
|
|
17
17
|
import {
|
|
18
18
|
ChartsTable,
|
|
19
19
|
ErrorValueTypes,
|
|
20
20
|
makeKeyFn,
|
|
21
|
-
} from "../../core-table/index
|
|
21
|
+
} from "../../core-table/index"
|
|
22
22
|
import {
|
|
23
23
|
diffDateISOStringInDays,
|
|
24
24
|
getYearFromISOStringAndDayOffset,
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
ColumnSlug,
|
|
34
34
|
EPOCH_DATE,
|
|
35
35
|
VariableType,
|
|
36
|
-
} from "../../utils/index
|
|
36
|
+
} from "../../utils/index"
|
|
37
37
|
import { isContinentsVariableId } from "./GrapherConstants"
|
|
38
38
|
import * as R from "remeda"
|
|
39
|
-
import { getDimensionColumnSlug } from "../chart/ChartDimension
|
|
39
|
+
import { getDimensionColumnSlug } from "../chart/ChartDimension"
|
|
40
40
|
|
|
41
41
|
export const legacyToChartsTableAndDimensionsWithMandatorySlug = (
|
|
42
42
|
json: MultipleVariableDataDimensionsMap,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as _ from "lodash-es"
|
|
2
|
-
import { ChartsTable } from "../../core-table/index
|
|
2
|
+
import { ChartsTable } from "../../core-table/index"
|
|
3
3
|
import {
|
|
4
4
|
ArchiveContext,
|
|
5
5
|
ChartDimensionInterface,
|
|
6
6
|
VariableDataMetadataDimensions,
|
|
7
|
-
} from "../../utils/index
|
|
8
|
-
import { legacyToChartsTableAndDimensionsWithMandatorySlug } from "./LegacyToChartsTable
|
|
7
|
+
} from "../../utils/index"
|
|
8
|
+
import { legacyToChartsTableAndDimensionsWithMandatorySlug } from "./LegacyToChartsTable"
|
|
9
9
|
import {
|
|
10
10
|
loadVariablesDataSite,
|
|
11
11
|
loadVariableDataAndMetadata,
|
|
12
|
-
} from "./loadVariable
|
|
12
|
+
} from "./loadVariable"
|
|
13
13
|
import { toJS } from "mobx"
|
|
14
14
|
|
|
15
15
|
export type FetchInputTableForConfigFn = (args: {
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
AssetMap,
|
|
4
4
|
MultipleVariableDataDimensionsMap,
|
|
5
5
|
VariableDataMetadataDimensions,
|
|
6
|
-
} from "../../types/index
|
|
7
|
-
import { fetchWithRetry, readFromAssetMap } from "../../utils/index
|
|
6
|
+
} from "../../types/index"
|
|
7
|
+
import { fetchWithRetry, readFromAssetMap } from "../../utils/index"
|
|
8
8
|
import urljoin from "url-join"
|
|
9
9
|
|
|
10
10
|
export const getVariableDataRoute = (
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { DimensionProperty } from "../../utils/index
|
|
1
|
+
import { DimensionProperty } from "../../utils/index"
|
|
2
2
|
import { GrapherState } from "../core/GrapherState"
|
|
3
3
|
import {
|
|
4
4
|
GRAPHER_TAB_CONFIG_OPTIONS,
|
|
5
5
|
GrapherInterface,
|
|
6
|
-
} from "../../types/index
|
|
6
|
+
} from "../../types/index"
|
|
7
7
|
import {
|
|
8
8
|
TestMetadata,
|
|
9
9
|
createTestDataset,
|
|
10
10
|
fakeEntities,
|
|
11
11
|
} from "../testData/TestData"
|
|
12
|
-
import { legacyToChartsTableAndDimensionsWithMandatorySlug } from "../core/LegacyToChartsTable
|
|
12
|
+
import { legacyToChartsTableAndDimensionsWithMandatorySlug } from "../core/LegacyToChartsTable"
|
|
13
13
|
|
|
14
14
|
export const childMortalityGrapher = (
|
|
15
15
|
props: Partial<GrapherInterface> = {}
|
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
ChartsTableSlugs,
|
|
20
20
|
VariableRoundingMode,
|
|
21
21
|
VariableRow,
|
|
22
|
-
} from "../../types/index
|
|
23
|
-
import { ChartsTable, CoreColumn } from "../../core-table/index
|
|
22
|
+
} from "../../types/index"
|
|
23
|
+
import { ChartsTable, CoreColumn } from "../../core-table/index"
|
|
24
24
|
import {
|
|
25
25
|
valuesByEntityAtTimes,
|
|
26
26
|
es6mapValues,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
excludeUndefined,
|
|
33
33
|
joinTitleFragments,
|
|
34
34
|
FuzzySearch,
|
|
35
|
-
} from "../../utils/index
|
|
35
|
+
} from "../../utils/index"
|
|
36
36
|
import { SelectionArray } from "../selection/SelectionArray"
|
|
37
37
|
import {
|
|
38
38
|
DEFAULT_GRAPHER_BOUNDS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CoreColumn, ChartsTable } from "../../core-table/index
|
|
1
|
+
import { CoreColumn, ChartsTable } from "../../core-table/index"
|
|
2
2
|
import {
|
|
3
3
|
ColumnSlug,
|
|
4
4
|
EntityName,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
VariableRow,
|
|
7
7
|
SortOrder,
|
|
8
8
|
Time,
|
|
9
|
-
} from "../../types/index
|
|
9
|
+
} from "../../types/index"
|
|
10
10
|
import {
|
|
11
11
|
EntityNamesByRegionType,
|
|
12
12
|
EntityRegionType,
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
Region,
|
|
30
30
|
getRegionByName,
|
|
31
31
|
makeSafeForCSS,
|
|
32
|
-
} from "../../utils/index
|
|
32
|
+
} from "../../utils/index"
|
|
33
33
|
import {
|
|
34
34
|
Checkbox,
|
|
35
35
|
RadioButton,
|
|
36
36
|
OverlayHeader,
|
|
37
|
-
} from "../../components/index
|
|
37
|
+
} from "../../components/index"
|
|
38
38
|
import {
|
|
39
39
|
faLocationArrow,
|
|
40
40
|
faArrowRightArrowLeft,
|
|
@@ -46,7 +46,7 @@ import { Flipper, Flipped } from "react-flip-toolkit"
|
|
|
46
46
|
import {
|
|
47
47
|
combineHistoricalAndProjectionColumns,
|
|
48
48
|
makeSelectionArray,
|
|
49
|
-
} from "../chart/ChartUtils
|
|
49
|
+
} from "../chart/ChartUtils"
|
|
50
50
|
import {
|
|
51
51
|
DEFAULT_GRAPHER_ENTITY_TYPE,
|
|
52
52
|
DEFAULT_GRAPHER_ENTITY_TYPE_PLURAL,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
isPopulationVariableETLPath,
|
|
56
56
|
isWorldEntityName,
|
|
57
57
|
} from "../core/GrapherConstants"
|
|
58
|
-
import { CoreColumn, ChartsTable } from "../../core-table/index
|
|
58
|
+
import { CoreColumn, ChartsTable } from "../../core-table/index"
|
|
59
59
|
import { SortIcon } from "../controls/SortIcon"
|
|
60
60
|
import { Dropdown } from "../controls/Dropdown"
|
|
61
61
|
import { scaleLinear, type ScaleLinear } from "d3-scale"
|
|
@@ -68,9 +68,9 @@ import {
|
|
|
68
68
|
Time,
|
|
69
69
|
ToleranceStrategy,
|
|
70
70
|
type EntitySelectorEvent,
|
|
71
|
-
} from "../../types/index
|
|
71
|
+
} from "../../types/index"
|
|
72
72
|
import { buildVariableTable } from "../core/LegacyToChartsTable"
|
|
73
|
-
import { DrawerContext } from "../slideInDrawer/SlideInDrawer
|
|
73
|
+
import { DrawerContext } from "../slideInDrawer/SlideInDrawer"
|
|
74
74
|
import * as R from "remeda"
|
|
75
75
|
import { MapConfig } from "../mapCharts/MapConfig"
|
|
76
76
|
import { match } from "ts-pattern"
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
isAggregateSource,
|
|
83
83
|
} from "../core/EntitiesByRegionType"
|
|
84
84
|
import { SearchField } from "../controls/SearchField"
|
|
85
|
-
import { MAP_REGION_LABELS } from "../mapCharts/MapChartConstants
|
|
85
|
+
import { MAP_REGION_LABELS } from "../mapCharts/MapChartConstants"
|
|
86
86
|
|
|
87
87
|
export type CoreColumnBySlug = Record<ColumnSlug, CoreColumn>
|
|
88
88
|
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
makeIdForHumanConsumption,
|
|
16
16
|
exposeInstanceOnWindow,
|
|
17
17
|
SplitBoundsPadding,
|
|
18
|
-
} from "../../utils/index
|
|
19
|
-
import { shortenWithEllipsis } from "../../components/index
|
|
18
|
+
} from "../../utils/index"
|
|
19
|
+
import { shortenWithEllipsis } from "../../components/index"
|
|
20
20
|
import { action, computed, makeObservable, observable } from "mobx"
|
|
21
21
|
import {
|
|
22
22
|
BASE_FONT_SIZE,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
SeriesStrategy,
|
|
32
32
|
AxisConfigInterface,
|
|
33
33
|
ChartErrorInfo,
|
|
34
|
-
} from "../../types/index
|
|
34
|
+
} from "../../types/index"
|
|
35
35
|
import { ChartComponent, makeChartInstance } from "../chart/ChartTypeMap"
|
|
36
36
|
import { ChartManager } from "../chart/ChartManager"
|
|
37
37
|
import { ChartInterface, ChartState } from "../chart/ChartInterface"
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
PlacedFacetSeries,
|
|
48
48
|
FacetChartManager,
|
|
49
49
|
} from "./FacetChartConstants"
|
|
50
|
-
import { ChartsTable, CoreColumn } from "../../core-table/index
|
|
50
|
+
import { ChartsTable, CoreColumn } from "../../core-table/index"
|
|
51
51
|
import { autoDetectYColumnSlugs, makeSelectionArray } from "../chart/ChartUtils"
|
|
52
52
|
import { SelectionArray } from "../selection/SelectionArray"
|
|
53
53
|
import { AxisConfig } from "../axis/AxisConfig"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChartSeries } from "../chart/ChartInterface"
|
|
2
2
|
import { ChartManager } from "../chart/ChartManager"
|
|
3
|
-
import { GrapherChartType } from "../../types/index
|
|
4
|
-
import { Bounds } from "../../utils/index
|
|
3
|
+
import { GrapherChartType } from "../../types/index"
|
|
4
|
+
import { Bounds } from "../../utils/index"
|
|
5
5
|
|
|
6
6
|
export interface FacetChartManager extends ChartManager {
|
|
7
7
|
canSelectMultipleEntities?: boolean
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
makeIdForHumanConsumption,
|
|
9
9
|
exposeInstanceOnWindow,
|
|
10
10
|
SplitBoundsPadding,
|
|
11
|
-
} from "../../utils/index
|
|
11
|
+
} from "../../utils/index"
|
|
12
12
|
import { action, computed, makeObservable, observable } from "mobx"
|
|
13
13
|
import {
|
|
14
14
|
BASE_FONT_SIZE,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
GrapherInteractionEvent,
|
|
22
22
|
MapRegionName,
|
|
23
23
|
Time,
|
|
24
|
-
} from "../../types/index
|
|
24
|
+
} from "../../types/index"
|
|
25
25
|
import {
|
|
26
26
|
calculateAspectRatio,
|
|
27
27
|
getFacetGridPadding,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
FacetMapProps,
|
|
34
34
|
PlacedMapFacetSeries,
|
|
35
35
|
} from "./FacetMapConstants"
|
|
36
|
-
import { ChartsTable } from "../../core-table/index
|
|
36
|
+
import { ChartsTable } from "../../core-table/index"
|
|
37
37
|
import {
|
|
38
38
|
HorizontalCategoricalColorLegend,
|
|
39
39
|
HorizontalColorLegendManager,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
MapChartManager,
|
|
60
60
|
MapViewport,
|
|
61
61
|
} from "../mapCharts/MapChartConstants"
|
|
62
|
-
import { ChartState } from "../chart/ChartInterface
|
|
62
|
+
import { ChartState } from "../chart/ChartInterface"
|
|
63
63
|
import { MapConfig } from "../mapCharts/MapConfig"
|
|
64
64
|
|
|
65
65
|
@observer
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChartSeries } from "../chart/ChartInterface"
|
|
2
|
-
import { Bounds, GrapherAnalyticsContext } from "../../utils/index
|
|
2
|
+
import { Bounds, GrapherAnalyticsContext } from "../../utils/index"
|
|
3
3
|
import { MapChartManager } from "../mapCharts/MapChartConstants"
|
|
4
4
|
import { GrapherAnalytics } from "../core/GrapherAnalytics"
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { action, computed, observable, makeObservable } from "mobx"
|
|
2
|
-
import { SeriesName } from "../../types/index
|
|
3
|
-
import { InteractionState } from "../interaction/InteractionState
|
|
2
|
+
import { SeriesName } from "../../types/index"
|
|
3
|
+
import { InteractionState } from "../interaction/InteractionState"
|
|
4
4
|
|
|
5
5
|
export class FocusArray {
|
|
6
6
|
constructor() {
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
getRelativeMouse,
|
|
7
7
|
makeIdForHumanConsumption,
|
|
8
8
|
Url,
|
|
9
|
-
} from "../../utils/index
|
|
9
|
+
} from "../../utils/index"
|
|
10
10
|
import {
|
|
11
11
|
DATAPAGE_ABOUT_THIS_DATA_SECTION_ID,
|
|
12
12
|
MarkdownTextWrap,
|
|
13
13
|
TextWrap,
|
|
14
|
-
} from "../../components/index
|
|
14
|
+
} from "../../components/index"
|
|
15
15
|
import { Tooltip } from "../tooltip/Tooltip"
|
|
16
16
|
import { FooterManager } from "./FooterManager"
|
|
17
17
|
import { ActionButtons } from "../controls/ActionButtons"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TooltipManager } from "../tooltip/TooltipProps"
|
|
2
|
-
import { DetailsMarker } from "../../types/index
|
|
2
|
+
import { DetailsMarker } from "../../types/index"
|
|
3
3
|
import { ActionButtonsManager } from "../controls/ActionButtons"
|
|
4
4
|
import { GrapherModal } from "../core/GrapherConstants"
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import { action, makeObservable } from "mobx"
|
|
3
3
|
import { observer } from "mobx-react"
|
|
4
|
-
import { BodyPortal } from "../../components/index
|
|
4
|
+
import { BodyPortal } from "../../components/index"
|
|
5
5
|
import { isTargetOutsideElement } from "../chart/ChartUtils"
|
|
6
6
|
|
|
7
7
|
interface FullScreenProps {
|