@buildcanada/charts 0.3.6 → 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
@@ -6,7 +6,7 @@ import {
6
6
  FooterItem,
7
7
  TooltipFadeMode,
8
8
  TooltipFooterIcon,
9
- } from "../tooltip/TooltipProps"
9
+ } from "../tooltip/TooltipProps.js"
10
10
  import {
11
11
  Tooltip,
12
12
  TooltipValue,
@@ -14,9 +14,9 @@ import {
14
14
  makeTooltipRoundingNotice,
15
15
  TooltipValueRange,
16
16
  formatTooltipRangeValues,
17
- } from "../tooltip/Tooltip"
18
- import { MapChartManager, MapColumnInfo } from "./MapChartConstants"
19
- import { ColorScale } from "../color/ColorScale"
17
+ } from "../tooltip/Tooltip.js"
18
+ import { MapChartManager, MapColumnInfo } from "./MapChartConstants.js"
19
+ import { ColorScale } from "../color/ColorScale.js"
20
20
  import {
21
21
  Time,
22
22
  EntityName,
@@ -24,17 +24,17 @@ import {
24
24
  AxisConfigInterface,
25
25
  ColumnSlug,
26
26
  PrimitiveType,
27
- } from "../../types/index"
28
- import { CoreColumn, ChartsTable } from "../../core-table/index"
27
+ } from "../../types/index.js"
28
+ import { CoreColumn, ChartsTable } from "../../core-table/index.js"
29
29
  import {
30
30
  calculateTrendDirection,
31
31
  excludeUndefined,
32
32
  PointVector,
33
- } from "../../utils/index"
34
- import { darkenColorForHighContrastText } from "../color/ColorUtils"
35
- import { MapSparkline, MapSparklineManager } from "./MapSparkline"
33
+ } from "../../utils/index.js"
34
+ import { darkenColorForHighContrastText } from "../color/ColorUtils.js"
35
+ import { MapSparkline, MapSparklineManager } from "./MapSparkline.js"
36
36
  import { match } from "ts-pattern"
37
- import { MapFormatValueForTooltip } from "./MapChartState"
37
+ import { MapFormatValueForTooltip } from "./MapChartState.js"
38
38
 
39
39
  interface MapTooltipProps {
40
40
  entityName: EntityName
@@ -13,14 +13,14 @@ import {
13
13
  getPhraseForProcessingLevel,
14
14
  triggerDownloadFromBlob,
15
15
  triggerDownloadFromUrl,
16
- } from "../../utils/index"
16
+ } from "../../utils/index.js"
17
17
  import {
18
18
  Checkbox,
19
19
  CodeSnippet,
20
20
  OverlayHeader,
21
21
  RadioButton,
22
22
  LoadingIndicator,
23
- } from "../../components/index"
23
+ } from "../../components/index.js"
24
24
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
25
25
  import {
26
26
  faCircleExclamation,
@@ -34,26 +34,26 @@ import {
34
34
  Origin,
35
35
  QueryParams,
36
36
  type GrapherImageDownloadEvent,
37
- } from "../../types/index"
37
+ } from "../../types/index.js"
38
38
  import {
39
39
  BlankChartsTable,
40
40
  ChartsTable,
41
41
  CoreColumn,
42
- } from "../../core-table/index"
43
- import { Modal } from "./Modal"
44
- import { GrapherRasterizeFn } from "../captionedChart/StaticChartRasterizer"
45
- import { TabItem, Tabs } from "../tabs/Tabs"
42
+ } from "../../core-table/index.js"
43
+ import { Modal } from "./Modal.js"
44
+ import { GrapherRasterizeFn } from "../captionedChart/StaticChartRasterizer.js"
45
+ import { TabItem, Tabs } from "../tabs/Tabs.js"
46
46
  import {
47
47
  DownloadIconFullDataset,
48
48
  DownloadIconSelected,
49
- } from "./DownloadIcons"
49
+ } from "./DownloadIcons.js"
50
50
  import { match } from "ts-pattern"
