@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
|
@@ -11,19 +11,19 @@ import {
|
|
|
11
11
|
GrapherInterface,
|
|
12
12
|
AxisMinMaxValueStr,
|
|
13
13
|
GrapherChartType,
|
|
14
|
-
} from "../types/index
|
|
14
|
+
} from "../types/index"
|
|
15
15
|
import {
|
|
16
16
|
CoreTable,
|
|
17
17
|
ChartsTable,
|
|
18
18
|
isNotErrorValue,
|
|
19
|
-
} from "../core-table/index
|
|
19
|
+
} from "../core-table/index"
|
|
20
20
|
import {
|
|
21
21
|
GitCommit,
|
|
22
22
|
PromiseCache,
|
|
23
23
|
SerializedGridProgram,
|
|
24
24
|
trimObject,
|
|
25
25
|
fetchWithRetry,
|
|
26
|
-
} from "../utils/index
|
|
26
|
+
} from "../utils/index"
|
|
27
27
|
import {
|
|
28
28
|
CellDef,
|
|
29
29
|
Grammar,
|
|
@@ -31,19 +31,19 @@ import {
|
|
|
31
31
|
GRID_CELL_DELIMITER,
|
|
32
32
|
GRID_NODE_DELIMITER,
|
|
33
33
|
RootKeywordCellDef,
|
|
34
|
-
} from "./gridLang/GridLangConstants
|
|
35
|
-
import { GridProgram } from "./gridLang/GridProgram
|
|
36
|
-
import { ColumnGrammar } from "./ColumnGrammar
|
|
34
|
+
} from "./gridLang/GridLangConstants"
|
|
35
|
+
import { GridProgram } from "./gridLang/GridProgram"
|
|
36
|
+
import { ColumnGrammar } from "./ColumnGrammar"
|
|
37
37
|
import {
|
|
38
38
|
DefaultNewExplorerSlug,
|
|
39
39
|
ExplorerChartCreationMode,
|
|
40
40
|
ExplorerChoiceParams,
|
|
41
41
|
EXPLORERS_ROUTE_FOLDER,
|
|
42
|
-
} from "./ExplorerConstants
|
|
43
|
-
import { DecisionMatrix } from "./ExplorerDecisionMatrix
|
|
44
|
-
import { ExplorerGrammar } from "./ExplorerGrammar
|
|
45
|
-
import { GrapherGrammar } from "./GrapherGrammar
|
|
46
|
-
import { latestGrapherConfigSchema } from "../grapher/index
|
|
42
|
+
} from "./ExplorerConstants"
|
|
43
|
+
import { DecisionMatrix } from "./ExplorerDecisionMatrix"
|
|
44
|
+
import { ExplorerGrammar } from "./ExplorerGrammar"
|
|
45
|
+
import { GrapherGrammar } from "./GrapherGrammar"
|
|
46
|
+
import { latestGrapherConfigSchema } from "../grapher/index"
|
|
47
47
|
|
|
48
48
|
export const EXPLORER_FILE_SUFFIX = ".explorer.tsv"
|
|
49
49
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as _ from "lodash-es"
|
|
2
|
-
import { SelectionArray } from "../grapher/index
|
|
3
|
-
import { Bounds, deserializeJSONFromHTML } from "../utils/index
|
|
2
|
+
import { SelectionArray } from "../grapher/index"
|
|
3
|
+
import { Bounds, deserializeJSONFromHTML } from "../utils/index"
|
|
4
4
|
import {
|
|
5
5
|
EMBEDDED_EXPLORER_DELIMITER,
|
|
6
6
|
EMBEDDED_EXPLORER_GRAPHER_CONFIGS,
|
|
7
7
|
EMBEDDED_EXPLORER_PARTIAL_GRAPHER_CONFIGS,
|
|
8
8
|
EXPLORER_CONSTANTS_DELIMITER,
|
|
9
|
-
} from "./ExplorerConstants
|
|
10
|
-
import { ExplorerProps } from "./Explorer
|
|
9
|
+
} from "./ExplorerConstants"
|
|
10
|
+
import { ExplorerProps } from "./Explorer"
|
|
11
11
|
|
|
12
12
|
export async function buildExplorerProps(
|
|
13
13
|
html: string,
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
GrapherChartType,
|
|
9
9
|
MissingDataStrategy,
|
|
10
10
|
StackMode,
|
|
11
|
-
} from "../types/index
|
|
12
|
-
import { SortBy, SortOrder } from "../utils/index
|
|
11
|
+
} from "../types/index"
|
|
12
|
+
import { SortBy, SortOrder } from "../utils/index"
|
|
13
13
|
import {
|
|
14
14
|
GridBoolean,
|
|
15
15
|
BooleanCellDef,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
IndicatorIdOrEtlPathCellDef,
|
|
27
27
|
SlugOrIndicatorIdOrEtlPathCellDef,
|
|
28
28
|
GrapherCellDef,
|
|
29
|
-
} from "./gridLang/GridLangConstants
|
|
29
|
+
} from "./gridLang/GridLangConstants"
|
|
30
30
|
import * as R from "remeda"
|
|
31
31
|
const toTerminalOptions = (keywords: string[]): CellDef[] => {
|
|
32
32
|
return keywords.map((keyword) => ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { trimArray } from "../../core-table/index
|
|
2
|
-
import { imemo, isPresent } from "../../utils/index
|
|
1
|
+
import { trimArray } from "../../core-table/index"
|
|
2
|
+
import { imemo, isPresent } from "../../utils/index"
|
|
3
3
|
|
|
4
|
-
import { didYouMean, isBlankLine, isEmpty } from "./GrammarUtils
|
|
4
|
+
import { didYouMean, isBlankLine, isEmpty } from "./GrammarUtils"
|
|
5
5
|
import {
|
|
6
6
|
CellPosition,
|
|
7
7
|
CellDef,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
SubTableValueCellDef,
|
|
16
16
|
WorkInProgressCellDef,
|
|
17
17
|
NothingGoesThereCellDef,
|
|
18
|
-
} from "./GridLangConstants
|
|
18
|
+
} from "./GridLangConstants"
|
|
19
19
|
|
|
20
20
|
export class GridCell implements ParsedCell {
|
|
21
21
|
private position: CellPosition
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { trimMatrix } from "../../core-table/index
|
|
1
|
+
import { trimMatrix } from "../../core-table/index"
|
|
2
2
|
import {
|
|
3
3
|
isPresent,
|
|
4
4
|
GitCommit,
|
|
5
5
|
SerializedGridProgram,
|
|
6
|
-
} from "../../utils/index
|
|
6
|
+
} from "../../utils/index"
|
|
7
7
|
|
|
8
|
-
import { GridCell } from "./GridCell
|
|
8
|
+
import { GridCell } from "./GridCell"
|
|
9
9
|
import {
|
|
10
10
|
CellDef,
|
|
11
11
|
CellPosition,
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
GRID_NODE_DELIMITER,
|
|
15
15
|
Origin,
|
|
16
16
|
ParsedCell,
|
|
17
|
-
} from "./GridLangConstants
|
|
18
|
-
import { tsvToMatrix } from "./GrammarUtils
|
|
17
|
+
} from "./GridLangConstants"
|
|
18
|
+
import { tsvToMatrix } from "./GrammarUtils"
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Block location for the below would be like (numRows = 2)
|
package/src/explorer/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { Explorer, type ExplorerProps } from "./Explorer
|
|
1
|
+
export { Explorer, type ExplorerProps } from "./Explorer"
|
|
2
2
|
|
|
3
|
-
export { buildExplorerProps } from "./ExplorerUtils
|
|
3
|
+
export { buildExplorerProps } from "./ExplorerUtils"
|
|
4
4
|
|
|
5
5
|
export {
|
|
6
6
|
DefaultNewExplorerSlug,
|
|
@@ -29,7 +29,7 @@ export {
|
|
|
29
29
|
type ExplorerStandardQueryParams,
|
|
30
30
|
UNSAVED_EXPLORER_DRAFT,
|
|
31
31
|
UNSAVED_EXPLORER_PREVIEW_QUERYPARAMS,
|
|
32
|
-
} from "./ExplorerConstants
|
|
32
|
+
} from "./ExplorerConstants"
|
|
33
33
|
|
|
34
34
|
export {
|
|
35
35
|
type TableDef,
|
|
@@ -37,33 +37,33 @@ export {
|
|
|
37
37
|
EXPLORER_FILE_SUFFIX,
|
|
38
38
|
makeFullPath,
|
|
39
39
|
type ExplorerGrapherInterface,
|
|
40
|
-
} from "./ExplorerProgram
|
|
40
|
+
} from "./ExplorerProgram"
|
|
41
41
|
|
|
42
|
-
export { type ExplorerPageUrlMigrationSpec } from "./urlMigrations/ExplorerPageUrlMigrationSpec
|
|
42
|
+
export { type ExplorerPageUrlMigrationSpec } from "./urlMigrations/ExplorerPageUrlMigrationSpec"
|
|
43
43
|
|
|
44
44
|
export {
|
|
45
45
|
explorerUrlMigrationsById,
|
|
46
46
|
migrateExplorerUrl,
|
|
47
|
-
} from "./urlMigrations/ExplorerUrlMigrations
|
|
47
|
+
} from "./urlMigrations/ExplorerUrlMigrations"
|
|
48
48
|
|
|
49
|
-
export { isEmpty } from "./gridLang/GrammarUtils
|
|
49
|
+
export { isEmpty } from "./gridLang/GrammarUtils"
|
|
50
50
|
|
|
51
|
-
export { ColumnGrammar } from "./ColumnGrammar
|
|
51
|
+
export { ColumnGrammar } from "./ColumnGrammar"
|
|
52
52
|
|
|
53
|
-
export { GridCell } from "./gridLang/GridCell
|
|
53
|
+
export { GridCell } from "./gridLang/GridCell"
|
|
54
54
|
|
|
55
|
-
export { GridProgram } from "./gridLang/GridProgram
|
|
55
|
+
export { GridProgram } from "./gridLang/GridProgram"
|
|
56
56
|
|
|
57
|
-
export { ExplorerGrammar } from "./ExplorerGrammar
|
|
57
|
+
export { ExplorerGrammar } from "./ExplorerGrammar"
|
|
58
58
|
|
|
59
|
-
export { ExplorerUrlMigrationId } from "./urlMigrations/ExplorerUrlMigrations
|
|
59
|
+
export { ExplorerUrlMigrationId } from "./urlMigrations/ExplorerUrlMigrations"
|
|
60
60
|
|
|
61
|
-
export { DecisionMatrix } from "./ExplorerDecisionMatrix
|
|
61
|
+
export { DecisionMatrix } from "./ExplorerDecisionMatrix"
|
|
62
62
|
|
|
63
63
|
export {
|
|
64
64
|
GridBoolean,
|
|
65
65
|
type CellPosition,
|
|
66
66
|
type ParsedCell,
|
|
67
|
-
} from "./gridLang/GridLangConstants
|
|
67
|
+
} from "./gridLang/GridLangConstants"
|
|
68
68
|
|
|
69
|
-
export { GrapherGrammar } from "./GrapherGrammar
|
|
69
|
+
export { GrapherGrammar } from "./GrapherGrammar"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { legacyToCurrentGrapherUrl } from "../../grapher/index
|
|
2
|
-
import { Url, UrlMigration } from "../../utils/index
|
|
1
|
+
import { legacyToCurrentGrapherUrl } from "../../grapher/index"
|
|
2
|
+
import { Url, UrlMigration } from "../../utils/index"
|
|
3
3
|
import {
|
|
4
4
|
decodeURIComponentOrUndefined,
|
|
5
5
|
getExplorerSlugFromUrl,
|
|
6
6
|
QueryParamTransformMap,
|
|
7
7
|
transformQueryParams,
|
|
8
|
-
} from "./ExplorerUrlMigrationUtils
|
|
8
|
+
} from "./ExplorerUrlMigrationUtils"
|
|
9
9
|
|
|
10
10
|
const EXPLORER_SLUG = "co2"
|
|
11
11
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Url, UrlMigration } from "../../utils/index
|
|
1
|
+
import { Url, UrlMigration } from "../../utils/index"
|
|
2
2
|
import {
|
|
3
3
|
getExplorerSlugFromUrl,
|
|
4
4
|
QueryParamTransformMap,
|
|
5
5
|
transformQueryParams,
|
|
6
|
-
} from "./ExplorerUrlMigrationUtils
|
|
6
|
+
} from "./ExplorerUrlMigrationUtils"
|
|
7
7
|
|
|
8
8
|
const EXPLORER_SLUG = "coronavirus-data-explorer"
|
|
9
9
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { legacyToCurrentGrapherUrl } from "../../grapher/index
|
|
2
|
-
import { Url, UrlMigration } from "../../utils/index
|
|
1
|
+
import { legacyToCurrentGrapherUrl } from "../../grapher/index"
|
|
2
|
+
import { Url, UrlMigration } from "../../utils/index"
|
|
3
3
|
import {
|
|
4
4
|
decodeURIComponentOrUndefined,
|
|
5
5
|
getExplorerSlugFromUrl,
|
|
6
6
|
QueryParamTransformMap,
|
|
7
7
|
transformQueryParams,
|
|
8
|
-
} from "./ExplorerUrlMigrationUtils
|
|
8
|
+
} from "./ExplorerUrlMigrationUtils"
|
|
9
9
|
|
|
10
10
|
const EXPLORER_SLUG = "energy"
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _ from "lodash-es"
|
|
2
|
-
import { Url, QueryParams } from "../../utils/index
|
|
2
|
+
import { Url, QueryParams } from "../../utils/index"
|
|
3
3
|
|
|
4
|
-
import { EXPLORERS_ROUTE_FOLDER } from "../ExplorerConstants
|
|
4
|
+
import { EXPLORERS_ROUTE_FOLDER } from "../ExplorerConstants"
|
|
5
5
|
|
|
6
6
|
export const decodeURIComponentOrUndefined = (value: string | undefined) =>
|
|
7
7
|
value !== undefined
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Url, UrlMigration, performUrlMigrations } from "../../utils/index
|
|
1
|
+
import { Url, UrlMigration, performUrlMigrations } from "../../utils/index"
|
|
2
2
|
|
|
3
|
-
import { legacyCovidMigrationSpec } from "./LegacyCovidUrlMigration
|
|
4
|
-
import { co2UrlMigration } from "./CO2UrlMigration
|
|
5
|
-
import { energyUrlMigration } from "./EnergyUrlMigration
|
|
6
|
-
import { covidUrlMigration } from "./CovidUrlMigration
|
|
3
|
+
import { legacyCovidMigrationSpec } from "./LegacyCovidUrlMigration"
|
|
4
|
+
import { co2UrlMigration } from "./CO2UrlMigration"
|
|
5
|
+
import { energyUrlMigration } from "./EnergyUrlMigration"
|
|
6
|
+
import { covidUrlMigration } from "./CovidUrlMigration"
|
|
7
7
|
|
|
8
8
|
export enum ExplorerUrlMigrationId {
|
|
9
9
|
legacyToGridCovidExplorer = "legacyToGridCovidExplorer",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _ from "lodash-es"
|
|
2
|
-
import { legacyToCurrentGrapherUrl } from "../../grapher/index
|
|
3
|
-
import { QueryParams, Url } from "../../utils/index
|
|
4
|
-
import { EXPLORERS_ROUTE_FOLDER } from "../ExplorerConstants
|
|
5
|
-
import { ExplorerUrlMigrationSpec } from "./ExplorerUrlMigrations
|
|
2
|
+
import { legacyToCurrentGrapherUrl } from "../../grapher/index"
|
|
3
|
+
import { QueryParams, Url } from "../../utils/index"
|
|
4
|
+
import { EXPLORERS_ROUTE_FOLDER } from "../ExplorerConstants"
|
|
5
|
+
import { ExplorerUrlMigrationSpec } from "./ExplorerUrlMigrations"
|
|
6
6
|
|
|
7
7
|
const covidMetricFromLegacyQueryParams = (queryParams: QueryParams) => {
|
|
8
8
|
if (queryParams.casesMetric) {
|
package/src/grapher/axis/Axis.ts
CHANGED
|
@@ -14,17 +14,17 @@ import {
|
|
|
14
14
|
Tickmark,
|
|
15
15
|
ValueRange,
|
|
16
16
|
VariableRoundingMode,
|
|
17
|
-
} from "../../utils/index
|
|
18
|
-
import { ComparisonLineConfig } from "../../types/index
|
|
17
|
+
} from "../../utils/index"
|
|
18
|
+
import { ComparisonLineConfig } from "../../types/index"
|
|
19
19
|
import { AxisConfig, AxisManager } from "./AxisConfig"
|
|
20
|
-
import { MarkdownTextWrap } from "../../components/index
|
|
21
|
-
import { CoreColumn } from "../../core-table/index
|
|
20
|
+
import { MarkdownTextWrap } from "../../components/index"
|
|
21
|
+
import { CoreColumn } from "../../core-table/index"
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_GRAPHER_BOUNDS,
|
|
24
24
|
GRAPHER_FONT_SCALE_10_5,
|
|
25
25
|
GRAPHER_FONT_SCALE_11,
|
|
26
26
|
GRAPHER_FONT_SCALE_12,
|
|
27
|
-
} from "../core/GrapherConstants
|
|
27
|
+
} from "../core/GrapherConstants"
|
|
28
28
|
import { makeAxisLabel } from "../chart/ChartUtils"
|
|
29
29
|
import * as R from "remeda"
|
|
30
30
|
import { isValidVerticalComparisonLineConfig } from "../comparisonLine/ComparisonLineHelpers"
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
Position,
|
|
9
9
|
TickFormattingOptions,
|
|
10
10
|
Bounds,
|
|
11
|
-
} from "../../utils/index
|
|
11
|
+
} from "../../utils/index"
|
|
12
12
|
import { observable, computed, makeObservable } from "mobx"
|
|
13
13
|
import { HorizontalAxis, VerticalAxis } from "./Axis"
|
|
14
14
|
import {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
FacetAxisDomain,
|
|
18
18
|
ScaleType,
|
|
19
19
|
Tickmark,
|
|
20
|
-
} from "../../types/index
|
|
20
|
+
} from "../../types/index"
|
|
21
21
|
|
|
22
22
|
export interface AxisManager {
|
|
23
23
|
fontSize: number
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
dyFromAlign,
|
|
11
11
|
textAnchorFromAlign,
|
|
12
12
|
makeIdForHumanConsumption,
|
|
13
|
-
} from "../../utils/index
|
|
13
|
+
} from "../../utils/index"
|
|
14
14
|
import { VerticalAxis, HorizontalAxis, DualAxis } from "./Axis"
|
|
15
15
|
import classNames from "classnames"
|
|
16
16
|
import { GRAPHER_DARK_TEXT } from "../color/ColorConstants"
|
|
17
|
-
import { ScaleType, DetailsMarker } from "../../types/index
|
|
17
|
+
import { ScaleType, DetailsMarker } from "../../types/index"
|
|
18
18
|
import { ComparisonLine } from "../comparisonLine/ComparisonLine"
|
|
19
19
|
import { DEFAULT_GRAPHER_BOUNDS } from "../core/GrapherConstants"
|
|
20
20
|
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
AxisAlign,
|
|
10
10
|
makeIdForHumanConsumption,
|
|
11
11
|
dyFromAlign,
|
|
12
|
-
} from "../../utils/index
|
|
12
|
+
} from "../../utils/index"
|
|
13
13
|
import { computed, makeObservable } from "mobx"
|
|
14
14
|
import { observer } from "mobx-react"
|
|
15
|
-
import { ScaleType, VerticalAlign } from "../../types/index
|
|
15
|
+
import { ScaleType, VerticalAlign } from "../../types/index"
|
|
16
16
|
import {
|
|
17
17
|
BASE_FONT_SIZE,
|
|
18
18
|
DEFAULT_GRAPHER_BOUNDS,
|
|
@@ -39,12 +39,12 @@ import {
|
|
|
39
39
|
HorizontalNumericColorLegend,
|
|
40
40
|
} from "../legend/HorizontalColorLegends"
|
|
41
41
|
import { DiscreteBarChartState } from "./DiscreteBarChartState"
|
|
42
|
-
import { ChartComponentProps } from "../chart/ChartTypeMap
|
|
42
|
+
import { ChartComponentProps } from "../chart/ChartTypeMap"
|
|
43
43
|
import {
|
|
44
44
|
makeProjectedDataPatternId,
|
|
45
45
|
enrichSeriesWithLabels,
|
|
46
46
|
} from "./DiscreteBarChartHelpers"
|
|
47
|
-
import { ChartsTable } from "../../core-table/index
|
|
47
|
+
import { ChartsTable } from "../../core-table/index"
|
|
48
48
|
import { HorizontalAxis } from "../axis/Axis"
|
|
49
49
|
import { GRAPHER_DARK_TEXT } from "../color/ColorConstants"
|
|
50
50
|
import type { BaseType, Selection } from "d3-selection"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ChartManager } from "../chart/ChartManager"
|
|
2
|
-
import { CoreColumn } from "../../core-table/index
|
|
2
|
+
import { CoreColumn } from "../../core-table/index"
|
|
3
3
|
import { ChartSeries } from "../chart/ChartInterface"
|
|
4
|
-
import { Color, CoreValueType, Time } from "../../types/index
|
|
5
|
-
import { TextWrap } from "../../components/index
|
|
6
|
-
import { InteractionState } from "../interaction/InteractionState
|
|
4
|
+
import { Color, CoreValueType, Time } from "../../types/index"
|
|
5
|
+
import { TextWrap } from "../../components/index"
|
|
6
|
+
import { InteractionState } from "../interaction/InteractionState"
|
|
7
7
|
|
|
8
8
|
export interface DiscreteBarSeries extends ChartSeries {
|
|
9
9
|
entityName: string
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _ from "lodash-es"
|
|
2
|
-
import { TextWrap, shortenWithEllipsis } from "../../components/index
|
|
3
|
-
import { EntityName } from "../../types/index
|
|
4
|
-
import { FontSettings } from "./DiscreteBarChartConstants
|
|
2
|
+
import { TextWrap, shortenWithEllipsis } from "../../components/index"
|
|
3
|
+
import { EntityName } from "../../types/index"
|
|
4
|
+
import { FontSettings } from "./DiscreteBarChartConstants"
|
|
5
5
|
|
|
6
6
|
const ANNOTATION_PADDING = 2
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
CoreColumn,
|
|
11
11
|
isNotErrorValue,
|
|
12
12
|
ChartsTable,
|
|
13
|
-
} from "../../core-table/index
|
|
13
|
+
} from "../../core-table/index"
|
|
14
14
|
import { ColorScale, ColorScaleManager } from "../color/ColorScale"
|
|
15
15
|
import { SelectionArray } from "../selection/SelectionArray"
|
|
16
16
|
import {
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
SortBy,
|
|
35
35
|
SortConfig,
|
|
36
36
|
SortOrder,
|
|
37
|
-
} from "../../types/index
|
|
37
|
+
} from "../../types/index"
|
|
38
38
|
import { ERROR_COLOR, NO_DATA_GRAY } from "../color/ColorConstants"
|
|
39
39
|
import { ColorScheme } from "../color/ColorScheme"
|
|
40
40
|
import { ColorSchemes } from "../color/ColorSchemes"
|
|
@@ -6,9 +6,9 @@ import { DiscreteBarChartState } from "./DiscreteBarChartState"
|
|
|
6
6
|
import {
|
|
7
7
|
DiscreteBarChart,
|
|
8
8
|
type DiscreteBarChartProps,
|
|
9
|
-
} from "./DiscreteBarChart
|
|
9
|
+
} from "./DiscreteBarChart"
|
|
10
10
|
|
|
11
|
-
import { DiscreteBarChartManager } from "./DiscreteBarChartConstants
|
|
11
|
+
import { DiscreteBarChartManager } from "./DiscreteBarChartConstants"
|
|
12
12
|
|
|
13
13
|
@observer
|
|
14
14
|
export class DiscreteBarChartThumbnail
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
Bounds,
|
|
7
7
|
exposeInstanceOnWindow,
|
|
8
8
|
makeIdForHumanConsumption,
|
|
9
|
-
} from "../../utils/index
|
|
10
|
-
import { MarkdownTextWrap, LoadingIndicator } from "../../components/index
|
|
9
|
+
} from "../../utils/index"
|
|
10
|
+
import { MarkdownTextWrap, LoadingIndicator } from "../../components/index"
|
|
11
11
|
import { Header, StaticHeader } from "../header/Header"
|
|
12
12
|
import { Footer, StaticFooter } from "../footer/Footer"
|
|
13
13
|
import {
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
Color,
|
|
30
30
|
GrapherTabName,
|
|
31
31
|
GrapherChartType,
|
|
32
|
-
} from "../../types/index
|
|
32
|
+
} from "../../types/index"
|
|
33
33
|
import { DataTableManager } from "../dataTable/DataTableConstants"
|
|
34
34
|
import {
|
|
35
35
|
TimelineComponent,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
ControlsRow,
|
|
41
41
|
ControlsRowManager,
|
|
42
42
|
} from "../controls/controlsRow/ControlsRow"
|
|
43
|
-
import { GRAPHER_BACKGROUND_DEFAULT } from "../color/ColorConstants
|
|
43
|
+
import { GRAPHER_BACKGROUND_DEFAULT } from "../color/ColorConstants"
|
|
44
44
|
import { ChartAreaContent } from "../chart/ChartAreaContent"
|
|
45
45
|
import { getChartSvgProps } from "../chart/ChartUtils"
|
|
46
46
|
import { StaticChartWrapper } from "../chart/StaticChartWrapper"
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
LEGACY_LOGO_SVG,
|
|
9
9
|
SMALL_LEGACY_LOGO_SVG,
|
|
10
10
|
} from "./LogosSVG"
|
|
11
|
-
import { LogoOption } from "../../types/index
|
|
12
|
-
import { makeIdForHumanConsumption } from "../../utils/index
|
|
11
|
+
import { LogoOption } from "../../types/index"
|
|
12
|
+
import { makeIdForHumanConsumption } from "../../utils/index"
|
|
13
13
|
|
|
14
14
|
interface LogoAttributes {
|
|
15
15
|
svg: string
|
|
@@ -4,11 +4,11 @@ import { observer } from "mobx-react"
|
|
|
4
4
|
import {
|
|
5
5
|
CaptionedChart,
|
|
6
6
|
StaticCaptionedChart,
|
|
7
|
-
} from "../captionedChart/CaptionedChart
|
|
8
|
-
import { GrapherState } from "../core/GrapherState
|
|
9
|
-
import { ChartAreaContent } from "./ChartAreaContent
|
|
10
|
-
import { StaticChartWrapper } from "./StaticChartWrapper
|
|
11
|
-
import { GrapherVariant } from "../../types/index
|
|
7
|
+
} from "../captionedChart/CaptionedChart"
|
|
8
|
+
import { GrapherState } from "../core/GrapherState"
|
|
9
|
+
import { ChartAreaContent } from "./ChartAreaContent"
|
|
10
|
+
import { StaticChartWrapper } from "./StaticChartWrapper"
|
|
11
|
+
import { GrapherVariant } from "../../types/index"
|
|
12
12
|
|
|
13
13
|
@observer
|
|
14
14
|
export class Chart extends React.Component<{
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
GRAPHER_MAP_TYPE,
|
|
7
7
|
GrapherChartOrMapType,
|
|
8
8
|
makeIdForHumanConsumption,
|
|
9
|
-
} from "../../utils/index
|
|
9
|
+
} from "../../utils/index"
|
|
10
10
|
import { DataTable } from "../dataTable/DataTable"
|
|
11
11
|
import { CaptionedChartManager } from "../captionedChart/CaptionedChart"
|
|
12
|
-
import { LoadingIndicator } from "../../components/index
|
|
12
|
+
import { LoadingIndicator } from "../../components/index"
|
|
13
13
|
import { FacetChart } from "../facet/FacetChart"
|
|
14
14
|
import { getChartSvgProps, NoDataPattern } from "./ChartUtils"
|
|
15
15
|
import { ChartComponent, makeChartState } from "./ChartTypeMap"
|
|
16
16
|
import { GRAPHER_CHART_AREA_CLASS } from "../core/GrapherConstants"
|
|
17
17
|
import { ChartState } from "./ChartInterface"
|
|
18
|
-
import { FacetMap } from "../facet/FacetMap
|
|
18
|
+
import { FacetMap } from "../facet/FacetMap"
|
|
19
19
|
|
|
20
20
|
interface ChartAreaContentProps {
|
|
21
21
|
manager: CaptionedChartManager
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
ChartDimensionInterface,
|
|
15
15
|
Time,
|
|
16
16
|
ChartDimensionInterfaceWithMandatorySlug,
|
|
17
|
-
} from "../../utils/index
|
|
18
|
-
import { ChartsTable, CoreColumn } from "../../core-table/index
|
|
17
|
+
} from "../../utils/index"
|
|
18
|
+
import { ChartsTable, CoreColumn } from "../../core-table/index"
|
|
19
19
|
|
|
20
20
|
// A chart "dimension" represents a binding between a chart
|
|
21
21
|
// and a particular variable that it requests as data
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ChartsTable } from "../../core-table/index
|
|
1
|
+
import { ChartsTable } from "../../core-table/index"
|
|
2
2
|
import {
|
|
3
3
|
FacetStrategy,
|
|
4
4
|
SeriesName,
|
|
5
5
|
SeriesStrategy,
|
|
6
6
|
Color,
|
|
7
7
|
ChartErrorInfo,
|
|
8
|
-
} from "../../types/index
|
|
8
|
+
} from "../../types/index"
|
|
9
9
|
import { ColorScale } from "../color/ColorScale"
|
|
10
10
|
import { HorizontalAxis, VerticalAxis } from "../axis/Axis"
|
|
11
11
|
import { HorizontalColorLegendManager } from "../legend/HorizontalColorLegends"
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
DetailsMarker,
|
|
14
14
|
Color,
|
|
15
15
|
GrapherVariant,
|
|
16
|
-
} from "../../types/index
|
|
16
|
+
} from "../../types/index"
|
|
17
17
|
import { TooltipManager } from "../tooltip/TooltipProps"
|
|
18
|
-
import { ChartsTable, CoreColumn } from "../../core-table/index
|
|
18
|
+
import { ChartsTable, CoreColumn } from "../../core-table/index"
|
|
19
19
|
|
|
20
20
|
import { SelectionArray } from "../selection/SelectionArray"
|
|
21
|
-
import { ColumnSlug, SortConfig, TimeBound } from "../../utils/index
|
|
21
|
+
import { ColumnSlug, SortConfig, TimeBound } from "../../utils/index"
|
|
22
22
|
import { ColorScaleBin } from "../color/ColorScaleBin"
|
|
23
23
|
import { ColorScale } from "../color/ColorScale"
|
|
24
24
|
import { FocusArray } from "../focus/FocusArray"
|
|
@@ -4,25 +4,25 @@ import {
|
|
|
4
4
|
GRAPHER_MAP_TYPE,
|
|
5
5
|
GrapherChartOrMapType,
|
|
6
6
|
GrapherVariant,
|
|
7
|
-
} from "../../types/index
|
|
7
|
+
} from "../../types/index"
|
|
8
8
|
import { ChartInterface, ChartState } from "./ChartInterface"
|
|
9
9
|
import { ChartManager } from "./ChartManager"
|
|
10
10
|
import { ComponentClass, Component } from "react"
|
|
11
|
-
import { Bounds } from "../../utils/index
|
|
11
|
+
import { Bounds } from "../../utils/index"
|
|
12
12
|
|
|
13
|
-
import { LineChartState } from "../lineCharts/LineChartState
|
|
13
|
+
import { LineChartState } from "../lineCharts/LineChartState"
|
|
14
14
|
import { SlopeChartState } from "../slopeCharts/SlopeChartState"
|
|
15
|
-
import { DiscreteBarChartState } from "../barCharts/DiscreteBarChartState
|
|
16
|
-
import { StackedAreaChartState } from "../stackedCharts/StackedAreaChartState
|
|
17
|
-
import { StackedBarChartState } from "../stackedCharts/StackedBarChartState
|
|
15
|
+
import { DiscreteBarChartState } from "../barCharts/DiscreteBarChartState"
|
|
16
|
+
import { StackedAreaChartState } from "../stackedCharts/StackedAreaChartState"
|
|
17
|
+
import { StackedBarChartState } from "../stackedCharts/StackedBarChartState"
|
|
18
18
|
import { StackedDiscreteBarChartState } from "../stackedCharts/StackedDiscreteBarChartState"
|
|
19
19
|
import { ScatterPlotChartState } from "../scatterCharts/ScatterPlotChartState"
|
|
20
20
|
import { MarimekkoChartState } from "../stackedCharts/MarimekkoChartState"
|
|
21
21
|
import { MapChartState } from "../mapCharts/MapChartState"
|
|
22
22
|
|
|
23
23
|
import { LineChart } from "../lineCharts/LineChart"
|
|
24
|
-
import { SlopeChart } from "../slopeCharts/SlopeChart
|
|
25
|
-
import { DiscreteBarChart } from "../barCharts/DiscreteBarChart
|
|
24
|
+
import { SlopeChart } from "../slopeCharts/SlopeChart"
|
|
25
|
+
import { DiscreteBarChart } from "../barCharts/DiscreteBarChart"
|
|
26
26
|
import { StackedAreaChart } from "../stackedCharts/StackedAreaChart"
|
|
27
27
|
import { StackedBarChart } from "../stackedCharts/StackedBarChart"
|
|
28
28
|
import { StackedDiscreteBarChart } from "../stackedCharts/StackedDiscreteBarChart"
|
|
@@ -32,7 +32,7 @@ import { MapChart } from "../mapCharts/MapChart"
|
|
|
32
32
|
|
|
33
33
|
import { LineChartThumbnail } from "../lineCharts/LineChartThumbnail"
|
|
34
34
|
import { SlopeChartThumbnail } from "../slopeCharts/SlopeChartThumbnail"
|
|
35
|
-
import { DiscreteBarChartThumbnail } from "../barCharts/DiscreteBarChartThumbnail
|
|
35
|
+
import { DiscreteBarChartThumbnail } from "../barCharts/DiscreteBarChartThumbnail"
|
|
36
36
|
import { StackedAreaChartThumbnail } from "../stackedCharts/StackedAreaChartThumbnail"
|
|
37
37
|
import { StackedBarChartThumbnail } from "../stackedCharts/StackedBarChartThumbnail"
|
|
38
38
|
import { StackedDiscreteBarChartThumbnail } from "../stackedCharts/StackedDiscreteBarChartThumbnail"
|