@buildcanada/charts 0.3.5 → 0.3.7

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.
Files changed (267) hide show
  1. package/package.json +1 -1
  2. package/src/components/GrapherTabIcon.tsx +1 -1
  3. package/src/components/GrapherTrendArrow.tsx +1 -1
  4. package/src/components/Halo/Halo.tsx +1 -1
  5. package/src/components/LabeledSwitch/LabeledSwitch.tsx +1 -1
  6. package/src/components/MarkdownTextWrap/MarkdownTextWrap.tsx +4 -4
  7. package/src/components/OverlayHeader.tsx +1 -1
  8. package/src/components/SimpleMarkdownText.tsx +1 -1
  9. package/src/components/TextWrap/TextWrap.tsx +2 -2
  10. package/src/components/index.ts +23 -23
  11. package/src/components/loadingIndicator/LoadingIndicator.tsx +1 -1
  12. package/src/config/ChartsProvider.tsx +1 -1
  13. package/src/config/index.ts +2 -2
  14. package/src/core-table/ChartsTable.ts +7 -7
  15. package/src/core-table/CoreTable.ts +6 -6
  16. package/src/core-table/CoreTableColumns.ts +5 -5
  17. package/src/core-table/CoreTableUtils.ts +3 -3
  18. package/src/core-table/ErrorValues.ts +1 -1
  19. package/src/core-table/TableSynthesizers.ts +3 -3
  20. package/src/core-table/TableUtil.ts +2 -2
  21. package/src/core-table/Transforms.ts +3 -3
  22. package/src/core-table/index.ts +8 -8
  23. package/src/explorer/ColumnGrammar.ts +4 -4
  24. package/src/explorer/Explorer.sample.ts +4 -4
  25. package/src/explorer/Explorer.tsx +10 -10
  26. package/src/explorer/ExplorerConstants.ts +2 -2
  27. package/src/explorer/ExplorerControls.tsx +4 -4
  28. package/src/explorer/ExplorerDecisionMatrix.ts +7 -7
  29. package/src/explorer/ExplorerGrammar.ts +4 -4
  30. package/src/explorer/ExplorerProgram.ts +11 -11
  31. package/src/explorer/ExplorerUtils.ts +4 -4
  32. package/src/explorer/GrapherGrammar.ts +3 -3
  33. package/src/explorer/gridLang/GridCell.ts +4 -4
  34. package/src/explorer/gridLang/GridLangConstants.ts +1 -1
  35. package/src/explorer/gridLang/GridProgram.ts +5 -5
  36. package/src/explorer/index.ts +15 -15
  37. package/src/explorer/urlMigrations/CO2UrlMigration.ts +3 -3
  38. package/src/explorer/urlMigrations/CovidUrlMigration.ts +2 -2
  39. package/src/explorer/urlMigrations/EnergyUrlMigration.ts +3 -3
  40. package/src/explorer/urlMigrations/ExplorerPageUrlMigrationSpec.ts +1 -1
  41. package/src/explorer/urlMigrations/ExplorerUrlMigrationUtils.ts +2 -2
  42. package/src/explorer/urlMigrations/ExplorerUrlMigrations.ts +5 -5
  43. package/src/explorer/urlMigrations/LegacyCovidUrlMigration.ts +4 -4
  44. package/src/grapher/axis/Axis.ts +8 -8
  45. package/src/grapher/axis/AxisConfig.ts +4 -4
  46. package/src/grapher/axis/AxisViews.tsx +6 -6
  47. package/src/grapher/barCharts/DiscreteBarChart.tsx +17 -17
  48. package/src/grapher/barCharts/DiscreteBarChartConstants.ts +6 -6
  49. package/src/grapher/barCharts/DiscreteBarChartHelpers.ts +3 -3
  50. package/src/grapher/barCharts/DiscreteBarChartState.ts +13 -13
  51. package/src/grapher/barCharts/DiscreteBarChartThumbnail.tsx +4 -4
  52. package/src/grapher/captionedChart/CaptionedChart.tsx +19 -19
  53. package/src/grapher/captionedChart/Logos.tsx +3 -3
  54. package/src/grapher/captionedChart/StaticChartRasterizer.tsx +1 -1
  55. package/src/grapher/chart/Chart.tsx +5 -5
  56. package/src/grapher/chart/ChartAreaContent.tsx +10 -10
  57. package/src/grapher/chart/ChartDimension.ts +2 -2
  58. package/src/grapher/chart/ChartInterface.ts +7 -7
  59. package/src/grapher/chart/ChartManager.ts +9 -9
  60. package/src/grapher/chart/ChartTabs.ts +1 -1
  61. package/src/grapher/chart/ChartTypeMap.tsx +31 -31
  62. package/src/grapher/chart/ChartTypeSwitcher.tsx +1 -1
  63. package/src/grapher/chart/ChartUtils.tsx +10 -10
  64. package/src/grapher/chart/DimensionSlot.ts +3 -3
  65. package/src/grapher/chart/StaticChartWrapper.tsx +5 -5
  66. package/src/grapher/chart/guidedChartUtils.ts +4 -4
  67. package/src/grapher/color/BinningStrategies.ts +4 -4
  68. package/src/grapher/color/BinningStrategyEqualSizeBins.ts +3 -3
  69. package/src/grapher/color/BinningStrategyLogarithmic.ts +3 -3
  70. package/src/grapher/color/CategoricalColorAssigner.ts +3 -3
  71. package/src/grapher/color/ColorBrewerSchemes.ts +1 -1
  72. package/src/grapher/color/ColorScale.ts +9 -9
  73. package/src/grapher/color/ColorScaleBin.ts +2 -2
  74. package/src/grapher/color/ColorScaleConfig.ts +3 -3
  75. package/src/grapher/color/ColorScheme.ts +3 -3
  76. package/src/grapher/color/ColorSchemes.ts +4 -4
  77. package/src/grapher/color/ColorUtils.ts +1 -1
  78. package/src/grapher/color/CustomSchemes.ts +2 -2
  79. package/src/grapher/comparisonLine/ComparisonLine.tsx +5 -5
  80. package/src/grapher/comparisonLine/ComparisonLineGenerator.ts +1 -1
  81. package/src/grapher/comparisonLine/ComparisonLineHelpers.ts +1 -1
  82. package/src/grapher/comparisonLine/CustomComparisonLine.tsx +8 -8
  83. package/src/grapher/comparisonLine/VerticalComparisonLine.tsx +5 -5
  84. package/src/grapher/controls/ActionButtons.tsx +4 -4
  85. package/src/grapher/controls/CommandPalette.tsx +1 -1
  86. package/src/grapher/controls/ContentSwitchers.tsx +4 -4
  87. package/src/grapher/controls/DataTableFilterDropdown.tsx +7 -7
  88. package/src/grapher/controls/DataTableSearchField.tsx +4 -4
  89. package/src/grapher/controls/Dropdown.tsx +1 -1
  90. package/src/grapher/controls/EntitySelectionToggle.tsx +1 -1
  91. package/src/grapher/controls/MapRegionDropdown.tsx +5 -5
  92. package/src/grapher/controls/MapResetButton.tsx +3 -3
  93. package/src/grapher/controls/MapZoomDropdown.tsx +5 -5
  94. package/src/grapher/controls/MapZoomToSelectionButton.tsx +3 -3
  95. package/src/grapher/controls/SearchField.tsx +1 -1
  96. package/src/grapher/controls/SettingsMenu.tsx +14 -14
  97. package/src/grapher/controls/ShareMenu.tsx +4 -4
  98. package/src/grapher/controls/SortIcon.tsx +1 -1
  99. package/src/grapher/controls/controlsRow/ControlsRow.tsx +11 -11
  100. package/src/grapher/controls/entityPicker/EntityPicker.tsx +7 -7
  101. package/src/grapher/controls/entityPicker/EntityPickerConstants.ts +5 -5
  102. package/src/grapher/controls/globalEntitySelector/GlobalEntitySelector.tsx +7 -7
  103. package/src/grapher/controls/settings/AbsRelToggle.tsx +2 -2
  104. package/src/grapher/controls/settings/AxisScaleToggle.tsx +2 -2
  105. package/src/grapher/controls/settings/FacetStrategySelector.tsx +2 -2
  106. package/src/grapher/controls/settings/FacetYDomainToggle.tsx +3 -3
  107. package/src/grapher/controls/settings/NoDataAreaToggle.tsx +1 -1
  108. package/src/grapher/controls/settings/ZoomToggle.tsx +1 -1
  109. package/src/grapher/core/EntitiesByRegionType.ts +3 -3
  110. package/src/grapher/core/EntityCodes.ts +2 -2
  111. package/src/grapher/core/EntityUrlBuilder.ts +3 -3
  112. package/src/grapher/core/FetchingGrapher.tsx +8 -8
  113. package/src/grapher/core/Grapher.tsx +20 -20
  114. package/src/grapher/core/GrapherAnalytics.ts +1 -1
  115. package/src/grapher/core/GrapherConstants.ts +3 -3
  116. package/src/grapher/core/GrapherState.tsx +38 -38
  117. package/src/grapher/core/GrapherUrl.ts +4 -4
  118. package/src/grapher/core/GrapherUrlMigrations.ts +2 -2
  119. package/src/grapher/core/GrapherUseHelpers.tsx +5 -5
  120. package/src/grapher/core/LegacyToChartsTable.ts +5 -5
  121. package/src/grapher/core/grapher.entry.ts +1 -1
  122. package/src/grapher/core/loadGrapherTableHelpers.ts +4 -4
  123. package/src/grapher/core/loadVariable.ts +2 -2
  124. package/src/grapher/core/relatedQuestion.ts +1 -1
  125. package/src/grapher/dataTable/DataTable.sample.ts +5 -5
  126. package/src/grapher/dataTable/DataTable.tsx +10 -10
  127. package/src/grapher/dataTable/DataTableConstants.ts +5 -5
  128. package/src/grapher/entitySelector/EntitySelector.tsx +15 -15
  129. package/src/grapher/facet/FacetChart.tsx +19 -19
  130. package/src/grapher/facet/FacetChartConstants.ts +4 -4
  131. package/src/grapher/facet/FacetChartUtils.ts +1 -1
  132. package/src/grapher/facet/FacetMap.tsx +15 -15
  133. package/src/grapher/facet/FacetMapConstants.ts +4 -4
  134. package/src/grapher/focus/FocusArray.ts +2 -2
  135. package/src/grapher/footer/Footer.tsx +7 -7
  136. package/src/grapher/footer/FooterManager.ts +4 -4
  137. package/src/grapher/fullScreen/FullScreen.tsx +2 -2
  138. package/src/grapher/header/Header.tsx +6 -6
  139. package/src/grapher/header/HeaderManager.ts +2 -2
  140. package/src/grapher/index.ts +57 -57
  141. package/src/grapher/legend/HorizontalColorLegends.tsx +7 -7
  142. package/src/grapher/legend/LegendInteractionState.ts +1 -1
  143. package/src/grapher/legend/VerticalColorLegend.tsx +6 -6
  144. package/src/grapher/lineCharts/LineChart.tsx +26 -26
  145. package/src/grapher/lineCharts/LineChartConstants.ts +8 -8
  146. package/src/grapher/lineCharts/LineChartHelpers.ts +7 -7
  147. package/src/grapher/lineCharts/LineChartState.ts +17 -17
  148. package/src/grapher/lineCharts/LineChartThumbnail.tsx +15 -15
  149. package/src/grapher/lineCharts/Lines.tsx +6 -6
  150. package/src/grapher/lineLegend/LineLegend.tsx +12 -12
  151. package/src/grapher/lineLegend/LineLegendFilterAlgorithms.ts +2 -2
  152. package/src/grapher/lineLegend/LineLegendHelpers.ts +3 -3
  153. package/src/grapher/lineLegend/LineLegendTypes.ts +4 -4
  154. package/src/grapher/mapCharts/ChoroplethGlobe.tsx +11 -11
  155. package/src/grapher/mapCharts/ChoroplethMap.tsx +11 -11
  156. package/src/grapher/mapCharts/GeoFeatures.ts +5 -5
  157. package/src/grapher/mapCharts/GlobeController.ts +7 -7
  158. package/src/grapher/mapCharts/MapAnnotationPlacements.ts +2 -2
  159. package/src/grapher/mapCharts/MapAnnotations.ts +6 -6
  160. package/src/grapher/mapCharts/MapChart.sample.ts +3 -3
  161. package/src/grapher/mapCharts/MapChart.tsx +23 -23
  162. package/src/grapher/mapCharts/MapChartConstants.ts +10 -10
  163. package/src/grapher/mapCharts/MapChartState.ts +11 -11
  164. package/src/grapher/mapCharts/MapChartThumbnail.tsx +3 -3
  165. package/src/grapher/mapCharts/MapComponents.tsx +8 -8
  166. package/src/grapher/mapCharts/MapConfig.ts +5 -5
  167. package/src/grapher/mapCharts/MapHelpers.ts +6 -6
  168. package/src/grapher/mapCharts/MapProjections.ts +2 -2
  169. package/src/grapher/mapCharts/MapSparkline.tsx +9 -9
  170. package/src/grapher/mapCharts/MapTooltip.tsx +10 -10
  171. package/src/grapher/modal/DownloadModal.tsx +9 -9
  172. package/src/grapher/modal/EmbedModal.tsx +4 -4
  173. package/src/grapher/modal/EntitySelectorModal.tsx +4 -4
  174. package/src/grapher/modal/Modal.tsx +2 -2
  175. package/src/grapher/modal/ModalHeader.tsx +1 -1
  176. package/src/grapher/modal/SourcesDescriptions.tsx +1 -1
  177. package/src/grapher/modal/SourcesKeyDataTable.tsx +2 -2
  178. package/src/grapher/modal/SourcesModal.tsx +10 -10
  179. package/src/grapher/noDataModal/NoDataModal.tsx +4 -4
  180. package/src/grapher/scatterCharts/ConnectedScatterLegend.tsx +4 -4
  181. package/src/grapher/scatterCharts/NoDataSection.tsx +3 -3
  182. package/src/grapher/scatterCharts/ScatterPlotChart.tsx +27 -27
  183. package/src/grapher/scatterCharts/ScatterPlotChartConstants.ts +10 -10
  184. package/src/grapher/scatterCharts/ScatterPlotChartState.ts +15 -15
  185. package/src/grapher/scatterCharts/ScatterPlotChartThumbnail.tsx +12 -12
  186. package/src/grapher/scatterCharts/ScatterPlotTooltip.tsx +6 -6
  187. package/src/grapher/scatterCharts/ScatterPoints.tsx +4 -4
  188. package/src/grapher/scatterCharts/ScatterPointsWithLabels.tsx +11 -11
  189. package/src/grapher/scatterCharts/ScatterSizeLegend.tsx +7 -7
  190. package/src/grapher/scatterCharts/ScatterUtils.ts +5 -5
  191. package/src/grapher/schema/defaultGrapherConfig.ts +1 -1
  192. package/src/grapher/schema/migrations/helpers.ts +1 -1
  193. package/src/grapher/schema/migrations/migrate.ts +4 -4
  194. package/src/grapher/schema/migrations/migrations.ts +2 -2
  195. package/src/grapher/selection/MapSelectionArray.ts +2 -2
  196. package/src/grapher/selection/SelectionArray.ts +1 -1
  197. package/src/grapher/sidePanel/SidePanel.tsx +2 -2
  198. package/src/grapher/slideInDrawer/SlideInDrawer.tsx +1 -1
  199. package/src/grapher/slopeCharts/MarkX.tsx +2 -2
  200. package/src/grapher/slopeCharts/Slope.tsx +3 -3
  201. package/src/grapher/slopeCharts/SlopeChart.tsx +29 -29
  202. package/src/grapher/slopeCharts/SlopeChartConstants.ts +6 -6
  203. package/src/grapher/slopeCharts/SlopeChartHelpers.ts +4 -4
  204. package/src/grapher/slopeCharts/SlopeChartState.ts +14 -14
  205. package/src/grapher/slopeCharts/SlopeChartThumbnail.tsx +14 -14
  206. package/src/grapher/stackedCharts/AbstractStackedChartState.ts +13 -13
  207. package/src/grapher/stackedCharts/MarimekkoBars.tsx +8 -8
  208. package/src/grapher/stackedCharts/MarimekkoBarsForOneEntity.tsx +5 -5
  209. package/src/grapher/stackedCharts/MarimekkoChart.tsx +23 -23
  210. package/src/grapher/stackedCharts/MarimekkoChartConstants.ts +6 -6
  211. package/src/grapher/stackedCharts/MarimekkoChartHelpers.ts +3 -3
  212. package/src/grapher/stackedCharts/MarimekkoChartState.ts +16 -16
  213. package/src/grapher/stackedCharts/MarimekkoChartThumbnail.tsx +13 -13
  214. package/src/grapher/stackedCharts/MarimekkoInternalLabels.tsx +4 -4
  215. package/src/grapher/stackedCharts/StackedAreaChart.tsx +22 -22
  216. package/src/grapher/stackedCharts/StackedAreaChartState.ts +5 -5
  217. package/src/grapher/stackedCharts/StackedAreaChartThumbnail.tsx +14 -14
  218. package/src/grapher/stackedCharts/StackedAreas.tsx +4 -4
  219. package/src/grapher/stackedCharts/StackedBarChart.tsx +21 -21
  220. package/src/grapher/stackedCharts/StackedBarChartState.ts +8 -8
  221. package/src/grapher/stackedCharts/StackedBarChartThumbnail.tsx +14 -14
  222. package/src/grapher/stackedCharts/StackedBarSegment.tsx +3 -3
  223. package/src/grapher/stackedCharts/StackedBars.tsx +6 -6
  224. package/src/grapher/stackedCharts/StackedConstants.ts +6 -6
  225. package/src/grapher/stackedCharts/StackedDiscreteBarChart.tsx +14 -14
  226. package/src/grapher/stackedCharts/StackedDiscreteBarChartState.ts +13 -13
  227. package/src/grapher/stackedCharts/StackedDiscreteBarChartThumbnail.tsx +4 -4
  228. package/src/grapher/stackedCharts/StackedDiscreteBars.tsx +15 -15
  229. package/src/grapher/stackedCharts/StackedUtils.ts +3 -3
  230. package/src/grapher/tabs/TabsWithDropdown.tsx +1 -1
  231. package/src/grapher/testData/TestData.sample.ts +5 -5
  232. package/src/grapher/testData/TestData.ts +2 -2
  233. package/src/grapher/timeline/TimelineComponent.tsx +4 -4
  234. package/src/grapher/timeline/TimelineController.ts +2 -2
  235. package/src/grapher/tooltip/Tooltip.tsx +5 -5
  236. package/src/grapher/tooltip/TooltipContents.tsx +6 -6
  237. package/src/grapher/tooltip/TooltipProps.ts +1 -1
  238. package/src/grapher/tooltip/TooltipState.ts +2 -2
  239. package/src/grapher/verticalLabels/VerticalLabels.tsx +3 -3
  240. package/src/grapher/verticalLabels/VerticalLabelsState.ts +2 -2
  241. package/src/index.ts +55 -55
  242. package/src/types/Origin.ts +1 -1
  243. package/src/types/Variable.ts +3 -3
  244. package/src/types/VariableDisplayConfigInterface.ts +2 -2
  245. package/src/types/domainTypes/ContentGraph.ts +2 -2
  246. package/src/types/domainTypes/CoreTableTypes.ts +5 -5
  247. package/src/types/domainTypes/Posts.ts +4 -4
  248. package/src/types/domainTypes/Search.ts +2 -2
  249. package/src/types/domainTypes/Various.ts +1 -1
  250. package/src/types/gdocTypes/Gdoc.ts +2 -2
  251. package/src/types/grapherTypes/GrapherTypes.ts +9 -9
  252. package/src/types/index.ts +15 -15
  253. package/src/utils/Bounds.ts +2 -2
  254. package/src/utils/FuzzySearch.ts +1 -1
  255. package/src/utils/TimeBounds.ts +2 -2
  256. package/src/utils/Util.ts +3 -3
  257. package/src/utils/Variable.ts +2 -2
  258. package/src/utils/archival/archivalDate.ts +2 -2
  259. package/src/utils/formatValue.ts +2 -2
  260. package/src/utils/grapherConfigUtils.ts +2 -2
  261. package/src/utils/image.ts +2 -2
  262. package/src/utils/index.ts +27 -27
  263. package/src/utils/metadataHelpers.ts +4 -4
  264. package/src/utils/regions.ts +2 -2
  265. package/src/utils/urls/Url.ts +3 -3
  266. package/src/utils/urls/UrlMigration.ts +1 -1
  267. package/src/utils/urls/UrlUtils.ts +2 -2