51
51
  import * as R from "remeda"
52
52
  import {
53
53
  DEFAULT_GRAPHER_BOUNDS,
54
54
  DEFAULT_GRAPHER_BOUNDS_SQUARE,
55
55
  GrapherModal,
56
- } from "../core/GrapherConstants"
56
+ } from "../core/GrapherConstants.js"
57
57
 
58
58
  export interface DownloadModalManager {
59
59
  displaySlug: string
@@ -1,14 +1,14 @@
1
1
  import { observer } from "mobx-react"
2
2
  import * as React from "react"
3
3
  import { computed, action, makeObservable } from "mobx"
4
- import { Bounds, Url } from "../../utils/index"
5
- import { Modal } from "./Modal"
4
+ import { Bounds, Url } from "../../utils/index.js"
5
+ import { Modal } from "./Modal.js"
6
6
  import {
7
7
  Checkbox,
8
8
  CodeSnippet,
9
9
  OverlayHeader,
10
- } from "../../components/index"
11
- import { DEFAULT_GRAPHER_BOUNDS, GrapherModal } from "../core/GrapherConstants"
10
+ } from "../../components/index.js"
11
+ import { DEFAULT_GRAPHER_BOUNDS, GrapherModal } from "../core/GrapherConstants.js"
12
12
 
13
13
  export interface EmbedModalManager {
14
14
  embedUrl?: string
@@ -1,13 +1,13 @@
1
1
  import * as React from "react"
2
2
  import { observer } from "mobx-react"
3
3
  import { computed, action, makeObservable } from "mobx"
4
- import { Bounds } from "../../utils/index"
5
- import { Modal } from "./Modal"
4
+ import { Bounds } from "../../utils/index.js"
5
+ import { Modal } from "./Modal.js"
6
6
  import {
7
7
  EntitySelector,
8
8
  EntitySelectorManager,
9
- } from "../entitySelector/EntitySelector"
10
- import { DEFAULT_GRAPHER_BOUNDS } from "../core/GrapherConstants"
9
+ } from "../entitySelector/EntitySelector.js"
10
+ import { DEFAULT_GRAPHER_BOUNDS } from "../core/GrapherConstants.js"
11
11
 
12
12
  export interface EntitySelectorModalManager extends EntitySelectorManager {
13
13
  isEntitySelectorModalOrDrawerOpen?: boolean
@@ -1,9 +1,9 @@
1
1
  import * as React from "react"
2
- import { Bounds, bind } from "../../utils/index"
2
+ import { Bounds, bind } from "../../utils/index.js"
3
3
  import {
4
4
  isElementInteractive,
5
5
  isTargetOutsideElement,
6
- } from "../chart/ChartUtils"
6
+ } from "../chart/ChartUtils.js"
7
7
 
