@buildcanada/charts 0.3.4 → 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
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
Bounds,
|
|
8
8
|
EntityName,
|
|
9
9
|
ColumnSlug,
|
|
10
|
-
} from "../../utils/index
|
|
11
|
-
import { ChartsTable } from "../../core-table/index
|
|
10
|
+
} from "../../utils/index"
|
|
11
|
+
import { ChartsTable } from "../../core-table/index"
|
|
12
12
|
import { StackedPoint } from "./StackedConstants"
|
|
13
13
|
import { DualAxis } from "../axis/Axis"
|
|
14
|
-
import { InteractionState } from "../interaction/InteractionState
|
|
14
|
+
import { InteractionState } from "../interaction/InteractionState"
|
|
15
15
|
|
|
16
16
|
export interface MarimekkoChartManager extends ChartManager {
|
|
17
17
|
endTime?: Time
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
SimpleChartSeries,
|
|
13
13
|
SimplePoint,
|
|
14
14
|
} from "./MarimekkoChartConstants"
|
|
15
|
-
import { CoreColumn, ChartsTable } from "../../core-table/index
|
|
15
|
+
import { CoreColumn, ChartsTable } from "../../core-table/index"
|
|
16
16
|
import {
|
|
17
17
|
autoDetectYColumnSlugs,
|
|
18
18
|
getShortNameForEntity,
|
|
@@ -29,16 +29,16 @@ import {
|
|
|
29
29
|
SortBy,
|
|
30
30
|
SortOrder,
|
|
31
31
|
ScaleType,
|
|
32
|
-
} from "../../types/index
|
|
32
|
+
} from "../../types/index"
|
|
33
33
|
import { NO_DATA_GRAY } from "../color/ColorConstants"
|
|
34
34
|
import { StackedPoint, StackedSeries } from "./StackedConstants"
|
|
35
35
|
import { ColorScheme } from "../color/ColorScheme"
|
|
36
36
|
import { ColorSchemes } from "../color/ColorSchemes"
|
|
37
|
-
import { excludeUndefined } from "../../utils/index
|
|
37
|
+
import { excludeUndefined } from "../../utils/index"
|
|
38
38
|
import { SelectionArray } from "../selection/SelectionArray"
|
|
39
39
|
import { FocusArray } from "../focus/FocusArray"
|
|
40
|
-
import { AxisConfig } from "../axis/AxisConfig
|
|
41
|
-
import { HorizontalAxis, VerticalAxis } from "../axis/Axis
|
|
40
|
+
import { AxisConfig } from "../axis/AxisConfig"
|
|
41
|
+
import { HorizontalAxis, VerticalAxis } from "../axis/Axis"
|
|
42
42
|
|
|
43
43
|
export class MarimekkoChartState implements ChartState, ColorScaleManager {
|
|
44
44
|
manager: MarimekkoChartManager
|
|
@@ -4,9 +4,9 @@ import { computed, makeObservable } from "mobx"
|
|
|
4
4
|
import { observer } from "mobx-react"
|
|
5
5
|
import { ChartInterface } from "../chart/ChartInterface"
|
|
6
6
|
import { MarimekkoChartState } from "./MarimekkoChartState"
|
|
7
|
-
import { type MarimekkoChartProps } from "./MarimekkoChart
|
|
7
|
+
import { type MarimekkoChartProps } from "./MarimekkoChart"
|
|
8
8
|
import { MarimekkoChartManager, PlacedItem } from "./MarimekkoChartConstants"
|
|
9
|
-
import { Bounds } from "../../utils/index
|
|
9
|
+
import { Bounds } from "../../utils/index"
|
|
10
10
|
import { DualAxis, HorizontalAxis, VerticalAxis } from "../axis/Axis"
|
|
11
11
|
import { AxisConfig } from "../axis/AxisConfig"
|
|
12
12
|
import {
|
|
@@ -5,8 +5,8 @@ import * as R from "remeda"
|
|
|
5
5
|
import { computed, makeObservable } from "mobx"
|
|
6
6
|
import { Bar, BarShape, PlacedItem } from "./MarimekkoChartConstants"
|
|
7
7
|
import { DualAxis } from "../axis/Axis"
|
|
8
|
-
import { Bounds } from "../../utils/index
|
|
9
|
-
import { Halo } from "../../components/index
|
|
8
|
+
import { Bounds } from "../../utils/index"
|
|
9
|
+
import { Halo } from "../../components/index"
|
|
10
10
|
|
|
11
11
|
interface MarimekkoInternalLabelsProps {
|
|
12
12
|
items: PlacedItem[]
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
Bounds,
|
|
9
9
|
guid,
|
|
10
10
|
exposeInstanceOnWindow,
|
|
11
|
-
} from "../../utils/index
|
|
11
|
+
} from "../../utils/index"
|
|
12
12
|
import { computed, action, observable, makeObservable } from "mobx"
|
|
13
|
-
import { SeriesName, SeriesStrategy } from "../../types/index
|
|
13
|
+
import { SeriesName, SeriesStrategy } from "../../types/index"
|
|
14
14
|
import {
|
|
15
15
|
BASE_FONT_SIZE,
|
|
16
16
|
DEFAULT_GRAPHER_BOUNDS,
|
|
@@ -20,7 +20,7 @@ import { DualAxisComponent } from "../axis/AxisViews"
|
|
|
20
20
|
import { DualAxis, HorizontalAxis, VerticalAxis } from "../axis/Axis"
|
|
21
21
|
import { LineLegend } from "../lineLegend/LineLegend"
|
|
22
22
|
import { NoDataModal } from "../noDataModal/NoDataModal"
|
|
23
|
-
import { TooltipFooterIcon } from "../tooltip/TooltipProps
|
|
23
|
+
import { TooltipFooterIcon } from "../tooltip/TooltipProps"
|
|
24
24
|
import {
|
|
25
25
|
Tooltip,
|
|
26
26
|
TooltipState,
|
|
@@ -28,14 +28,14 @@ import {
|
|
|
28
28
|
makeTooltipRoundingNotice,
|
|
29
29
|
toTooltipTableColumns,
|
|
30
30
|
} from "../tooltip/Tooltip"
|
|
31
|
-
import { StackedAreaChartState } from "./StackedAreaChartState
|
|
31
|
+
import { StackedAreaChartState } from "./StackedAreaChartState"
|
|
32
32
|
import { AREA_OPACITY, StackedSeries } from "./StackedConstants"
|
|
33
33
|
import {
|
|
34
34
|
makeClipPath,
|
|
35
35
|
isTargetOutsideElement,
|
|
36
36
|
getHoverStateForSeries,
|
|
37
37
|
} from "../chart/ChartUtils"
|
|
38
|
-
import { AxisConfig, AxisManager } from "../axis/AxisConfig
|
|
38
|
+
import { AxisConfig, AxisManager } from "../axis/AxisConfig"
|
|
39
39
|
import { LineLabelSeries } from "../lineLegend/LineLegendTypes"
|
|
40
40
|
import { easeLinear } from "d3-ease"
|
|
41
41
|
import { select, type BaseType, type Selection } from "d3-selection"
|
|
@@ -44,7 +44,7 @@ import { ChartManager } from "../chart/ChartManager"
|
|
|
44
44
|
import { StackedAreas } from "./StackedAreas"
|
|
45
45
|
import { HorizontalColorLegendManager } from "../legend/HorizontalColorLegends"
|
|
46
46
|
import { CategoricalBin } from "../color/ColorScaleBin"
|
|
47
|
-
import { ChartComponentProps } from "../chart/ChartTypeMap
|
|
47
|
+
import { ChartComponentProps } from "../chart/ChartTypeMap"
|
|
48
48
|
import { InteractionState } from "../interaction/InteractionState"
|
|
49
49
|
import { resolveCollision } from "./StackedUtils"
|
|
50
50
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _ from "lodash-es"
|
|
2
2
|
import { computed, makeObservable } from "mobx"
|
|
3
|
-
import { AbstractStackedChartState } from "./AbstractStackedChartState
|
|
4
|
-
import { ChartState } from "../chart/ChartInterface
|
|
5
|
-
import { StackedSeries } from "./StackedConstants
|
|
6
|
-
import { stackSeries, withMissingValuesAsZeroes } from "./StackedUtils
|
|
7
|
-
import { ChartManager } from "../chart/ChartManager
|
|
3
|
+
import { AbstractStackedChartState } from "./AbstractStackedChartState"
|
|
4
|
+
import { ChartState } from "../chart/ChartInterface"
|
|
5
|
+
import { StackedSeries } from "./StackedConstants"
|
|
6
|
+
import { stackSeries, withMissingValuesAsZeroes } from "./StackedUtils"
|
|
7
|
+
import { ChartManager } from "../chart/ChartManager"
|
|
8
8
|
|
|
9
9
|
export class StackedAreaChartState
|
|
10
10
|
extends AbstractStackedChartState
|
|
@@ -3,9 +3,9 @@ import React from "react"
|
|
|
3
3
|
import { computed, makeObservable } from "mobx"
|
|
4
4
|
import { observer } from "mobx-react"
|
|
5
5
|
import { ChartInterface } from "../chart/ChartInterface"
|
|
6
|
-
import { StackedAreaChartState } from "./StackedAreaChartState
|
|
7
|
-
import { type StackedAreaChartProps } from "./StackedAreaChart
|
|
8
|
-
import { Bounds, excludeUndefined } from "../../utils/index
|
|
6
|
+
import { StackedAreaChartState } from "./StackedAreaChartState"
|
|
7
|
+
import { type StackedAreaChartProps } from "./StackedAreaChart"
|
|
8
|
+
import { Bounds, excludeUndefined } from "../../utils/index"
|
|
9
9
|
import {
|
|
10
10
|
BASE_FONT_SIZE,
|
|
11
11
|
DEFAULT_GRAPHER_BOUNDS,
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
lastOfNonEmptyArray,
|
|
8
8
|
makeIdForHumanConsumption,
|
|
9
9
|
bind,
|
|
10
|
-
} from "../../utils/index
|
|
10
|
+
} from "../../utils/index"
|
|
11
11
|
import { computed, makeObservable } from "mobx"
|
|
12
|
-
import { SeriesName } from "../../types/index
|
|
12
|
+
import { SeriesName } from "../../types/index"
|
|
13
13
|
import { observer } from "mobx-react"
|
|
14
14
|
import { DualAxis } from "../axis/Axis"
|
|
15
15
|
import { rgb } from "d3-color"
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
makeIdForHumanConsumption,
|
|
11
11
|
guid,
|
|
12
12
|
exposeInstanceOnWindow,
|
|
13
|
-
} from "../../utils/index
|
|
13
|
+
} from "../../utils/index"
|
|
14
14
|
import { DualAxisComponent } from "../axis/AxisViews"
|
|
15
15
|
import { NoDataModal } from "../noDataModal/NoDataModal"
|
|
16
16
|
import {
|
|
17
17
|
VerticalColorLegend,
|
|
18
18
|
VerticalColorLegendManager,
|
|
19
19
|
} from "../legend/VerticalColorLegend"
|
|
20
|
-
import { TooltipFooterIcon } from "../tooltip/TooltipProps
|
|
20
|
+
import { TooltipFooterIcon } from "../tooltip/TooltipProps"
|
|
21
21
|
import {
|
|
22
22
|
Tooltip,
|
|
23
23
|
TooltipState,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
BASE_FONT_SIZE,
|
|
30
30
|
DEFAULT_GRAPHER_BOUNDS,
|
|
31
31
|
} from "../core/GrapherConstants"
|
|
32
|
-
import { StackedBarChartState } from "./StackedBarChartState
|
|
32
|
+
import { StackedBarChartState } from "./StackedBarChartState"
|
|
33
33
|
import {
|
|
34
34
|
BAR_OPACITY,
|
|
35
35
|
LEGEND_STYLE_FOR_STACKED_CHARTS,
|
|
@@ -38,19 +38,19 @@ import {
|
|
|
38
38
|
} from "./StackedConstants"
|
|
39
39
|
import { LegendInteractionState } from "../legend/LegendInteractionState"
|
|
40
40
|
import { DualAxis, HorizontalAxis, VerticalAxis } from "../axis/Axis"
|
|
41
|
-
import { HorizontalAlign, SeriesName } from "../../types/index
|
|
41
|
+
import { HorizontalAlign, SeriesName } from "../../types/index"
|
|
42
42
|
import { makeClipPath } from "../chart/ChartUtils"
|
|
43
43
|
import {
|
|
44
44
|
HorizontalCategoricalColorLegend,
|
|
45
45
|
HorizontalColorLegendManager,
|
|
46
46
|
} from "../legend/HorizontalColorLegends"
|
|
47
47
|
import { CategoricalBin, ColorScaleBin } from "../color/ColorScaleBin"
|
|
48
|
-
import { AxisConfig, AxisManager } from "../axis/AxisConfig
|
|
48
|
+
import { AxisConfig, AxisManager } from "../axis/AxisConfig"
|
|
49
49
|
import { easeLinear } from "d3-ease"
|
|
50
50
|
import { select, type BaseType, type Selection } from "d3-selection"
|
|
51
51
|
import { ChartInterface } from "../chart/ChartInterface"
|
|
52
52
|
import { ChartManager } from "../chart/ChartManager"
|
|
53
|
-
import { ChartComponentProps } from "../chart/ChartTypeMap
|
|
53
|
+
import { ChartComponentProps } from "../chart/ChartTypeMap"
|
|
54
54
|
import { StackedBars } from "./StackedBars"
|
|
55
55
|
import { getXAxisConfigDefaultsForStackedBar } from "./StackedUtils"
|
|
56
56
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as _ from "lodash-es"
|
|
2
2
|
import { computed, makeObservable } from "mobx"
|
|
3
|
-
import { AbstractStackedChartState } from "./AbstractStackedChartState
|
|
4
|
-
import { ChartState } from "../chart/ChartInterface
|
|
5
|
-
import { StackedSeries } from "./StackedConstants
|
|
6
|
-
import { ColumnTypeMap } from "../../core-table/index
|
|
3
|
+
import { AbstractStackedChartState } from "./AbstractStackedChartState"
|
|
4
|
+
import { ChartState } from "../chart/ChartInterface"
|
|
5
|
+
import { StackedSeries } from "./StackedConstants"
|
|
6
|
+
import { ColumnTypeMap } from "../../core-table/index"
|
|
7
7
|
import {
|
|
8
8
|
stackSeriesInBothDirections,
|
|
9
9
|
withMissingValuesAsZeroes,
|
|
10
|
-
} from "./StackedUtils
|
|
11
|
-
import { ColorScaleManager } from "../color/ColorScale
|
|
10
|
+
} from "./StackedUtils"
|
|
11
|
+
import { ColorScaleManager } from "../color/ColorScale"
|
|
12
12
|
import {
|
|
13
13
|
ColorScaleConfigInterface,
|
|
14
14
|
ColorSchemeName,
|
|
15
|
-
} from "../../types/index
|
|
16
|
-
import { ChartManager } from "../chart/ChartManager
|
|
15
|
+
} from "../../types/index"
|
|
16
|
+
import { ChartManager } from "../chart/ChartManager"
|
|
17
17
|
|
|
18
18
|
export class StackedBarChartState
|
|
19
19
|
extends AbstractStackedChartState
|
|
@@ -3,15 +3,15 @@ import React from "react"
|
|
|
3
3
|
import { computed, makeObservable } from "mobx"
|
|
4
4
|
import { observer } from "mobx-react"
|
|
5
5
|
import { ChartInterface } from "../chart/ChartInterface"
|
|
6
|
-
import { StackedBarChartState } from "./StackedBarChartState
|
|
7
|
-
import { type StackedBarChartProps } from "./StackedBarChart
|
|
6
|
+
import { StackedBarChartState } from "./StackedBarChartState"
|
|
7
|
+
import { type StackedBarChartProps } from "./StackedBarChart"
|
|
8
8
|
import { ChartManager } from "../chart/ChartManager"
|
|
9
9
|
import {
|
|
10
10
|
BASE_FONT_SIZE,
|
|
11
11
|
DEFAULT_GRAPHER_BOUNDS,
|
|
12
12
|
GRAPHER_FONT_SCALE_12,
|
|
13
13
|
} from "../core/GrapherConstants"
|
|
14
|
-
import { Bounds, excludeUndefined } from "../../utils/index
|
|
14
|
+
import { Bounds, excludeUndefined } from "../../utils/index"
|
|
15
15
|
import { AxisConfig, AxisManager } from "../axis/AxisConfig"
|
|
16
16
|
import { DualAxis, HorizontalAxis, VerticalAxis } from "../axis/Axis"
|
|
17
17
|
import {
|
|
@@ -2,7 +2,7 @@ import * as _ from "lodash-es"
|
|
|
2
2
|
import * as React from "react"
|
|
3
3
|
import { computed, action, observable, makeObservable } from "mobx"
|
|
4
4
|
import { observer } from "mobx-react"
|
|
5
|
-
import { Time } from "../../utils/index
|
|
5
|
+
import { Time } from "../../utils/index"
|
|
6
6
|
import { BAR_OPACITY, StackedPoint, StackedSeries } from "./StackedConstants"
|
|
7
7
|
import { VerticalAxis } from "../axis/Axis"
|
|
8
8
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import { makeObservable } from "mobx"
|
|
3
3
|
import { observer } from "mobx-react"
|
|
4
|
-
import { SeriesName, Time } from "../../types/index
|
|
4
|
+
import { SeriesName, Time } from "../../types/index"
|
|
5
5
|
import { DualAxis } from "../axis/Axis"
|
|
6
6
|
import { BAR_OPACITY, StackedPoint, StackedSeries } from "./StackedConstants"
|
|
7
7
|
import {
|
|
8
8
|
makeIdForHumanConsumption,
|
|
9
9
|
makeSafeForCSS,
|
|
10
|
-
} from "../../utils/index
|
|
10
|
+
} from "../../utils/index"
|
|
11
11
|
import { StackedBarSegment } from "./StackedBarSegment"
|
|
12
|
-
import { CoreColumn } from "../../core-table/index
|
|
12
|
+
import { CoreColumn } from "../../core-table/index"
|
|
13
13
|
|
|
14
14
|
interface StackedBarsProps {
|
|
15
15
|
dualAxis: DualAxis
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
EntityName,
|
|
4
4
|
VariableRow,
|
|
5
5
|
SeriesName,
|
|
6
|
-
} from "../../types/index
|
|
6
|
+
} from "../../types/index"
|
|
7
7
|
import { ChartSeries } from "../chart/ChartInterface"
|
|
8
8
|
import {
|
|
9
9
|
GRAPHER_AREA_OPACITY_DEFAULT,
|
|
10
10
|
GRAPHER_AREA_OPACITY_FOCUS,
|
|
11
11
|
GRAPHER_AREA_OPACITY_MUTE,
|
|
12
12
|
} from "../core/GrapherConstants"
|
|
13
|
-
import { TextWrap } from "../../components/index
|
|
14
|
-
import { InteractionState } from "../interaction/InteractionState
|
|
13
|
+
import { TextWrap } from "../../components/index"
|
|
14
|
+
import { InteractionState } from "../interaction/InteractionState"
|
|
15
15
|
import { LegendStyleConfig } from "../legend/LegendInteractionState"
|
|
16
16
|
|
|
17
17
|
export const AREA_OPACITY = {
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
EntityName,
|
|
9
9
|
getRelativeMouse,
|
|
10
10
|
exposeInstanceOnWindow,
|
|
11
|
-
} from "../../utils/index
|
|
11
|
+
} from "../../utils/index"
|
|
12
12
|
import { action, computed, makeObservable, observable } from "mobx"
|
|
13
13
|
import { observer } from "mobx-react"
|
|
14
|
-
import { SeriesName } from "../../types/index
|
|
14
|
+
import { SeriesName } from "../../types/index"
|
|
15
15
|
import {
|
|
16
16
|
BASE_FONT_SIZE,
|
|
17
17
|
DEFAULT_GRAPHER_BOUNDS,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
import { CategoricalBin, ColorScaleBin } from "../color/ColorScaleBin"
|
|
32
32
|
import { LegendInteractionState } from "../legend/LegendInteractionState"
|
|
33
33
|
import { StackedDiscreteBarChartState } from "./StackedDiscreteBarChartState"
|
|
34
|
-
import { ChartComponentProps } from "../chart/ChartTypeMap
|
|
34
|
+
import { ChartComponentProps } from "../chart/ChartTypeMap"
|
|
35
35
|
import { StackedDiscreteBars } from "./StackedDiscreteBars"
|
|
36
36
|
|
|
37
37
|
export interface StackedDiscreteBarChartManager extends ChartManager {
|
|
@@ -2,7 +2,7 @@ import * as _ from "lodash-es"
|
|
|
2
2
|
import { computed, makeObservable } from "mobx"
|
|
3
3
|
import { ChartState } from "../chart/ChartInterface"
|
|
4
4
|
import { StackedDiscreteBarChartManager } from "./StackedDiscreteBarChart"
|
|
5
|
-
import { CoreColumn, ChartsTable } from "../../core-table/index
|
|
5
|
+
import { CoreColumn, ChartsTable } from "../../core-table/index"
|
|
6
6
|
import {
|
|
7
7
|
ChartErrorInfo,
|
|
8
8
|
ColorSchemeName,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
SortBy,
|
|
13
13
|
SortConfig,
|
|
14
14
|
SortOrder,
|
|
15
|
-
} from "../../types/index
|
|
15
|
+
} from "../../types/index"
|
|
16
16
|
import {
|
|
17
17
|
autoDetectYColumnSlugs,
|
|
18
18
|
getDefaultFailMessage,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import { CategoricalColorAssigner } from "../color/CategoricalColorAssigner"
|
|
29
29
|
import { ColorScheme } from "../color/ColorScheme"
|
|
30
30
|
import { ColorSchemes } from "../color/ColorSchemes"
|
|
31
|
-
import { excludeUndefined } from "../../utils/index
|
|
31
|
+
import { excludeUndefined } from "../../utils/index"
|
|
32
32
|
import { FocusArray } from "../focus/FocusArray"
|
|
33
33
|
|
|
34
34
|
export class StackedDiscreteBarChartState implements ChartState {
|
|
@@ -3,7 +3,7 @@ import { computed, makeObservable } from "mobx"
|
|
|
3
3
|
import { observer } from "mobx-react"
|
|
4
4
|
import { ChartInterface } from "../chart/ChartInterface"
|
|
5
5
|
import { StackedDiscreteBarChartState } from "./StackedDiscreteBarChartState"
|
|
6
|
-
import { ChartComponentProps } from "../chart/ChartTypeMap
|
|
6
|
+
import { ChartComponentProps } from "../chart/ChartTypeMap"
|
|
7
7
|
import { StackedDiscreteBars } from "./StackedDiscreteBars"
|
|
8
8
|
|
|
9
9
|
@observer
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
dyFromAlign,
|
|
12
12
|
exposeInstanceOnWindow,
|
|
13
13
|
bind,
|
|
14
|
-
} from "../../utils/index
|
|
14
|
+
} from "../../utils/index"
|
|
15
15
|
import { action, computed, makeObservable } from "mobx"
|
|
16
16
|
import { observer } from "mobx-react"
|
|
17
|
-
import { ScaleType, SeriesName, VerticalAlign } from "../../types/index
|
|
17
|
+
import { ScaleType, SeriesName, VerticalAlign } from "../../types/index"
|
|
18
18
|
import {
|
|
19
19
|
BASE_FONT_SIZE,
|
|
20
20
|
DEFAULT_GRAPHER_BOUNDS,
|
|
@@ -28,9 +28,9 @@ import {
|
|
|
28
28
|
} from "../axis/AxisViews"
|
|
29
29
|
import { AxisConfig } from "../axis/AxisConfig"
|
|
30
30
|
import { ChartInterface } from "../chart/ChartInterface"
|
|
31
|
-
import { ChartsTable, CoreColumn } from "../../core-table/index
|
|
31
|
+
import { ChartsTable, CoreColumn } from "../../core-table/index"
|
|
32
32
|
import { ChartManager } from "../chart/ChartManager"
|
|
33
|
-
import { TooltipFooterIcon } from "../tooltip/TooltipProps
|
|
33
|
+
import { TooltipFooterIcon } from "../tooltip/TooltipProps"
|
|
34
34
|
import {
|
|
35
35
|
Tooltip,
|
|
36
36
|
TooltipState,
|
|
@@ -52,7 +52,7 @@ import { HorizontalAxis } from "../axis/Axis"
|
|
|
52
52
|
import { HashMap, NodeGroup } from "react-move"
|
|
53
53
|
import { easeQuadOut } from "d3-ease"
|
|
54
54
|
import { StackedDiscreteBarChartState } from "./StackedDiscreteBarChartState"
|
|
55
|
-
import { enrichSeriesWithLabels } from "../barCharts/DiscreteBarChartHelpers
|
|
55
|
+
import { enrichSeriesWithLabels } from "../barCharts/DiscreteBarChartHelpers"
|
|
56
56
|
|
|
57
57
|
const BAR_SPACING_FACTOR = 0.35
|
|
58
58
|
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
rollingMap,
|
|
8
8
|
omitUndefinedValues,
|
|
9
9
|
AxisConfigInterface,
|
|
10
|
-
} from "../../utils/index
|
|
10
|
+
} from "../../utils/index"
|
|
11
11
|
import { StackedPointPositionType, StackedSeries } from "./StackedConstants"
|
|
12
|
-
import { StackedBarChartState } from "./StackedBarChartState
|
|
12
|
+
import { StackedBarChartState } from "./StackedBarChartState"
|
|
13
13
|
|
|
14
14
|
// This method shift up the Y Values of a Series with Points in place.
|
|
15
15
|
export const stackSeries = <PositionType extends StackedPointPositionType>(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DimensionProperty } from "../../utils/index
|
|
1
|
+
import { DimensionProperty } from "../../utils/index"
|
|
2
2
|
import { GrapherProgrammaticInterface } from "../core/Grapher"
|
|
3
3
|
import { GrapherState } from "../core/GrapherState"
|
|
4
4
|
import {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
createTestDataset,
|
|
8
8
|
fakeEntities,
|
|
9
9
|
} from "../testData/TestData"
|
|
10
|
-
import { legacyToChartsTableAndDimensionsWithMandatorySlug } from "../core/LegacyToChartsTable
|
|
10
|
+
import { legacyToChartsTableAndDimensionsWithMandatorySlug } from "../core/LegacyToChartsTable"
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Comprehensive life expectancy test data covering:
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as _ from "lodash-es"
|
|
2
|
-
import { Region, regions } from "../../utils/index
|
|
2
|
+
import { Region, regions } from "../../utils/index"
|
|
3
3
|
import {
|
|
4
4
|
MultipleVariableDataDimensionsMap,
|
|
5
5
|
VariableWithSource,
|
|
6
6
|
EntityCode,
|
|
7
7
|
EntityId,
|
|
8
8
|
EntityName,
|
|
9
|
-
} from "../../types/index
|
|
9
|
+
} from "../../types/index"
|
|
10
10
|
|
|
11
11
|
type Entity = { id: EntityId; code?: EntityCode; name?: EntityName }
|
|
12
12
|
type TestDatum = { year: number; entity: Entity; value: string | number }
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
Bounds,
|
|
9
9
|
Time,
|
|
10
10
|
Tippy,
|
|
11
|
-
} from "../../utils/index
|
|
11
|
+
} from "../../utils/index"
|
|
12
12
|
import { observable, computed, action, makeObservable } from "mobx"
|
|
13
13
|
import { observer } from "mobx-react"
|
|
14
14
|
import { faPlay, faPause } from "@fortawesome/free-solid-svg-icons"
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
DEFAULT_GRAPHER_BOUNDS,
|
|
23
23
|
GRAPHER_FRAME_PADDING_HORIZONTAL,
|
|
24
24
|
GRAPHER_TIMELINE_CLASS,
|
|
25
|
-
} from "../core/GrapherConstants
|
|
25
|
+
} from "../core/GrapherConstants"
|
|
26
26
|
|
|
27
27
|
export const TIMELINE_HEIGHT = 32 // Keep in sync with $timelineHeight in TimelineComponent.scss
|
|
28
28
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as R from "remeda"
|
|
2
|
-
import { Time } from "../../types/index
|
|
2
|
+
import { Time } from "../../types/index"
|
|
3
3
|
import {
|
|
4
4
|
TimeBound,
|
|
5
5
|
TimeBoundValue,
|
|
6
6
|
sleep,
|
|
7
7
|
findClosestTime,
|
|
8
|
-
} from "../../utils/index
|
|
8
|
+
} from "../../utils/index"
|
|
9
9
|
import { action } from "mobx"
|
|
10
10
|
|
|
11
11
|
export type TimelineDragTarget = "start" | "end" | "both"
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
Bounds,
|
|
10
10
|
GrapherTooltipAnchor,
|
|
11
11
|
stripOuterParentheses,
|
|
12
|
-
} from "../../utils/index
|
|
12
|
+
} from "../../utils/index"
|
|
13
13
|
import {
|
|
14
14
|
TooltipProps,
|
|
15
15
|
TooltipManager,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
TooltipContext,
|
|
18
18
|
TooltipFooterIcon,
|
|
19
19
|
} from "./TooltipProps"
|
|
20
|
-
import { SignificanceIcon } from "./TooltipContents
|
|
20
|
+
import { SignificanceIcon } from "./TooltipContents"
|
|
21
21
|
|
|
22
|
-
export * from "./TooltipContents
|
|
23
|
-
export { TooltipState } from "./TooltipState
|
|
22
|
+
export * from "./TooltipContents"
|
|
23
|
+
export { TooltipState } from "./TooltipState"
|
|
24
24
|
|
|
25
25
|
export class TooltipCard extends React.Component<
|
|
26
26
|
TooltipProps & TooltipContainerProps
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _ from "lodash-es"
|
|
2
2
|
import * as React from "react"
|
|
3
3
|
import classnames from "classnames"
|
|
4
|
-
import { NO_DATA_LABEL } from "../color/ColorScale
|
|
4
|
+
import { NO_DATA_LABEL } from "../color/ColorScale"
|
|
5
5
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
|
|
6
6
|
import { faInfoCircle, faS } from "@fortawesome/free-solid-svg-icons"
|
|
7
|
-
import { formatInlineList, GrapherTooltipAnchor } from "../../utils/index
|
|
8
|
-
import { GrapherTrendArrow } from "../../components/index
|
|
7
|
+
import { formatInlineList, GrapherTooltipAnchor } from "../../utils/index"
|
|
8
|
+
import { GrapherTrendArrow } from "../../components/index"
|
|
9
9
|
import {
|
|
10
10
|
TooltipValueProps,
|
|
11
11
|
TooltipValueRangeProps,
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
TooltipTableProps,
|
|
14
14
|
TooltipVariableProps,
|
|
15
15
|
} from "./TooltipProps"
|
|
16
|
-
import { makeAxisLabel } from "../chart/ChartUtils
|
|
16
|
+
import { makeAxisLabel } from "../chart/ChartUtils"
|
|
17
17
|
import * as R from "remeda"
|
|
18
|
-
import { CoreColumn } from "../../core-table/index
|
|
18
|
+
import { CoreColumn } from "../../core-table/index"
|
|
19
19
|
|
|
20
20
|
type TooltipValue = number | string | undefined
|
|
21
21
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { observable, computed, action, makeObservable } from "mobx"
|
|
2
|
-
import { PointVector } from "../../utils/index
|
|
2
|
+
import { PointVector } from "../../utils/index"
|
|
3
3
|
import { TooltipFadeMode } from "./TooltipProps"
|
|
4
4
|
|
|
5
5
|
const TOOLTIP_FADE_DURATION = 400 // $fade-time + $fade-delay in scss
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { VerticalAxis } from "../axis/Axis"
|
|
3
3
|
import { VerticalLabelsState } from "./VerticalLabelsState"
|
|
4
|
-
import { darkenColorForText } from "../color/ColorUtils
|
|
4
|
+
import { darkenColorForText } from "../color/ColorUtils"
|
|
5
5
|
|
|
6
6
|
export function VerticalLabels({
|
|
7
7
|
state,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as R from "remeda"
|
|
2
2
|
import { computed } from "mobx"
|
|
3
|
-
import { Bounds, RequiredBy, VerticalAlign } from "../../utils/index
|
|
4
|
-
import { TextWrap } from "../../components/index
|
|
3
|
+
import { Bounds, RequiredBy, VerticalAlign } from "../../utils/index"
|
|
4
|
+
import { TextWrap } from "../../components/index"
|
|
5
5
|
|
|
6
6
|
interface VerticalLabelsOptions {
|
|
7
7
|
/** Font size for the labels */
|