@@ -2,32 +2,32 @@ 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.ts"
5
+ import { TextWrap, Halo } from "../../components/index.js"
6
6
  import {
7
7
  Color,
8
8
  makeIdForHumanConsumption,
9
9
  VariableRoundingMode,
10
- } from "../../utils/index.ts"
10
+ } from "../../utils/index.js"
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
- } from "../core/GrapherConstants"
17
- import { CoreColumn } from "../../core-table/index.ts"
16
+ } from "../core/GrapherConstants.js"
17
+ import { CoreColumn } from "../../core-table/index.js"
18
18
  import {
19
19
  ScatterSeries,
20
20
  SCATTER_POINT_MAX_RADIUS,
21
21
  SCATTER_POINT_OPACITY,
22
22
  SCATTER_POINT_STROKE_WIDTH,
23
23
  SCATTER_POINT_DEFAULT_RADIUS,
24
- } from "./ScatterPlotChartConstants"
25
- import { darkenColorForText } from "../color/ColorUtils"
24
+ } from "./ScatterPlotChartConstants.js"
25
+ import { darkenColorForText } from "../color/ColorUtils.js"
26
26
  import {
27
27
  GRAPHER_BACKGROUND_DEFAULT,
28
28
  GRAPHER_DARK_TEXT,
29
29
  GRAPHER_LIGHT_TEXT,
30
- } from "../color/ColorConstants"
30
+ } from "../color/ColorConstants.js"
31
31
 