8
8
  export class Modal extends React.Component<{
9
9
  bounds: Bounds
@@ -1,4 +1,4 @@
1
- import { CloseButton } from "../../components/index"
1
+ import { CloseButton } from "../../components/index.js"
2
2
 
3
3
  export function ModalHeader({
4
4
  title,
@@ -4,7 +4,7 @@ import {
4
4
  ExpandableToggle,
5
5
  HtmlOrSimpleMarkdownText,
6
6
  SimpleMarkdownText,
7
- } from "../../components/index"
7
+ } from "../../components/index.js"
8
8
 
9
9
  interface SourcesDescriptionsProps {
10
10
  descriptionShort?: string
@@ -1,7 +1,7 @@
1
1
  // @ts-nocheck
2
2
  import { Fragment } from "react"
3
3
  import cx from "classnames"
4
- import { ProcessingLevel, excludeNull } from "../../utils/index"
4
+ import { ProcessingLevel, excludeNull } from "../../utils/index.js"
5
5
  import {
6
6
  makeSource,
7
7
  makeLastUpdated,
@@ -10,7 +10,7 @@ import {
10
10
  makeUnit,
11
11
  makeUnitConversionFactor,
12
12
  makeLinks,
13
- } from "../../components/index"
13
+ } from "../../components/index.js"
14
14
  import * as R from "remeda"
15
15
 
16
16
  interface SourcesKeyDataTableProps {
@@ -13,7 +13,7 @@ import {
13
13
  joinTitleFragments,
14
14
  getCitationShort,
15
15
  getCitationLong,
16
- } from "../../utils/index"
16
+ } from "../../utils/index.js"
17
17
  import {
18
18
  IndicatorSources,
19
19
  IndicatorProcessing,
@@ -23,25 +23,25 @@ import {
23
23
  CLOSE_BUTTON_WIDTH,
24
24
  CloseButton,
25
25
  LoadingIndicator,
26
- } from "../../components/index"
26
+ } from "../../components/index.js"
27
27
  import * as React from "react"
28
28
  import cx from "classnames"
29
29
  import { action, computed, makeObservable, observable } from "mobx"
30
30
  import { observer } from "mobx-react"
31
31
  import { faPencilAlt } from "@fortawesome/free-solid-svg-icons"
32
32
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
33
- import { ColumnDef } from "../../types/index"
34
- import { CoreColumn } from "../../core-table/index"
35
- import { Modal } from "./Modal"
36
- import { SourcesKeyDataTable } from "./SourcesKeyDataTable"
37
- import { SourcesDescriptions } from "./SourcesDescriptions"
38
- import { TabItem, Tabs } from "../tabs/Tabs"
39
- import { TabsWithDropdown } from "../tabs/TabsWithDropdown"
33
+ import { ColumnDef } from "../../types/index.js"
34
+ import { CoreColumn } from "../../core-table/index.js"
35
+ import { Modal } from "./Modal.js"
36
+ import { SourcesKeyDataTable } from "./SourcesKeyDataTable.js"
37
+ import { SourcesDescriptions } from "./SourcesDescriptions.js"
38
+ import { TabItem, Tabs } from "../tabs/Tabs.js"
39
+ import { TabsWithDropdown } from "../tabs/TabsWithDropdown.js"
40
40
  import {
41
41
  DEFAULT_GRAPHER_BOUNDS,
42
42
  GrapherModal,
43
43
  isContinentsVariableId,
44
- } from "../core/GrapherConstants"
44
+ } from "../core/GrapherConstants.js"
45
45
 
46
46
  // keep in sync with variables in SourcesModal.scss
47
47
  const MAX_CONTENT_WIDTH = 640
@@ -2,16 +2,16 @@ import * as React from "react"
2
2
  import { computed, makeObservable } from "mobx"
3
3
  import { observer } from "mobx-react"
4
4
  import a from "indefinite"
5
- import { Bounds, VerticalAlign, dyFromAlign } from "../../utils/index"
5
+ import { Bounds, VerticalAlign, dyFromAlign } from "../../utils/index.js"
6
6
  import {
7
7
  BASE_FONT_SIZE,
8
8
  DEFAULT_GRAPHER_BOUNDS,
9
9
  DEFAULT_GRAPHER_ENTITY_TYPE,
10
10
  DEFAULT_GRAPHER_ENTITY_TYPE_PLURAL,
11
11
  GRAPHER_TEXT_OUTLINE_FACTOR,
12
- } from "../core/GrapherConstants"
13
- import { Halo } from "../../components/index"
14
- import { GRAPHER_DARK_TEXT, GRAPHER_LIGHT_TEXT } from "../color/ColorConstants"
12
+ } from "../core/GrapherConstants.js"
13
+ import { Halo } from "../../components/index.js"
14
+ import { GRAPHER_DARK_TEXT, GRAPHER_LIGHT_TEXT } from "../color/ColorConstants.js"
15
15
 
16
16
  export interface NoDataModalManager {
17
17
  canChangeEntity?: boolean
@@ -1,9 +1,9 @@
1
1
  import * as React from "react"
2
2
  import { computed, makeObservable } from "mobx"
3
- import { Triangle } from "./Triangle"
4
- import { TextWrap } from "../../components/index"
5
- import { BASE_FONT_SIZE } from "../core/GrapherConstants"
6
- import { makeIdForHumanConsumption } from "../../utils/index"
3
+ import { Triangle } from "./Triangle.js"
4
+ import { TextWrap } from "../../components/index.js"
5
+ import { BASE_FONT_SIZE } from "../core/GrapherConstants.js"
6
+ import { makeIdForHumanConsumption } from "../../utils/index.js"
7
7
  import * as _ from "lodash-es"
8
8
 
9
9
  export interface ConnectedScatterLegendManager {
@@ -1,10 +1,10 @@
1
1
  import * as React from "react"
2
- import { Bounds, HorizontalAlign } from "../../utils/index"
2
+ import { Bounds, HorizontalAlign } from "../../utils/index.js"
3
3
  import {
4
4
  GRAPHER_FONT_SCALE_11,
5
5
  GRAPHER_FONT_SCALE_12,
6
- } from "../core/GrapherConstants"
7
- import { GRAPHER_LIGHT_TEXT } from "../color/ColorConstants"
6
+ } from "../core/GrapherConstants.js"
7
+ import { GRAPHER_LIGHT_TEXT } from "../color/ColorConstants.js"
8
8
 
9
9
  export function NoDataSection({
10
10
  seriesNames,
@@ -1,6 +1,6 @@
1
1
  import * as _ from "lodash-es"
2
2
  import React from "react"
3
- import { EntitySelectionMode, SeriesName, Color } from "../../types/index"
3
+ import { EntitySelectionMode, SeriesName, Color } from "../../types/index.js"
4
4
  import { observable, computed, action, makeObservable } from "mobx"
5
5
  import { ScaleLinear, scaleSqrt } from "d3-scale"
6
6
  import { Quadtree, quadtree } from "d3-quadtree"
@@ -15,33 +15,33 @@ import {
15
15
  Bounds,
16
16
  isTouchDevice,
17
17
  makeIdForHumanConsumption,
18
- } from "../../utils/index"
18
+ } from "../../utils/index.js"
19
19
  import { observer } from "mobx-react"
20
- import { NoDataModal } from "../noDataModal/NoDataModal"
20
+ import { NoDataModal } from "../noDataModal/NoDataModal.js"
21
21
  import {
22
22
  BASE_FONT_SIZE,
23
23
  DEFAULT_GRAPHER_BOUNDS,
24
- } from "../core/GrapherConstants"
24
+ } from "../core/GrapherConstants.js"
25
25
  import {
26
26
  ChartsTable,
27
27
  isNotErrorValue,
28
28
  CoreColumn,
29
- } from "../../core-table/index"
29
+ } from "../../core-table/index.js"
30
30
  import {
31
31
  ConnectedScatterLegend,
32
32
  ConnectedScatterLegendManager,
33
- } from "./ConnectedScatterLegend"
33
+ } from "./ConnectedScatterLegend.js"
34
34
  import {
35
35
  VerticalColorLegend,
36
36
  VerticalColorLegendManager,
37
- } from "../legend/VerticalColorLegend"
38
- import { DualAxisComponent } from "../axis/AxisViews"
39
- import { DualAxis, HorizontalAxis, VerticalAxis } from "../axis/Axis"
40
-
41
- import { ColorScale, NO_DATA_LABEL } from "../color/ColorScale"
42
- import { AxisConfig, AxisManager } from "../axis/AxisConfig"
43
- import { ChartInterface } from "../chart/ChartInterface"
44
- import { getShortNameForEntity } from "../chart/ChartUtils"
37
+ } from "../legend/VerticalColorLegend.js"
38
+ import { DualAxisComponent } from "../axis/AxisViews.js"
39
+ import { DualAxis, HorizontalAxis, VerticalAxis } from "../axis/Axis.js"
40
+
41
+ import { ColorScale, NO_DATA_LABEL } from "../color/ColorScale.js"
42
+ import { AxisConfig, AxisManager } from "../axis/AxisConfig.js"
43
+ import { ChartInterface } from "../chart/ChartInterface.js"
44
+ import { getShortNameForEntity } from "../chart/ChartUtils.js"
45
45
  import {
46
46
  ScatterPlotManager,
47
47
  ScatterSeries,
@@ -52,25 +52,25 @@ import {
52
52
  SeriesPoint,
53
53
  ScatterPointQuadtreeNode,
54
54
  SCATTER_QUADTREE_SAMPLING_DISTANCE,
55
- } from "./ScatterPlotChartConstants"
56
- import { ScatterPointsWithLabels } from "./ScatterPointsWithLabels"
57
- import { ColorScaleBin } from "../color/ColorScaleBin"
55
+ } from "./ScatterPlotChartConstants.js"
56
+ import { ScatterPointsWithLabels } from "./ScatterPointsWithLabels.js"
57
+ import { ColorScaleBin } from "../color/ColorScaleBin.js"
58
58
  import {
59
59
  LegendInteractionState,
60
60
  LegendStyleConfig,
61
- } from "../legend/LegendInteractionState"
61
+ } from "../legend/LegendInteractionState.js"
62
62
  import {
63
63
  ScatterSizeLegend,
64
64
  ScatterSizeLegendManager,
65
- } from "./ScatterSizeLegend"
66
- import { TooltipState } from "../tooltip/Tooltip"
67
- import { NoDataSection } from "./NoDataSection"
68
- import { ScatterPlotChartState } from "./ScatterPlotChartState"
69
- import { ChartComponentProps } from "../chart/ChartTypeMap"
70
- import { toSizeRange } from "./ScatterUtils"
71
- import { ScatterPlotTooltip } from "./ScatterPlotTooltip"
72
- import { GRAY_100, GRAY_60 } from "../color/ColorConstants"
73
- import { INACTIVE_SCATTER_POINT_COLOR } from "./ScatterPoints"
65
+ } from "./ScatterSizeLegend.js"
66
+ import { TooltipState } from "../tooltip/Tooltip.js"
67
+ import { NoDataSection } from "./NoDataSection.js"
68
+ import { ScatterPlotChartState } from "./ScatterPlotChartState.js"
69
+ import { ChartComponentProps } from "../chart/ChartTypeMap.js"
70
+ import { toSizeRange } from "./ScatterUtils.js"
71
+ import { ScatterPlotTooltip } from "./ScatterPlotTooltip.js"
72
+ import { GRAY_100, GRAY_60 } from "../color/ColorConstants.js"
73
+ import { INACTIVE_SCATTER_POINT_COLOR } from "./ScatterPoints.js"
74
74
 
