@buildcanada/charts 0.3.3 → 0.3.5
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,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import { observer } from "mobx-react"
|
|
3
3
|
import { computed, action, makeObservable } from "mobx"
|
|
4
|
-
import { Bounds } from "../../utils/index.
|
|
4
|
+
import { Bounds } from "../../utils/index.ts"
|
|
5
5
|
import { Modal } from "./Modal"
|
|
6
6
|
import {
|
|
7
7
|
EntitySelector,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Fragment } from "react"
|
|
3
3
|
import cx from "classnames"
|
|
4
|
-
import { ProcessingLevel, excludeNull } from "../../utils/index.
|
|
4
|
+
import { ProcessingLevel, excludeNull } from "../../utils/index.ts"
|
|
5
5
|
import {
|
|
6
6
|
makeSource,
|
|
7
7
|
makeLastUpdated,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
makeUnit,
|
|
11
11
|
makeUnitConversionFactor,
|
|
12
12
|
makeLinks,
|
|
13
|
-
} from "../../components/index.
|
|
13
|
+
} from "../../components/index.ts"
|
|
14
14
|
import * as R from "remeda"
|
|
15
15
|
|
|
16
16
|
interface SourcesKeyDataTableProps {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
joinTitleFragments,
|
|
14
14
|
getCitationShort,
|
|
15
15
|
getCitationLong,
|
|
16
|
-
} from "../../utils/index.
|
|
16
|
+
} from "../../utils/index.ts"
|
|
17
17
|
import {
|
|
18
18
|
IndicatorSources,
|
|
19
19
|
IndicatorProcessing,
|
|
@@ -23,15 +23,15 @@ import {
|
|
|
23
23
|
CLOSE_BUTTON_WIDTH,
|
|
24
24
|
CloseButton,
|
|
25
25
|
LoadingIndicator,
|
|
26
|
-
} from "../../components/index.
|
|
26
|
+
} from "../../components/index.ts"
|
|
27
27
|
import * as React from "react"
|
|
28
28
|
import cx from "classnames"
|
|
29
29
|
import { action, computed, makeObservable, observable } from "mobx"
|
|
30
30
|
import { observer } from "mobx-react"
|
|
31
31
|
import { faPencilAlt } from "@fortawesome/free-solid-svg-icons"
|
|
32
32
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
|
|
33
|
-
import { ColumnDef } from "../../types/index.
|
|
34
|
-
import { CoreColumn } from "../../core-table/index.
|
|
33
|
+
import { ColumnDef } from "../../types/index.ts"
|
|
34
|
+
import { CoreColumn } from "../../core-table/index.ts"
|
|
35
35
|
import { Modal } from "./Modal"
|
|
36
36
|
import { SourcesKeyDataTable } from "./SourcesKeyDataTable"
|
|
37
37
|
import { SourcesDescriptions } from "./SourcesDescriptions"
|
|
@@ -2,7 +2,7 @@ import * as React from "react"
|
|
|
2
2
|
import { computed, makeObservable } from "mobx"
|
|
3
3
|
import { observer } from "mobx-react"
|
|
4
4
|
import a from "indefinite"
|
|
5
|
-
import { Bounds, VerticalAlign, dyFromAlign } from "../../utils/index.
|
|
5
|
+
import { Bounds, VerticalAlign, dyFromAlign } from "../../utils/index.ts"
|
|
6
6
|
import {
|
|
7
7
|
BASE_FONT_SIZE,
|
|
8
8
|
DEFAULT_GRAPHER_BOUNDS,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
DEFAULT_GRAPHER_ENTITY_TYPE_PLURAL,
|
|
11
11
|
GRAPHER_TEXT_OUTLINE_FACTOR,
|
|
12
12
|
} from "../core/GrapherConstants"
|
|
13
|
-
import { Halo } from "../../components/index.
|
|
13
|
+
import { Halo } from "../../components/index.ts"
|
|
14
14
|
import { GRAPHER_DARK_TEXT, GRAPHER_LIGHT_TEXT } from "../color/ColorConstants"
|
|
15
15
|
|
|
16
16
|
export interface NoDataModalManager {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import { computed, makeObservable } from "mobx"
|
|
3
3
|
import { Triangle } from "./Triangle"
|
|
4
|
-
import { TextWrap } from "../../components/index.
|
|
4
|
+
import { TextWrap } from "../../components/index.ts"
|
|
5
5
|
import { BASE_FONT_SIZE } from "../core/GrapherConstants"
|
|
6
|
-
import { makeIdForHumanConsumption } from "../../utils/index.
|
|
6
|
+
import { makeIdForHumanConsumption } from "../../utils/index.ts"
|
|
7
7
|
import * as _ from "lodash-es"
|
|
8
8
|
|
|
9
9
|
export interface ConnectedScatterLegendManager {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _ from "lodash-es"
|
|
2
2
|
import React from "react"
|
|
3
|
-
import { EntitySelectionMode, SeriesName, Color } from "../../types/index.
|
|
3
|
+
import { EntitySelectionMode, SeriesName, Color } from "../../types/index.ts"
|
|
4
4
|
import { observable, computed, action, makeObservable } from "mobx"
|
|
5
5
|
import { ScaleLinear, scaleSqrt } from "d3-scale"
|
|
6
6
|
import { Quadtree, quadtree } from "d3-quadtree"
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
Bounds,
|
|
16
16
|
isTouchDevice,
|
|
17
17
|
makeIdForHumanConsumption,
|
|
18
|
-
} from "../../utils/index.
|
|
18
|
+
} from "../../utils/index.ts"
|
|
19
19
|
import { observer } from "mobx-react"
|
|
20
20
|
import { NoDataModal } from "../noDataModal/NoDataModal"
|
|
21
21
|
import {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
ChartsTable,
|
|
27
27
|
isNotErrorValue,
|
|
28
28
|
CoreColumn,
|
|
29
|
-
} from "../../core-table/index.
|
|
29
|
+
} from "../../core-table/index.ts"
|
|
30
30
|
import {
|
|
31
31
|
ConnectedScatterLegend,
|
|
32
32
|
ConnectedScatterLegendManager,
|
|
@@ -66,8 +66,8 @@ import {
|
|
|
66
66
|
import { TooltipState } from "../tooltip/Tooltip"
|
|
67
67
|
import { NoDataSection } from "./NoDataSection"
|
|
68
68
|
import { ScatterPlotChartState } from "./ScatterPlotChartState"
|
|
69
|
-
import { ChartComponentProps } from "../chart/ChartTypeMap.
|
|
70
|
-
import { toSizeRange } from "./ScatterUtils.
|
|
69
|
+
import { ChartComponentProps } from "../chart/ChartTypeMap.tsx"
|
|
70
|
+
import { toSizeRange } from "./ScatterUtils.ts"
|
|
71
71
|
import { ScatterPlotTooltip } from "./ScatterPlotTooltip"
|
|
72
72
|
import { GRAY_100, GRAY_60 } from "../color/ColorConstants"
|
|
73
73
|
import { INACTIVE_SCATTER_POINT_COLOR } from "./ScatterPoints"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ScaleLinear } from "d3-scale"
|
|
2
2
|
import { Quadtree } from "d3-quadtree"
|
|
3
|
-
import { ChartsTable } from "../../core-table/index.
|
|
3
|
+
import { ChartsTable } from "../../core-table/index.ts"
|
|
4
4
|
import { DualAxis } from "../axis/Axis"
|
|
5
5
|
import { ChartManager } from "../chart/ChartManager"
|
|
6
6
|
import { NoDataModalManager } from "../noDataModal/NoDataModal"
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
Color,
|
|
13
13
|
Time,
|
|
14
14
|
EntityName,
|
|
15
|
-
} from "../../types/index.
|
|
15
|
+
} from "../../types/index.ts"
|
|
16
16
|
import {
|
|
17
17
|
GRAPHER_FONT_SCALE_10,
|
|
18
18
|
GRAPHER_FONT_SCALE_10_5,
|
|
@@ -20,9 +20,9 @@ import {
|
|
|
20
20
|
GRAPHER_FONT_SCALE_13,
|
|
21
21
|
} from "../core/GrapherConstants"
|
|
22
22
|
|
|
23
|
-
import { Bounds, PointVector } from "../../utils/index.
|
|
23
|
+
import { Bounds, PointVector } from "../../utils/index.ts"
|
|
24
24
|
import { ChartSeries } from "../chart/ChartInterface"
|
|
25
|
-
import { InteractionState } from "../interaction/InteractionState.
|
|
25
|
+
import { InteractionState } from "../interaction/InteractionState.ts"
|
|
26
26
|
|
|
27
27
|
export interface ScatterPlotManager extends ChartManager {
|
|
28
28
|
hideConnectedScatterLines?: boolean
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
defaultIfErrorValue,
|
|
6
6
|
isNotErrorValue,
|
|
7
7
|
ChartsTable,
|
|
8
|
-
} from "../../core-table/index.
|
|
8
|
+
} from "../../core-table/index.ts"
|
|
9
9
|
import { ChartState } from "../chart/ChartInterface"
|
|
10
10
|
import { ColorScale, ColorScaleManager } from "../color/ColorScale"
|
|
11
11
|
import {
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
ColorScaleConfigInterface,
|
|
30
30
|
SeriesName,
|
|
31
31
|
ValueRange,
|
|
32
|
-
} from "../../types/index.
|
|
32
|
+
} from "../../types/index.ts"
|
|
33
33
|
import {
|
|
34
34
|
domainExtent,
|
|
35
35
|
intersection,
|
|
36
36
|
lowerCaseFirstLetterUnlessAbbreviation,
|
|
37
|
-
} from "../../utils/index.
|
|
37
|
+
} from "../../utils/index.ts"
|
|
38
38
|
import { ColorScaleConfig } from "../color/ColorScaleConfig"
|
|
39
39
|
import { NO_DATA_GRAY } from "../color/ColorConstants"
|
|
40
40
|
import { AxisConfig } from "../axis/AxisConfig"
|
|
@@ -42,7 +42,7 @@ import { BASE_FONT_SIZE } from "../core/GrapherConstants"
|
|
|
42
42
|
import { SelectionArray } from "../selection/SelectionArray"
|
|
43
43
|
import { computeSizeDomain } from "./ScatterUtils"
|
|
44
44
|
import { FocusArray } from "../focus/FocusArray"
|
|
45
|
-
import { HorizontalAxis, VerticalAxis } from "../axis/Axis.
|
|
45
|
+
import { HorizontalAxis, VerticalAxis } from "../axis/Axis.ts"
|
|
46
46
|
|
|
47
47
|
export class ScatterPlotChartState implements ChartState, ColorScaleManager {
|
|
48
48
|
manager: ScatterPlotManager
|
|
@@ -4,10 +4,10 @@ import { computed, makeObservable } from "mobx"
|
|
|
4
4
|
import { observer } from "mobx-react"
|
|
5
5
|
import { ChartInterface } from "../chart/ChartInterface"
|
|
6
6
|
import { ScatterPlotChartState } from "./ScatterPlotChartState"
|
|
7
|
-
import { type ScatterPlotChartProps } from "./ScatterPlotChart.
|
|
7
|
+
import { type ScatterPlotChartProps } from "./ScatterPlotChart.tsx"
|
|
8
8
|
import { ScaleLinear, scaleSqrt } from "d3-scale"
|
|
9
9
|
import { DualAxis, HorizontalAxis, VerticalAxis } from "../axis/Axis"
|
|
10
|
-
import { Bounds } from "../../utils/index.
|
|
10
|
+
import { Bounds } from "../../utils/index.ts"
|
|
11
11
|
import {
|
|
12
12
|
BASE_FONT_SIZE,
|
|
13
13
|
DEFAULT_GRAPHER_BOUNDS,
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
calculateTrendDirection,
|
|
10
10
|
Time,
|
|
11
11
|
RequiredBy,
|
|
12
|
-
} from "../../utils/index.
|
|
13
|
-
import { CoreColumn } from "../../core-table/index.
|
|
12
|
+
} from "../../utils/index.ts"
|
|
13
|
+
import { CoreColumn } from "../../core-table/index.ts"
|
|
14
14
|
import {
|
|
15
15
|
Tooltip,
|
|
16
16
|
TooltipState,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
formatTooltipRangeValues,
|
|
21
21
|
TooltipValue,
|
|
22
22
|
} from "../tooltip/Tooltip"
|
|
23
|
-
import { FooterItem, TooltipFooterIcon } from "../tooltip/TooltipProps.
|
|
23
|
+
import { FooterItem, TooltipFooterIcon } from "../tooltip/TooltipProps.ts"
|
|
24
24
|
import { ScatterSeries, SeriesPoint } from "./ScatterPlotChartConstants"
|
|
25
25
|
import { ScatterPlotChartState } from "./ScatterPlotChartState"
|
|
26
26
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as R from "remeda"
|
|
2
|
-
import { PointVector, makeIdForHumanConsumption } from "../../utils/index.
|
|
2
|
+
import { PointVector, makeIdForHumanConsumption } from "../../utils/index.ts"
|
|
3
3
|
import { observer } from "mobx-react"
|
|
4
4
|
import * as React from "react"
|
|
5
5
|
import { MultiColorPolyline } from "./MultiColorPolyline"
|
|
@@ -3,7 +3,7 @@ import * as R from "remeda"
|
|
|
3
3
|
import { type BaseType, type Selection, select } from "d3-selection"
|
|
4
4
|
import { ScaleLinear } from "d3-scale"
|
|
5
5
|
import { NoDataModal } from "../noDataModal/NoDataModal"
|
|
6
|
-
import { SortOrder } from "../../types/index.
|
|
6
|
+
import { SortOrder } from "../../types/index.ts"
|
|
7
7
|
import {
|
|
8
8
|
Bounds,
|
|
9
9
|
PointVector,
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
intersection,
|
|
14
14
|
guid,
|
|
15
15
|
makeIdForHumanConsumption,
|
|
16
|
-
} from "../../utils/index.
|
|
16
|
+
} from "../../utils/index.ts"
|
|
17
17
|
import { computed, action, observable, makeObservable } from "mobx"
|
|
18
18
|
import { observer } from "mobx-react"
|
|
19
19
|
import * as React from "react"
|
|
20
|
-
import { Halo } from "../../components/index.
|
|
20
|
+
import { Halo } from "../../components/index.ts"
|
|
21
21
|
import { MultiColorPolyline } from "./MultiColorPolyline"
|
|
22
22
|
import {
|
|
23
23
|
ScatterPointsWithLabelsProps,
|
|
@@ -2,19 +2,19 @@ import * as React from "react"
|
|
|
2
2
|
import * as R from "remeda"
|
|
3
3
|
import { computed, makeObservable } from "mobx"
|
|
4
4
|
import { scaleLinear, ScaleLinear } from "d3-scale"
|
|
5
|
-
import { TextWrap, Halo } from "../../components/index.
|
|
5
|
+
import { TextWrap, Halo } from "../../components/index.ts"
|
|
6
6
|
import {
|
|
7
7
|
Color,
|
|
8
8
|
makeIdForHumanConsumption,
|
|
9
9
|
VariableRoundingMode,
|
|
10
|
-
} from "../../utils/index.
|
|
10
|
+
} from "../../utils/index.ts"
|
|
11
11
|
import {
|
|
12
12
|
BASE_FONT_SIZE,
|
|
13
13
|
GRAPHER_FONT_SCALE_10,
|
|
14
14
|
GRAPHER_FONT_SCALE_11,
|
|
15
15
|
GRAPHER_TEXT_OUTLINE_FACTOR,
|
|
16
16
|
} from "../core/GrapherConstants"
|
|
17
|
-
import { CoreColumn } from "../../core-table/index.
|
|
17
|
+
import { CoreColumn } from "../../core-table/index.ts"
|
|
18
18
|
import {
|
|
19
19
|
ScatterSeries,
|
|
20
20
|
SCATTER_POINT_MAX_RADIUS,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ColumnSlug,
|
|
6
6
|
PointVector,
|
|
7
7
|
ValueRange,
|
|
8
|
-
} from "../../utils/index.
|
|
8
|
+
} from "../../utils/index.ts"
|
|
9
9
|
import {
|
|
10
10
|
SCATTER_LABEL_FONT_SIZE_FACTOR_WHEN_HIDDEN_LINES,
|
|
11
11
|
SCATTER_LINE_DEFAULT_WIDTH,
|
|
@@ -16,9 +16,9 @@ import {
|
|
|
16
16
|
ScatterRenderPoint,
|
|
17
17
|
ScatterRenderSeries,
|
|
18
18
|
} from "./ScatterPlotChartConstants"
|
|
19
|
-
import { BASE_FONT_SIZE } from "../core/GrapherConstants.
|
|
19
|
+
import { BASE_FONT_SIZE } from "../core/GrapherConstants.ts"
|
|
20
20
|
import { ScatterPlotChartState } from "./ScatterPlotChartState"
|
|
21
|
-
import { ChartsTable } from "../../core-table/index.
|
|
21
|
+
import { ChartsTable } from "../../core-table/index.ts"
|
|
22
22
|
|
|
23
23
|
export const labelPriority = (label: ScatterLabel): number => {
|
|
24
24
|
let priority = label.fontSize
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// GENERATED BY devTools/schema/generate-default-object-from-schema.ts
|
|
4
4
|
|
|
5
|
-
import { GrapherInterface } from "../../types/index.
|
|
5
|
+
import { GrapherInterface } from "../../types/index.ts"
|
|
6
6
|
|
|
7
7
|
export const latestSchemaVersion = "009" as const
|
|
8
8
|
export const outdatedSchemaVersions = [
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
getSchemaVersion,
|
|
16
16
|
isLatestVersion,
|
|
17
17
|
} from "./helpers"
|
|
18
|
-
import { GRAPHER_CHART_TYPES } from "../../../types/index.
|
|
18
|
+
import { GRAPHER_CHART_TYPES } from "../../../types/index.ts"
|
|
19
19
|
|
|
20
20
|
// see # legacy commit 26f2a0d1790c71bdda7e12f284ca552945d2f6ef
|
|
21
21
|
const migrateFrom001To002 = (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
|
-
import { Bounds } from "../../utils/index.
|
|
3
|
-
import { GRAPHER_SIDE_PANEL_CLASS } from "../core/GrapherConstants.
|
|
2
|
+
import { Bounds } from "../../utils/index.ts"
|
|
3
|
+
import { GRAPHER_SIDE_PANEL_CLASS } from "../core/GrapherConstants.ts"
|
|
4
4
|
|
|
5
5
|
export const SidePanel = ({
|
|
6
6
|
bounds,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeIdForHumanConsumption, PointVector } from "../../utils/index.
|
|
1
|
+
import { makeIdForHumanConsumption, PointVector } from "../../utils/index.ts"
|
|
2
2
|
import { GRAPHER_OPACITY_MUTE } from "../core/GrapherConstants"
|
|
3
3
|
import { RenderSlopeChartSeries } from "./SlopeChartConstants"
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
isTouchDevice,
|
|
14
14
|
domainExtent,
|
|
15
15
|
calculateTrendDirection,
|
|
16
|
-
} from "../../utils/index.
|
|
16
|
+
} from "../../utils/index.ts"
|
|
17
17
|
import { observable, computed, action, makeObservable } from "mobx"
|
|
18
18
|
import { observer } from "mobx-react"
|
|
19
19
|
import { NoDataModal } from "../noDataModal/NoDataModal"
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
SeriesStrategy,
|
|
32
32
|
VerticalAlign,
|
|
33
33
|
HorizontalAlign,
|
|
34
|
-
} from "../../types/index.
|
|
34
|
+
} from "../../types/index.ts"
|
|
35
35
|
import { ChartInterface } from "../chart/ChartInterface"
|
|
36
36
|
import { scaleLinear, ScaleLinear } from "d3-scale"
|
|
37
37
|
import { select, type BaseType, type Selection } from "d3-selection"
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
SlopeChartSeries,
|
|
43
43
|
SlopeChartManager,
|
|
44
44
|
} from "./SlopeChartConstants"
|
|
45
|
-
import { CoreColumn } from "../../core-table/index.
|
|
45
|
+
import { CoreColumn } from "../../core-table/index.ts"
|
|
46
46
|
import { getHoverStateForSeries } from "../chart/ChartUtils"
|
|
47
47
|
import { VerticalAxis } from "../axis/Axis"
|
|
48
48
|
import { VerticalAxisZeroLine } from "../axis/AxisViews"
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
} from "../tooltip/Tooltip"
|
|
60
60
|
import { TooltipFooterIcon } from "../tooltip/TooltipProps"
|
|
61
61
|
|
|
62
|
-
import { Halo } from "../../components/index.
|
|
62
|
+
import { Halo } from "../../components/index.ts"
|
|
63
63
|
import { HorizontalColorLegendManager } from "../legend/HorizontalColorLegends"
|
|
64
64
|
import { CategoricalBin } from "../color/ColorScaleBin"
|
|
65
65
|
import {
|
|
@@ -70,7 +70,7 @@ import { FocusArray } from "../focus/FocusArray"
|
|
|
70
70
|
import { LineLabelSeries } from "../lineLegend/LineLegendTypes"
|
|
71
71
|
import { SlopeChartState } from "./SlopeChartState"
|
|
72
72
|
import { AxisConfig, AxisManager } from "../axis/AxisConfig"
|
|
73
|
-
import { ChartComponentProps } from "../chart/ChartTypeMap.
|
|
73
|
+
import { ChartComponentProps } from "../chart/ChartTypeMap.tsx"
|
|
74
74
|
import { InteractionState } from "../interaction/InteractionState"
|
|
75
75
|
import {
|
|
76
76
|
getYAxisConfigDefaults,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PartialBy, PointVector } from "../../utils/index.
|
|
2
|
-
import { EntityName, VariableRow } from "../../types/index.
|
|
1
|
+
import { PartialBy, PointVector } from "../../utils/index.ts"
|
|
2
|
+
import { EntityName, VariableRow } from "../../types/index.ts"
|
|
3
3
|
import { ChartSeries } from "../chart/ChartInterface"
|
|
4
|
-
import { CoreColumn } from "../../core-table/index.
|
|
4
|
+
import { CoreColumn } from "../../core-table/index.ts"
|
|
5
5
|
import { ChartManager } from "../chart/ChartManager"
|
|
6
6
|
import { InteractionState } from "../interaction/InteractionState"
|
|
7
7
|
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
RawSlopeChartSeries,
|
|
6
6
|
SlopeChartSeries,
|
|
7
7
|
} from "./SlopeChartConstants"
|
|
8
|
-
import { ChartsTable, CoreColumn } from "../../core-table/index.
|
|
8
|
+
import { ChartsTable, CoreColumn } from "../../core-table/index.ts"
|
|
9
9
|
import { SelectionArray } from "../selection/SelectionArray"
|
|
10
10
|
import { FocusArray } from "../focus/FocusArray"
|
|
11
11
|
import {
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
EntityName,
|
|
19
19
|
ColorSchemeName,
|
|
20
20
|
ChartErrorInfo,
|
|
21
|
-
} from "../../types/index.
|
|
21
|
+
} from "../../types/index.ts"
|
|
22
22
|
import {
|
|
23
23
|
autoDetectSeriesStrategy,
|
|
24
24
|
autoDetectYColumnSlugs,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
getDisplayName,
|
|
38
38
|
getSeriesName,
|
|
39
39
|
} from "../lineCharts/LineChartHelpers"
|
|
40
|
-
import { domainExtent } from "../../utils/index.
|
|
40
|
+
import { domainExtent } from "../../utils/index.ts"
|
|
41
41
|
import { AxisConfig } from "../axis/AxisConfig"
|
|
42
42
|
import { VerticalAxis } from "../axis/Axis"
|
|
43
43
|
|
|
@@ -4,8 +4,8 @@ import { computed, makeObservable } from "mobx"
|
|
|
4
4
|
import { observer } from "mobx-react"
|
|
5
5
|
import { scaleLinear, ScaleLinear } from "d3-scale"
|
|
6
6
|
import { ChartInterface } from "../chart/ChartInterface"
|
|
7
|
-
import { SlopeChartState } from "./SlopeChartState.
|
|
8
|
-
import { type SlopeChartProps } from "./SlopeChart.
|
|
7
|
+
import { SlopeChartState } from "./SlopeChartState.ts"
|
|
8
|
+
import { type SlopeChartProps } from "./SlopeChart.tsx"
|
|
9
9
|
import {
|
|
10
10
|
PlacedSlopeChartSeries,
|
|
11
11
|
RenderSlopeChartSeries,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
DEFAULT_GRAPHER_BOUNDS,
|
|
24
24
|
GRAPHER_FONT_SCALE_12,
|
|
25
25
|
} from "../core/GrapherConstants"
|
|
26
|
-
import { Bounds, SeriesName } from "../../utils/index.
|
|
26
|
+
import { Bounds, SeriesName } from "../../utils/index.ts"
|
|
27
27
|
import { VerticalAxis } from "../axis/Axis"
|
|
28
28
|
import { Slope } from "./Slope"
|
|
29
29
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _ from "lodash-es"
|
|
2
2
|
import * as R from "remeda"
|
|
3
|
-
import { ChartState } from "../chart/ChartInterface.
|
|
4
|
-
import { ChartManager } from "../chart/ChartManager.
|
|
3
|
+
import { ChartState } from "../chart/ChartInterface.ts"
|
|
4
|
+
import { ChartManager } from "../chart/ChartManager.ts"
|
|
5
5
|
import {
|
|
6
6
|
ChartErrorInfo,
|
|
7
7
|
ColorSchemeName,
|
|
@@ -9,35 +9,35 @@ import {
|
|
|
9
9
|
MissingDataStrategy,
|
|
10
10
|
SeriesName,
|
|
11
11
|
SeriesStrategy,
|
|
12
|
-
} from "../../types/index.
|
|
12
|
+
} from "../../types/index.ts"
|
|
13
13
|
import { computed, makeObservable } from "mobx"
|
|
14
14
|
import {
|
|
15
15
|
StackedPoint,
|
|
16
16
|
StackedRawSeries,
|
|
17
17
|
StackedSeries,
|
|
18
|
-
} from "./StackedConstants.
|
|
18
|
+
} from "./StackedConstants.ts"
|
|
19
19
|
import {
|
|
20
20
|
ChartsTable,
|
|
21
21
|
CoreColumn,
|
|
22
22
|
isNotErrorValueOrEmptyCell,
|
|
23
|
-
} from "../../core-table/index.
|
|
23
|
+
} from "../../core-table/index.ts"
|
|
24
24
|
import {
|
|
25
25
|
autoDetectSeriesStrategy,
|
|
26
26
|
autoDetectYColumnSlugs,
|
|
27
27
|
getDefaultFailMessage,
|
|
28
28
|
getShortNameForEntity,
|
|
29
29
|
makeSelectionArray,
|
|
30
|
-
} from "../chart/ChartUtils.
|
|
31
|
-
import { ColorSchemes } from "../color/ColorSchemes.
|
|
32
|
-
import { SelectionArray } from "../selection/SelectionArray.
|
|
30
|
+
} from "../chart/ChartUtils.tsx"
|
|
31
|
+
import { ColorSchemes } from "../color/ColorSchemes.ts"
|
|
32
|
+
import { SelectionArray } from "../selection/SelectionArray.ts"
|
|
33
33
|
import {
|
|
34
34
|
CategoricalColorAssigner,
|
|
35
35
|
CategoricalColorMap,
|
|
36
|
-
} from "../color/CategoricalColorAssigner.
|
|
37
|
-
import { BinaryMapPaletteE } from "../color/CustomSchemes.
|
|
38
|
-
import { FocusArray } from "../focus/FocusArray.
|
|
39
|
-
import { AxisConfig } from "../axis/AxisConfig.
|
|
40
|
-
import { HorizontalAxis, VerticalAxis } from "../axis/Axis.
|
|
36
|
+
} from "../color/CategoricalColorAssigner.ts"
|
|
37
|
+
import { BinaryMapPaletteE } from "../color/CustomSchemes.ts"
|
|
38
|
+
import { FocusArray } from "../focus/FocusArray.ts"
|
|
39
|
+
import { AxisConfig } from "../axis/AxisConfig.ts"
|
|
40
|
+
import { HorizontalAxis, VerticalAxis } from "../axis/Axis.ts"
|
|
41
41
|
|
|
42
42
|
// used in StackedBar charts to color negative and positive bars
|
|
43
43
|
const POSITIVE_COLOR = BinaryMapPaletteE.colorSets[0][0] // orange
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import * as _ from "lodash-es"
|
|
3
3
|
import * as R from "remeda"
|
|
4
|
-
import { Bounds, dyFromAlign, VerticalAlign } from "../../utils/index.
|
|
4
|
+
import { Bounds, dyFromAlign, VerticalAlign } from "../../utils/index.ts"
|
|
5
5
|
import { DualAxis } from "../axis/Axis"
|
|
6
6
|
import { ColorScaleBin } from "../color/ColorScaleBin"
|
|
7
7
|
import { TooltipState } from "../tooltip/Tooltip"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeIdForHumanConsumption } from "../../utils/index.
|
|
1
|
+
import { makeIdForHumanConsumption } from "../../utils/index.ts"
|
|
2
2
|
import { DualAxis } from "../axis/Axis"
|
|
3
3
|
import {
|
|
4
4
|
Bar,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
EntityColorData,
|
|
7
7
|
MarimekkoBarProps,
|
|
8
8
|
} from "./MarimekkoChartConstants"
|
|
9
|
-
import { InteractionState } from "../interaction/InteractionState.
|
|
9
|
+
import { InteractionState } from "../interaction/InteractionState.ts"
|
|
10
10
|
import { BAR_OPACITY } from "./StackedConstants"
|
|
11
11
|
|
|
12
12
|
interface MarimekkoBarsProps {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
makeIdForHumanConsumption,
|
|
14
14
|
dyFromAlign,
|
|
15
15
|
exposeInstanceOnWindow,
|
|
16
|
-
} from "../../utils/index.
|
|
16
|
+
} from "../../utils/index.ts"
|
|
17
17
|
import { action, computed, makeObservable, observable } from "mobx"
|
|
18
18
|
import { observer } from "mobx-react"
|
|
19
19
|
import {
|
|
@@ -29,14 +29,14 @@ import {
|
|
|
29
29
|
EntityName,
|
|
30
30
|
VerticalAlign,
|
|
31
31
|
ColorScaleConfigInterface,
|
|
32
|
-
} from "../../types/index.
|
|
33
|
-
import { ChartsTable, CoreColumn } from "../../core-table/index.
|
|
32
|
+
} from "../../types/index.ts"
|
|
33
|
+
import { ChartsTable, CoreColumn } from "../../core-table/index.ts"
|
|
34
34
|
import { getShortNameForEntity } from "../chart/ChartUtils"
|
|
35
35
|
import {
|
|
36
36
|
LEGEND_STYLE_FOR_STACKED_CHARTS,
|
|
37
37
|
StackedSeries,
|
|
38
38
|
} from "./StackedConstants"
|
|
39
|
-
import { TooltipFooterIcon } from "../tooltip/TooltipProps.
|
|
39
|
+
import { TooltipFooterIcon } from "../tooltip/TooltipProps.ts"
|
|
40
40
|
import {
|
|
41
41
|
Tooltip,
|
|
42
42
|
TooltipValue,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
Bar,
|
|
68
68
|
} from "./MarimekkoChartConstants"
|
|
69
69
|
import { MarimekkoChartState } from "./MarimekkoChartState"
|
|
70
|
-
import { ChartComponentProps } from "../chart/ChartTypeMap.
|
|
70
|
+
import { ChartComponentProps } from "../chart/ChartTypeMap.tsx"
|
|
71
71
|
import { MarimekkoBars } from "./MarimekkoBars"
|
|
72
72
|
import { toPlacedMarimekkoItems } from "./MarimekkoChartHelpers"
|
|
73
73
|
|