32
32
  export interface ScatterSizeLegendManager {
33
33
  sidebarWidth: number
@@ -5,7 +5,7 @@ import {
5
5
  ColumnSlug,
6
6
  PointVector,
7
7
  ValueRange,
8
- } from "../../utils/index.ts"
8
+ } from "../../utils/index.js"
9
9
  import {
10
10
  SCATTER_LABEL_FONT_SIZE_FACTOR_WHEN_HIDDEN_LINES,
11
11
  SCATTER_LINE_DEFAULT_WIDTH,
@@ -15,10 +15,10 @@ import {
15
15
  ScatterLabel,
16
16
  ScatterRenderPoint,
17
17
  ScatterRenderSeries,
18
- } from "./ScatterPlotChartConstants"
19
- import { BASE_FONT_SIZE } from "../core/GrapherConstants.ts"
20
- import { ScatterPlotChartState } from "./ScatterPlotChartState"
21
- import { ChartsTable } from "../../core-table/index.ts"
18
+ } from "./ScatterPlotChartConstants.js"
19
+ import { BASE_FONT_SIZE } from "../core/GrapherConstants.js"
20
+ import { ScatterPlotChartState } from "./ScatterPlotChartState.js"
21
+ import { ChartsTable } from "../../core-table/index.js"
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.ts"
5
+ import { GrapherInterface } from "../../types/index.js"
6
6
 