75
75
  export type ScatterPlotChartProps = ChartComponentProps<ScatterPlotChartState>
76
76
 
@@ -1,10 +1,10 @@
1
1
  import { ScaleLinear } from "d3-scale"
2
2
  import { Quadtree } from "d3-quadtree"
3
- import { ChartsTable } from "../../core-table/index"
4
- import { DualAxis } from "../axis/Axis"
5
- import { ChartManager } from "../chart/ChartManager"
6
- import { NoDataModalManager } from "../noDataModal/NoDataModal"
7
- import { ColorScale } from "../color/ColorScale"
3
+ import { ChartsTable } from "../../core-table/index.js"
4
+ import { DualAxis } from "../axis/Axis.js"
5
+ import { ChartManager } from "../chart/ChartManager.js"
6
+ import { NoDataModalManager } from "../noDataModal/NoDataModal.js"
7
+ import { ColorScale } from "../color/ColorScale.js"
8
8
  import {
9
9
  ScatterPointLabelStrategy,
10
10
  EntitySelectionMode,
@@ -12,17 +12,17 @@ import {
12
12
  Color,
13
13
  Time,
14
14
  EntityName,
15
- } from "../../types/index"
15
+ } from "../../types/index.js"
16
16
  import {
17
17
  GRAPHER_FONT_SCALE_10,
18
18
  GRAPHER_FONT_SCALE_10_5,
19
19
  GRAPHER_FONT_SCALE_12,
20
20
  GRAPHER_FONT_SCALE_13,
21
- } from "../core/GrapherConstants"
21
+ } from "../core/GrapherConstants.js"
22
22
 
23
- import { Bounds, PointVector } from "../../utils/index"
24
- import { ChartSeries } from "../chart/ChartInterface"
25
- import { InteractionState } from "../interaction/InteractionState"
23
+ import { Bounds, PointVector } from "../../utils/index.js"
24
+ import { ChartSeries } from "../chart/ChartInterface.js"
25
+ import { InteractionState } from "../interaction/InteractionState.js"
26
26
 
27
27
  export interface ScatterPlotManager extends ChartManager {
28
28
  hideConnectedScatterLines?: boolean
@@ -5,21 +5,21 @@ import {
5
5
  defaultIfErrorValue,
6
6
  isNotErrorValue,
7
7
  ChartsTable,
8
- } from "../../core-table/index"
9
- import { ChartState } from "../chart/ChartInterface"
10
- import { ColorScale, ColorScaleManager } from "../color/ColorScale"
8
+ } from "../../core-table/index.js"
9
+ import { ChartState } from "../chart/ChartInterface.js"
10
+ import { ColorScale, ColorScaleManager } from "../color/ColorScale.js"
11
11
  import {
12
12
  SCATTER_POINT_DEFAULT_COLOR,
13
13
  ScatterPlotManager,
14
14
  ScatterSeries,
15
15
  SeriesPoint,
16
- } from "./ScatterPlotChartConstants"
16
+ } from "./ScatterPlotChartConstants.js"
17
17
  import { computed, makeObservable } from "mobx"