7
7
  export const latestSchemaVersion = "009" as const
8
8
  export const outdatedSchemaVersions = [
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  latestSchemaVersion,
3
3
  outdatedSchemaVersions,
4
- } from "../defaultGrapherConfig"
4
+ } from "../defaultGrapherConfig.js"
5
5
 
6
6
  const allSchemaVersions = [...outdatedSchemaVersions, latestSchemaVersion]
7
7
 
@@ -1,7 +1,7 @@
1
1
  import * as _ from "lodash-es"
2
- import { GrapherInterface } from "../../../types/index.ts"
2
+ import { GrapherInterface } from "../../../types/index.js"
3
3
 
4
- import { defaultGrapherConfig } from "../defaultGrapherConfig"
4
+ import { defaultGrapherConfig } from "../defaultGrapherConfig.js"
5
5
  import {
6
6
  getSchemaVersion,
7
7
  hasValidSchema,
@@ -9,8 +9,8 @@ import {
9
9
  hasOutdatedSchema,
10
10
  type AnyConfig,
11
11
  type AnyConfigWithValidSchema,
12
- } from "./helpers"
13
- import { runMigration } from "./migrations"
12
+ } from "./helpers.js"
13
+ import { runMigration } from "./migrations.js"
14
14
 
15
15
  const recursivelyApplyMigrations = (
16
16
  config: AnyConfigWithValidSchema
@@ -14,8 +14,8 @@ import {
14
14
  createSchemaForVersion,
15
15
  getSchemaVersion,
16
16
  isLatestVersion,
17
- } from "./helpers"
18
- import { GRAPHER_CHART_TYPES } from "../../../types/index.ts"
17
+ } from "./helpers.js"
18
+ import { GRAPHER_CHART_TYPES } from "../../../types/index.js"
19
19
 