18
18
  import {
19
19
  autoDetectYColumnSlugs,
20
20
  getShortNameForEntity,
21
21
  makeSelectionArray,
22
- } from "../chart/ChartUtils"
22
+ } from "../chart/ChartUtils.js"
23
23
  import {
24
24
  ChartErrorInfo,
25
25
  ColorSchemeName,
@@ -29,20 +29,20 @@ import {
29
29
  ColorScaleConfigInterface,
30
30
  SeriesName,
31
31
  ValueRange,
32
- } from "../../types/index"
32
+ } from "../../types/index.js"
33
33
  import {
34
34
  domainExtent,
35
35
  intersection,
36
36
  lowerCaseFirstLetterUnlessAbbreviation,
37
- } from "../../utils/index"
38
- import { ColorScaleConfig } from "../color/ColorScaleConfig"
39
- import { NO_DATA_GRAY } from "../color/ColorConstants"
40
- import { AxisConfig } from "../axis/AxisConfig"
41
- import { BASE_FONT_SIZE } from "../core/GrapherConstants"
42
- import { SelectionArray } from "../selection/SelectionArray"
43
- import { computeSizeDomain } from "./ScatterUtils"
44
- import { FocusArray } from "../focus/FocusArray"
45
- import { HorizontalAxis, VerticalAxis } from "../axis/Axis"
37
+ } from "../../utils/index.js"
38
+ import { ColorScaleConfig } from "../color/ColorScaleConfig.js"
39
+ import { NO_DATA_GRAY } from "../color/ColorConstants.js"
40
+ import { AxisConfig } from "../axis/AxisConfig.js"
41
+ import { BASE_FONT_SIZE } from "../core/GrapherConstants.js"
42
+ import { SelectionArray } from "../selection/SelectionArray.js"
43
+ import { computeSizeDomain } from "./ScatterUtils.js"
44
+ import { FocusArray } from "../focus/FocusArray.js"
45
+ import { HorizontalAxis, VerticalAxis } from "../axis/Axis.js"
46
46
 
47
47
  export class ScatterPlotChartState implements ChartState, ColorScaleManager {
48
48
  manager: ScatterPlotManager
@@ -2,26 +2,26 @@ import * as _ from "lodash-es"
2
2
  import React from "react"
3
3
  import { computed, makeObservable } from "mobx"
4
4
  import { observer } from "mobx-react"
5
- import { ChartInterface } from "../chart/ChartInterface"
6
- import { ScatterPlotChartState } from "./ScatterPlotChartState"
7
- import { type ScatterPlotChartProps } from "./ScatterPlotChart"
5
+ import { ChartInterface } from "../chart/ChartInterface.js"
6
+ import { ScatterPlotChartState } from "./ScatterPlotChartState.js"
7
+ import { type ScatterPlotChartProps } from "./ScatterPlotChart.js"
8
8
  import { ScaleLinear, scaleSqrt } from "d3-scale"
9
- import { DualAxis, HorizontalAxis, VerticalAxis } from "../axis/Axis"
10
- import { Bounds } from "../../utils/index"
9
+ import { DualAxis, HorizontalAxis, VerticalAxis } from "../axis/Axis.js"
10
+ import { Bounds } from "../../utils/index.js"
11
11
  import {
12
12
  BASE_FONT_SIZE,
13
13
  DEFAULT_GRAPHER_BOUNDS,
14
- } from "../core/GrapherConstants"
15
- import { AxisConfig, AxisManager } from "../axis/AxisConfig"
14
+ } from "../core/GrapherConstants.js"
15
+ import { AxisConfig, AxisManager } from "../axis/AxisConfig.js"
16
16
  import {
17
17
  SCATTER_LINE_MIN_WIDTH,
18
18
  SCATTER_POINT_MIN_RADIUS,
19
19
  ScatterPlotManager,
20
- } from "./ScatterPlotChartConstants"
21
- import { toSizeRange } from "./ScatterUtils"
22
- import { DualAxisComponent } from "../axis/AxisViews"
23
- import { ScatterPointsWithLabels } from "./ScatterPointsWithLabels"
24
- import { NoDataModal } from "../noDataModal/NoDataModal"
20
+ } from "./ScatterPlotChartConstants.js"
21
+ import { toSizeRange } from "./ScatterUtils.js"
22
+ import { DualAxisComponent } from "../axis/AxisViews.js"
23
+ import { ScatterPointsWithLabels } from "./ScatterPointsWithLabels.js"
24
+ import { NoDataModal } from "../noDataModal/NoDataModal.js"
25
25
 
26
26
  @observer
27
27
  export class ScatterPlotChartThumbnail
@@ -9,8 +9,8 @@ import {
9
9
  calculateTrendDirection,
10
10
  Time,
11
11
  RequiredBy,
12
- } from "../../utils/index"
13
- import { CoreColumn } from "../../core-table/index"
12
+ } from "../../utils/index.js"
13
+ import { CoreColumn } from "../../core-table/index.js"
14
14
  import {
15
15
  Tooltip,
16
16
  TooltipState,
@@ -19,10 +19,10 @@ import {
19
19
  makeTooltipRoundingNotice,
20
20
  formatTooltipRangeValues,
21
21
  TooltipValue,
22
- } from "../tooltip/Tooltip"
23
- import { FooterItem, TooltipFooterIcon } from "../tooltip/TooltipProps"
24
- import { ScatterSeries, SeriesPoint } from "./ScatterPlotChartConstants"
25
- import { ScatterPlotChartState } from "./ScatterPlotChartState"
22
+ } from "../tooltip/Tooltip.js"
23
+ import { FooterItem, TooltipFooterIcon } from "../tooltip/TooltipProps.js"
24
+ import { ScatterSeries, SeriesPoint } from "./ScatterPlotChartConstants.js"
25
+ import { ScatterPlotChartState } from "./ScatterPlotChartState.js"
26
26
 