20
20
  // see # legacy commit 26f2a0d1790c71bdda7e12f284ca552945d2f6ef
21
21
  const migrateFrom001To002 = (
@@ -1,5 +1,5 @@
1
1
  import { computed, makeObservable } from "mobx"
2
- import { SelectionArray } from "./SelectionArray"
2
+ import { SelectionArray } from "./SelectionArray.js"
3
3
  import {
4
4
  Aggregate,
5
5
  checkHasMembers,
@@ -12,7 +12,7 @@ import {
12
12
  getRegionByName,
13
13
  IncomeGroup,
14
14
  Region,
15
- } from "../../utils/index.ts"
15
+ } from "../../utils/index.js"
16
16
  import * as R from "remeda"
17
17
 
18
18
  export class MapSelectionArray extends SelectionArray {
@@ -1,4 +1,4 @@
1
- import { EntityName } from "../../types/index.ts"
1
+ import { EntityName } from "../../types/index.js"
2
2
  import { action, computed, observable, makeObservable } from "mobx"
3
3
 
4
4
  export class SelectionArray {
@@ -1,6 +1,6 @@
1
1
  import * as React from "react"
2
- import { Bounds } from "../../utils/index.ts"
3
- import { GRAPHER_SIDE_PANEL_CLASS } from "../core/GrapherConstants.ts"
2
+ import { Bounds } from "../../utils/index.js"
3
+ import { GRAPHER_SIDE_PANEL_CLASS } from "../core/GrapherConstants.js"
4
4
 
5
5
  export const SidePanel = ({
6
6
  bounds,
@@ -2,7 +2,7 @@ import * as React from "react"
2
2
  import cx from "classnames"
3
3
  import { computed, action, observable, makeObservable } from "mobx"
4
4
  import { observer } from "mobx-react"
5
- import { isTargetOutsideElement } from "../chart/ChartUtils"
5
+ import { isTargetOutsideElement } from "../chart/ChartUtils.js"
6
6
 
7
7
  export const DrawerContext = React.createContext<{
8
8
  toggleDrawerVisibility?: () => void
@@ -2,8 +2,8 @@ import {
2
2
  dyFromAlign,
3
3
  makeIdForHumanConsumption,
4
4
  VerticalAlign,
5
- } from "../../utils/index.ts"
6
- import { GRAPHER_DARK_TEXT } from "../color/ColorConstants"
5
+ } from "../../utils/index.js"
6
+ import { GRAPHER_DARK_TEXT } from "../color/ColorConstants.js"
7
7
 
8
8
  export function MarkX({
9
9
  label,
@@ -1,6 +1,6 @@
1
- import { makeIdForHumanConsumption, PointVector } from "../../utils/index.ts"
2
- import { GRAPHER_OPACITY_MUTE } from "../core/GrapherConstants"
3
- import { RenderSlopeChartSeries } from "./SlopeChartConstants"
1
+ import { makeIdForHumanConsumption, PointVector } from "../../utils/index.js"
2
+ import { GRAPHER_OPACITY_MUTE } from "../core/GrapherConstants.js"
3
+ import { RenderSlopeChartSeries } from "./SlopeChartConstants.js"
4
4
 
5
5
  interface SlopeProps {
6
6
  series: RenderSlopeChartSeries
@@ -13,17 +13,17 @@ import {
13
13
  isTouchDevice,
14
14
  domainExtent,
15
15
  calculateTrendDirection,
16
- } from "../../utils/index.ts"
16
+ } from "../../utils/index.js"
17
17
  import { observable, computed, action, makeObservable } from "mobx"
18
18
  import { observer } from "mobx-react"
19
- import { NoDataModal } from "../noDataModal/NoDataModal"
19
+ import { NoDataModal } from "../noDataModal/NoDataModal.js"
20
20
  import {
21
21
  BASE_FONT_SIZE,
22
22
  DEFAULT_GRAPHER_BOUNDS,
23
23
  GRAPHER_FONT_SCALE_11,
24
24
  GRAPHER_FONT_SCALE_12,
25
25
  GRAPHER_TEXT_OUTLINE_FACTOR,
26
- } from "../core/GrapherConstants"
26
+ } from "../core/GrapherConstants.js"
27
27
  import {
28
28
  SeriesName,
29
29
  MissingDataStrategy,
@@ -31,8 +31,8 @@ import {
31
31
  SeriesStrategy,
32
32
  VerticalAlign,
33
33
  HorizontalAlign,
34
- } from "../../types/index.ts"
35
- import { ChartInterface } from "../chart/ChartInterface"
34
+ } from "../../types/index.js"
35
+ import { ChartInterface } from "../chart/ChartInterface.js"
36
36
  import { scaleLinear, ScaleLinear } from "d3-scale"
37
37
  import { select, type BaseType, type Selection } from "d3-selection"
38
38
  import {
@@ -41,14 +41,14 @@ import {
41
41
  RenderSlopeChartSeries,
42
42
  SlopeChartSeries,
43
43
  SlopeChartManager,
44
- } from "./SlopeChartConstants"
45
- import { CoreColumn } from "../../core-table/index.ts"
46
- import { getHoverStateForSeries } from "../chart/ChartUtils"
47
- import { VerticalAxis } from "../axis/Axis"
48
- import { VerticalAxisZeroLine } from "../axis/AxisViews"
49
- import { NoDataSection } from "../scatterCharts/NoDataSection"
50
-
51
- import { LineLegend, LineLegendProps } from "../lineLegend/LineLegend"
44
+ } from "./SlopeChartConstants.js"
45
+ import { CoreColumn } from "../../core-table/index.js"
46
+ import { getHoverStateForSeries } from "../chart/ChartUtils.js"
47
+ import { VerticalAxis } from "../axis/Axis.js"
48
+ import { VerticalAxisZeroLine } from "../axis/AxisViews.js"
49
+ import { NoDataSection } from "../scatterCharts/NoDataSection.js"
50
+
51
+ import { LineLegend, LineLegendProps } from "../lineLegend/LineLegend.js"
52
52
  import {
53
53
  formatTooltipRangeValues,
54
54
  makeTooltipRoundingNotice,
@@ -56,30 +56,30 @@ import {
56
56
  Tooltip,
57
57
  TooltipState,
58
58
  TooltipValueRange,
59
- } from "../tooltip/Tooltip"
60
- import { TooltipFooterIcon } from "../tooltip/TooltipProps"
59
+ } from "../tooltip/Tooltip.js"
60
+ import { TooltipFooterIcon } from "../tooltip/TooltipProps.js"
61
61
 
62
- import { Halo } from "../../components/index.ts"
63
- import { HorizontalColorLegendManager } from "../legend/HorizontalColorLegends"
64
- import { CategoricalBin } from "../color/ColorScaleBin"
62
+ import { Halo } from "../../components/index.js"
63
+ import { HorizontalColorLegendManager } from "../legend/HorizontalColorLegends.js"
64
+ import { CategoricalBin } from "../color/ColorScaleBin.js"
65
65
  import {
66
66
  GRAPHER_BACKGROUND_DEFAULT,
67
67
  GRAPHER_DARK_TEXT,
68
- } from "../color/ColorConstants"
69
- import { FocusArray } from "../focus/FocusArray"
70
- import { LineLabelSeries } from "../lineLegend/LineLegendTypes"
71
- import { SlopeChartState } from "./SlopeChartState"
72
- import { AxisConfig, AxisManager } from "../axis/AxisConfig"
73
- import { ChartComponentProps } from "../chart/ChartTypeMap.tsx"
74
- import { InteractionState } from "../interaction/InteractionState"
68
+ } from "../color/ColorConstants.js"
69
+ import { FocusArray } from "../focus/FocusArray.js"
70
+ import { LineLabelSeries } from "../lineLegend/LineLegendTypes.js"
71
+ import { SlopeChartState } from "./SlopeChartState.js"
72
+ import { AxisConfig, AxisManager } from "../axis/AxisConfig.js"
73
+ import { ChartComponentProps } from "../chart/ChartTypeMap.js"
74
+ import { InteractionState } from "../interaction/InteractionState.js"
75
75
  import {
76
76
  getYAxisConfigDefaults,
77
77
  toPlacedSlopeChartSeries,
78
78
  toRenderSlopeChartSeries,
79
- } from "./SlopeChartHelpers"
80
- import { Slope } from "./Slope"
81
- import { MarkX } from "./MarkX"
82
- import { CATEGORICAL_LEGEND_STYLE } from "../lineCharts/LineChartConstants"
79
+ } from "./SlopeChartHelpers.js"
80
+ import { Slope } from "./Slope.js"
81
+ import { MarkX } from "./MarkX.js"
82
+ import { CATEGORICAL_LEGEND_STYLE } from "../lineCharts/LineChartConstants.js"
83
83
 
84
84
  type SVGMouseOrTouchEvent =
85
85
  | React.MouseEvent<SVGGElement>
@@ -1,9 +1,9 @@
1
- import { PartialBy, PointVector } from "../../utils/index.ts"
2
- import { EntityName, VariableRow } from "../../types/index.ts"
3
- import { ChartSeries } from "../chart/ChartInterface"
4
- import { CoreColumn } from "../../core-table/index.ts"
5
- import { ChartManager } from "../chart/ChartManager"
6
- import { InteractionState } from "../interaction/InteractionState"
1
+ import { PartialBy, PointVector } from "../../utils/index.js"
2
+ import { EntityName, VariableRow } from "../../types/index.js"
3
+ import { ChartSeries } from "../chart/ChartInterface.js"
4
+ import { CoreColumn } from "../../core-table/index.js"
5
+ import { ChartManager } from "../chart/ChartManager.js"
6
+ import { InteractionState } from "../interaction/InteractionState.js"
7
7
 
8
8
  export interface SlopeChartManager extends ChartManager {
9
9
  canSelectMultipleEntities?: boolean // used to pick an appropriate series name
@@ -4,17 +4,17 @@ import {
4
4
  PointVector,
5
5
  ScaleType,
6
6
  SeriesName,
7
- } from "../../utils/index.ts"
8
- import { VerticalAxis } from "../axis/Axis"
7
+ } from "../../utils/index.js"
8
+ import { VerticalAxis } from "../axis/Axis.js"
9
9
  import {
10
10
  PlacedSlopeChartSeries,
11
11
  RenderSlopeChartSeries,
12
12
  SlopeChartSeries,
13
- } from "./SlopeChartConstants"
13
+ } from "./SlopeChartConstants.js"
14
14
  import {
15
15
  byHoverThenFocusState,
16
16
  getHoverStateForSeries,
17
- } from "../chart/ChartUtils"
17
+ } from "../chart/ChartUtils.js"
18
18
 
19
19
  export function getYAxisConfigDefaults(
20
20
  config?: AxisConfigInterface
@@ -1,13 +1,13 @@
1
1
  import { computed, makeObservable } from "mobx"
2
- import { ChartState } from "../chart/ChartInterface"
2
+ import { ChartState } from "../chart/ChartInterface.js"
3
3
  import {
4
4
  SlopeChartManager,
5
5
  RawSlopeChartSeries,
6
6
  SlopeChartSeries,
7
- } from "./SlopeChartConstants"
8
- import { ChartsTable, CoreColumn } from "../../core-table/index.ts"
9
- import { SelectionArray } from "../selection/SelectionArray"
10
- import { FocusArray } from "../focus/FocusArray"
7
+ } from "./SlopeChartConstants.js"
8
+ import { ChartsTable, CoreColumn } from "../../core-table/index.js"
9
+ import { SelectionArray } from "../selection/SelectionArray.js"
10
+ import { FocusArray } from "../focus/FocusArray.js"
11
11
  import {
12
12
  ColumnSlug,
13
13
  ScaleType,
@@ -18,17 +18,17 @@ import {
18
18
  EntityName,
19
19
  ColorSchemeName,
20
20
  ChartErrorInfo,
21
- } from "../../types/index.ts"
21
+ } from "../../types/index.js"
22
22
  import {
23
23
  autoDetectSeriesStrategy,
24
24
  autoDetectYColumnSlugs,
25
25
  getDefaultFailMessage,
26
26
  getShortNameForEntity,
27
27
  makeSelectionArray,
28
- } from "../chart/ChartUtils"
29
- import { ColorScheme } from "../color/ColorScheme"
30
- import { ColorSchemes } from "../color/ColorSchemes"
31
- import { CategoricalColorAssigner } from "../color/CategoricalColorAssigner"
28
+ } from "../chart/ChartUtils.js"
29
+ import { ColorScheme } from "../color/ColorScheme.js"
30
+ import { ColorSchemes } from "../color/ColorSchemes.js"
31
+ import { CategoricalColorAssigner } from "../color/CategoricalColorAssigner.js"
32
32
  import {
33
33
  AnnotationsMap,
34
34
  getAnnotationsForSeries,
@@ -36,10 +36,10 @@ import {
36
36
  getColorKey,
37
37
  getDisplayName,
38
38
  getSeriesName,
39
- } from "../lineCharts/LineChartHelpers"
40
- import { domainExtent } from "../../utils/index.ts"
41
- import { AxisConfig } from "../axis/AxisConfig"
42
- import { VerticalAxis } from "../axis/Axis"
39
+ } from "../lineCharts/LineChartHelpers.js"
40
+ import { domainExtent } from "../../utils/index.js"
41
+ import { AxisConfig } from "../axis/AxisConfig.js"
42
+ import { VerticalAxis } from "../axis/Axis.js"
43
43
 
44
44
  export class SlopeChartState implements ChartState {
45
45
  manager: SlopeChartManager
@@ -3,36 +3,36 @@ import * as _ from "remeda"
3
3
  import { computed, makeObservable } from "mobx"
4
4
  import { observer } from "mobx-react"
5
5
  import { scaleLinear, ScaleLinear } from "d3-scale"
6
- import { ChartInterface } from "../chart/ChartInterface"
7
- import { SlopeChartState } from "./SlopeChartState.ts"
8
- import { type SlopeChartProps } from "./SlopeChart.tsx"
6
+ import { ChartInterface } from "../chart/ChartInterface.js"
7
+ import { SlopeChartState } from "./SlopeChartState.js"
8
+ import { type SlopeChartProps } from "./SlopeChart.js"
9
9
  import {
10
10
  PlacedSlopeChartSeries,
11
11
  RenderSlopeChartSeries,
12
12
  SlopeChartManager,
13
13
  SlopeChartSeries,
14
- } from "./SlopeChartConstants"
14
+ } from "./SlopeChartConstants.js"
15
15
  import {
16
16
  getYAxisConfigDefaults,
17
17
  toPlacedSlopeChartSeries,
18
18
  toRenderSlopeChartSeries,
19
- } from "./SlopeChartHelpers"
20
- import { AxisConfig, AxisManager } from "../axis/AxisConfig"
19
+ } from "./SlopeChartHelpers.js"
20
+ import { AxisConfig, AxisManager } from "../axis/AxisConfig.js"
21
21
  import {
22
22
  BASE_FONT_SIZE,
23
23
  DEFAULT_GRAPHER_BOUNDS,
24
24
  GRAPHER_FONT_SCALE_12,
25
- } from "../core/GrapherConstants"
26
- import { Bounds, SeriesName } from "../../utils/index.ts"
27
- import { VerticalAxis } from "../axis/Axis"
28
- import { Slope } from "./Slope"
25
+ } from "../core/GrapherConstants.js"
26
+ import { Bounds, SeriesName } from "../../utils/index.js"
27
+ import { VerticalAxis } from "../axis/Axis.js"
28
+ import { Slope } from "./Slope.js"
29
29
  import {
30
30
  InitialVerticalLabelsSeries,
31
31
  VerticalLabelsState,
32
- } from "../verticalLabels/VerticalLabelsState"
33
- import { VerticalLabels } from "../verticalLabels/VerticalLabels"
34
- import { MarkX } from "./MarkX"
35
- import { NoDataModal } from "../noDataModal/NoDataModal"
32
+ } from "../verticalLabels/VerticalLabelsState.js"
33
+ import { VerticalLabels } from "../verticalLabels/VerticalLabels.js"
34
+ import { MarkX } from "./MarkX.js"
35
+ import { NoDataModal } from "../noDataModal/NoDataModal.js"
36
36
 