27
27
  export interface ScatterPlotTooltipProps {
28
28
  chartState: ScatterPlotChartState
@@ -1,14 +1,14 @@
1
1
  import * as R from "remeda"
2
- import { PointVector, makeIdForHumanConsumption } from "../../utils/index"
2
+ import { PointVector, makeIdForHumanConsumption } from "../../utils/index.js"
3
3
  import { observer } from "mobx-react"
4
4
  import * as React from "react"
5
- import { MultiColorPolyline } from "./MultiColorPolyline"
5
+ import { MultiColorPolyline } from "./MultiColorPolyline.js"
6
6
  import {
7
7
  ScatterRenderSeries,
8
8
  SCATTER_POINT_OPACITY,
9
9
  SCATTER_POINT_STROKE_WIDTH,
10
- } from "./ScatterPlotChartConstants"
11
- import { Triangle } from "./Triangle"
10
+ } from "./ScatterPlotChartConstants.js"
11
+ import { Triangle } from "./Triangle.js"
12
12
 
13
13
  interface ScatterPointProps {
14
14
  series: ScatterRenderSeries
@@ -2,8 +2,8 @@ import * as _ from "lodash-es"
2
2
  import * as R from "remeda"
3
3
  import { type BaseType, type Selection, select } from "d3-selection"
4
4
  import { ScaleLinear } from "d3-scale"
5
- import { NoDataModal } from "../noDataModal/NoDataModal"
6
- import { SortOrder } from "../../types/index"
5
+ import { NoDataModal } from "../noDataModal/NoDataModal.js"
6
+ import { SortOrder } from "../../types/index.js"
7
7
  import {
8
8
  Bounds,
9
9
  PointVector,
@@ -13,12 +13,12 @@ import {
13
13
  intersection,
14
14
  guid,
15
15
  makeIdForHumanConsumption,
16
- } from "../../utils/index"
16
+ } from "../../utils/index.js"
17
17
  import { computed, action, observable, makeObservable } from "mobx"
18
18
  import { observer } from "mobx-react"
19
19
  import * as React from "react"
20
- import { Halo } from "../../components/index"
21
- import { MultiColorPolyline } from "./MultiColorPolyline"
20
+ import { Halo } from "../../components/index.js"
21
+ import { MultiColorPolyline } from "./MultiColorPolyline.js"
22
22
  import {
23
23
  ScatterPointsWithLabelsProps,
24
24
  ScatterRenderSeries,
@@ -29,20 +29,20 @@ import {
29
29
  SCATTER_POINT_HOVER_TARGET_RANGE,
30
30
  ScatterRenderPoint,
31
31
  SCATTER_LABEL_MIN_FONT_SIZE_FACTOR,
32
- } from "./ScatterPlotChartConstants"
33
- import { ScatterLine, ScatterPoint } from "./ScatterPoints"
32
+ } from "./ScatterPlotChartConstants.js"
33
+ import { ScatterLine, ScatterPoint } from "./ScatterPoints.js"
34
34
  import {
35
35
  makeStartLabel,
36
36
  makeMidLabels,
37
37
  makeEndLabel,
38
38
  labelPriority,
39
- } from "./ScatterUtils"
40
- import { Triangle } from "./Triangle"
41
- import { ColorScale } from "../color/ColorScale"
39
+ } from "./ScatterUtils.js"
40
+ import { Triangle } from "./Triangle.js"
41
+ import { ColorScale } from "../color/ColorScale.js"
42
42
  import {
43
43
  BASE_FONT_SIZE,
44
44
  GRAPHER_TEXT_OUTLINE_FACTOR,
45
- } from "../core/GrapherConstants"
45
+ } from "../core/GrapherConstants.js"
46
46
 
47
47
  // This is the component that actually renders the points. The higher level ScatterPlot class renders points, legends, comparison lines, etc.
48
48
  @observer