37
37
  const DOT_RADIUS = 3.5
38
38
  const SPACE_BETWEEN_DOT_AND_LABEL = 4
@@ -1,7 +1,7 @@
1
1
  import * as _ from "lodash-es"
2
2
  import * as R from "remeda"
3
- import { ChartState } from "../chart/ChartInterface.ts"
4
- import { ChartManager } from "../chart/ChartManager.ts"
3
+ import { ChartState } from "../chart/ChartInterface.js"
4
+ import { ChartManager } from "../chart/ChartManager.js"
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.ts"
12
+ } from "../../types/index.js"
13
13
  import { computed, makeObservable } from "mobx"
14
14
  import {
15
15
  StackedPoint,
16
16
  StackedRawSeries,
17
17
  StackedSeries,
18
- } from "./StackedConstants.ts"
18
+ } from "./StackedConstants.js"
19
19
  import {
20
20
  ChartsTable,
21
21
  CoreColumn,
22
22
  isNotErrorValueOrEmptyCell,
23
- } from "../../core-table/index.ts"
23
+ } from "../../core-table/index.js"
24
24
  import {
25
25
  autoDetectSeriesStrategy,
26
26
  autoDetectYColumnSlugs,
27
27
  getDefaultFailMessage,
28
28
  getShortNameForEntity,
29
29
  makeSelectionArray,
30
- } from "../chart/ChartUtils.tsx"
31
- import { ColorSchemes } from "../color/ColorSchemes.ts"
32
- import { SelectionArray } from "../selection/SelectionArray.ts"
30
+ } from "../chart/ChartUtils.js"
31
+ import { ColorSchemes } from "../color/ColorSchemes.js"
32
+ import { SelectionArray } from "../selection/SelectionArray.js"
33
33
  import {
34
34
  CategoricalColorAssigner,
35
35
  CategoricalColorMap,
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"
36
+ } from "../color/CategoricalColorAssigner.js"
37
+ import { BinaryMapPaletteE } from "../color/CustomSchemes.js"
38
+ import { FocusArray } from "../focus/FocusArray.js"
39
+ import { AxisConfig } from "../axis/AxisConfig.js"
40
+ import { HorizontalAxis, VerticalAxis } from "../axis/Axis.js"
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,14 +1,14 @@
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.ts"
5
- import { DualAxis } from "../axis/Axis"
6
- import { ColorScaleBin } from "../color/ColorScaleBin"
7
- import { TooltipState } from "../tooltip/Tooltip"
8
- import { MarimekkoBarsForOneEntity } from "./MarimekkoBarsForOneEntity"
9
- import { Item, PlacedItem } from "./MarimekkoChartConstants"
10
- import { GRAPHER_FONT_SCALE_12, Patterns } from "../core/GrapherConstants"
11
- import { SelectionArray } from "../selection/SelectionArray"
4
+ import { Bounds, dyFromAlign, VerticalAlign } from "../../utils/index.js"
5
+ import { DualAxis } from "../axis/Axis.js"
6
+ import { ColorScaleBin } from "../color/ColorScaleBin.js"
7
+ import { TooltipState } from "../tooltip/Tooltip.js"
8
+ import { MarimekkoBarsForOneEntity } from "./MarimekkoBarsForOneEntity.js"
9
+ import { Item, PlacedItem } from "./MarimekkoChartConstants.js"
10
+ import { GRAPHER_FONT_SCALE_12, Patterns } from "../core/GrapherConstants.js"
11
+ import { SelectionArray } from "../selection/SelectionArray.js"
12
12
 
13
13
  interface MarimekkoBarsProps {
14
14
  dualAxis: DualAxis
@@ -1,13 +1,13 @@
1
- import { makeIdForHumanConsumption } from "../../utils/index.ts"
2
- import { DualAxis } from "../axis/Axis"
1
+ import { makeIdForHumanConsumption } from "../../utils/index.js"
2
+ import { DualAxis } from "../axis/Axis.js"
3
3
  import {
4
4
  Bar,
5
5
  BarShape,
6
6
  EntityColorData,
7
7
  MarimekkoBarProps,
8
- } from "./MarimekkoChartConstants"
9
- import { InteractionState } from "../interaction/InteractionState.ts"
10
- import { BAR_OPACITY } from "./StackedConstants"
8
+ } from "./MarimekkoChartConstants.js"
9
+ import { InteractionState } from "../interaction/InteractionState.js"
10
+ import { BAR_OPACITY } from "./StackedConstants.js"
11
11
 
12
12
  interface MarimekkoBarsProps {
13
13
  entityName: string
@@ -13,49 +13,49 @@ import {
13
13
  makeIdForHumanConsumption,
14
14
  dyFromAlign,
15
15
  exposeInstanceOnWindow,
16
- } from "../../utils/index.ts"
16
+ } from "../../utils/index.js"
17
17
  import { action, computed, makeObservable, observable } from "mobx"
18
18
  import { observer } from "mobx-react"
19
19
  import {
20
20
  BASE_FONT_SIZE,
21
21
  DEFAULT_GRAPHER_BOUNDS,
22
22
  GRAPHER_FONT_SCALE_12,
23
- } from "../core/GrapherConstants"
24
- import { DualAxisComponent } from "../axis/AxisViews"
25
- import { NoDataModal } from "../noDataModal/NoDataModal"
26
- import { AxisConfig, AxisManager } from "../axis/AxisConfig"
27
- import { ChartInterface } from "../chart/ChartInterface"
23
+ } from "../core/GrapherConstants.js"
24
+ import { DualAxisComponent } from "../axis/AxisViews.js"
25
+ import { NoDataModal } from "../noDataModal/NoDataModal.js"
26
+ import { AxisConfig, AxisManager } from "../axis/AxisConfig.js"
27
+ import { ChartInterface } from "../chart/ChartInterface.js"
28
28
  import {
29
29
  EntityName,
30
30
  VerticalAlign,
31
31
  ColorScaleConfigInterface,
32
- } from "../../types/index.ts"
33
- import { ChartsTable, CoreColumn } from "../../core-table/index.ts"
34
- import { getShortNameForEntity } from "../chart/ChartUtils"
32
+ } from "../../types/index.js"
33
+ import { ChartsTable, CoreColumn } from "../../core-table/index.js"
34
+ import { getShortNameForEntity } from "../chart/ChartUtils.js"
35
35
  import {
36
36
  LEGEND_STYLE_FOR_STACKED_CHARTS,
37
37
  StackedSeries,
38
- } from "./StackedConstants"
39
- import { TooltipFooterIcon } from "../tooltip/TooltipProps.ts"
38
+ } from "./StackedConstants.js"
39
+ import { TooltipFooterIcon } from "../tooltip/TooltipProps.js"
40
40
  import {
41
41
  Tooltip,
42
42
  TooltipValue,
43
43
  TooltipState,
44
44
  makeTooltipRoundingNotice,
45
45
  makeTooltipToleranceNotice,
46
- } from "../tooltip/Tooltip"
46
+ } from "../tooltip/Tooltip.js"
47
47
  import {
48
48
  HorizontalCategoricalColorLegend,
49
49
  HorizontalColorLegendManager,
50
- } from "../legend/HorizontalColorLegends"
51
- import { CategoricalBin, ColorScaleBin } from "../color/ColorScaleBin"
50
+ } from "../legend/HorizontalColorLegends.js"
51
+ import { CategoricalBin, ColorScaleBin } from "../color/ColorScaleBin.js"
52
52
  import {
53
53
  LegendInteractionState,
54
54
  LegendStyleConfig,
55
- } from "../legend/LegendInteractionState"
56
- import { DualAxis, HorizontalAxis, VerticalAxis } from "../axis/Axis"
57
- import { ColorScale } from "../color/ColorScale"
58
- import { SelectionArray } from "../selection/SelectionArray"
55
+ } from "../legend/LegendInteractionState.js"
56
+ import { DualAxis, HorizontalAxis, VerticalAxis } from "../axis/Axis.js"
57
+ import { ColorScale } from "../color/ColorScale.js"
58
+ import { SelectionArray } from "../selection/SelectionArray.js"
59
59
  import {
60
60
  MarimekkoChartManager,
61
61
  Item,
@@ -65,11 +65,11 @@ import {
65
65
  LabelWithPlacement,
66
66
  LabelCandidateWithElement,
67
67
  Bar,
68
- } from "./MarimekkoChartConstants"
69
- import { MarimekkoChartState } from "./MarimekkoChartState"
70
- import { ChartComponentProps } from "../chart/ChartTypeMap.tsx"
71
- import { MarimekkoBars } from "./MarimekkoBars"
72
- import { toPlacedMarimekkoItems } from "./MarimekkoChartHelpers"
68
+ } from "./MarimekkoChartConstants.js"
69
+ import { MarimekkoChartState } from "./MarimekkoChartState.js"
70
+ import { ChartComponentProps } from "../chart/ChartTypeMap.js"
71
+ import { MarimekkoBars } from "./MarimekkoBars.js"
72
+ import { toPlacedMarimekkoItems } from "./MarimekkoChartHelpers.js"
73
73
 
74
74
  const MARKER_MARGIN: number = 4
75
75
  const MARKER_AREA_HEIGHT: number = 25