@mui/x-charts-pro 9.8.0 → 9.9.0

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 (157) hide show
  1. package/BarChartPro/BarChartPro.d.mts +9 -1
  2. package/BarChartPro/BarChartPro.d.ts +9 -1
  3. package/BarChartPro/BarChartPro.js +14 -3
  4. package/BarChartPro/BarChartPro.mjs +14 -3
  5. package/BarChartPro/BarChartPro.plugins.d.mts +2 -1
  6. package/BarChartPro/BarChartPro.plugins.d.ts +2 -1
  7. package/BarChartPro/BarChartPro.plugins.js +2 -1
  8. package/BarChartPro/BarChartPro.plugins.mjs +2 -1
  9. package/CHANGELOG.md +119 -0
  10. package/ChartsContainerPro/useChartsContainerProProps.d.mts +6 -2
  11. package/ChartsContainerPro/useChartsContainerProProps.d.ts +6 -2
  12. package/ChartsContainerPro/useChartsContainerProProps.js +9 -1
  13. package/ChartsContainerPro/useChartsContainerProProps.mjs +8 -1
  14. package/ChartsDataProviderPro/ChartsDataProviderPro.d.mts +1 -1
  15. package/ChartsDataProviderPro/ChartsDataProviderPro.d.ts +1 -1
  16. package/ChartsDataProviderPro/ChartsDataProviderPro.js +14 -3
  17. package/ChartsDataProviderPro/ChartsDataProviderPro.mjs +14 -3
  18. package/ChartsToolbarPro/ChartsToolbarPro.d.mts +2 -1
  19. package/ChartsToolbarPro/ChartsToolbarPro.d.ts +2 -1
  20. package/ChartsToolbarPro/internals/ChartsMenu.d.mts +1 -1
  21. package/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
  22. package/ChartsZoomSlider/ChartsZoomSlider.d.mts +2 -1
  23. package/ChartsZoomSlider/ChartsZoomSlider.d.ts +2 -1
  24. package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.d.mts +2 -1
  25. package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.d.ts +2 -1
  26. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.d.mts +2 -1
  27. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.d.ts +2 -1
  28. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.d.mts +2 -1
  29. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.d.ts +2 -1
  30. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.d.mts +2 -1
  31. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.d.ts +2 -1
  32. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.d.mts +1 -1
  33. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.d.ts +1 -1
  34. package/ChartsZoomSlider/internals/ChartsTooltipZoomSliderValue.d.mts +1 -1
  35. package/ChartsZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
  36. package/ChartsZoomSlider/internals/previews/AreaPreviewPlot.d.mts +1 -1
  37. package/ChartsZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
  38. package/ChartsZoomSlider/internals/previews/BarPreviewPlot.d.mts +1 -1
  39. package/ChartsZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -1
  40. package/ChartsZoomSlider/internals/previews/LineAreaPreviewPlot.d.mts +2 -1
  41. package/ChartsZoomSlider/internals/previews/LineAreaPreviewPlot.d.ts +2 -1
  42. package/ChartsZoomSlider/internals/previews/LinePreviewPlot.d.mts +1 -1
  43. package/ChartsZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
  44. package/ChartsZoomSlider/internals/previews/LinePreviewPlot.js +16 -1
  45. package/ChartsZoomSlider/internals/previews/LinePreviewPlot.mjs +17 -2
  46. package/ChartsZoomSlider/internals/previews/ScatterPreviewPlot.d.mts +2 -1
  47. package/ChartsZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +2 -1
  48. package/FunnelChart/FocusedFunnelSection.d.mts +1 -1
  49. package/FunnelChart/FocusedFunnelSection.d.ts +1 -1
  50. package/FunnelChart/FunnelPlot.d.mts +1 -1
  51. package/FunnelChart/FunnelPlot.d.ts +1 -1
  52. package/FunnelChart/seriesConfig/index.js +2 -2
  53. package/FunnelChart/seriesConfig/index.mjs +2 -2
  54. package/FunnelChart/seriesConfig/tooltipPosition.d.mts +2 -3
  55. package/FunnelChart/seriesConfig/tooltipPosition.d.ts +2 -3
  56. package/FunnelChart/seriesConfig/tooltipPosition.js +11 -15
  57. package/FunnelChart/seriesConfig/tooltipPosition.mjs +11 -15
  58. package/Heatmap/FocusedHeatmapCell.d.mts +1 -1
  59. package/Heatmap/FocusedHeatmapCell.d.ts +1 -1
  60. package/Heatmap/HeatmapItem.d.mts +1 -1
  61. package/Heatmap/HeatmapItem.d.ts +1 -1
  62. package/Heatmap/HeatmapSVGPlot.d.mts +2 -1
  63. package/Heatmap/HeatmapSVGPlot.d.ts +2 -1
  64. package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.mts +1 -1
  65. package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -1
  66. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.mts +1 -1
  67. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -1
  68. package/Heatmap/seriesConfig/index.js +2 -2
  69. package/Heatmap/seriesConfig/index.mjs +2 -2
  70. package/Heatmap/seriesConfig/tooltipPosition.d.mts +2 -3
  71. package/Heatmap/seriesConfig/tooltipPosition.d.ts +2 -3
  72. package/Heatmap/seriesConfig/tooltipPosition.js +12 -16
  73. package/Heatmap/seriesConfig/tooltipPosition.mjs +12 -16
  74. package/LineChartPro/LineChartPro.d.mts +11 -1
  75. package/LineChartPro/LineChartPro.d.ts +11 -1
  76. package/LineChartPro/LineChartPro.js +16 -3
  77. package/LineChartPro/LineChartPro.mjs +16 -3
  78. package/LineChartPro/LineChartPro.plugins.d.mts +2 -1
  79. package/LineChartPro/LineChartPro.plugins.d.ts +2 -1
  80. package/LineChartPro/LineChartPro.plugins.js +2 -1
  81. package/LineChartPro/LineChartPro.plugins.mjs +2 -1
  82. package/SankeyChart/FocusedSankeyLink.d.mts +1 -1
  83. package/SankeyChart/FocusedSankeyLink.d.ts +1 -1
  84. package/SankeyChart/FocusedSankeyNode.d.mts +1 -1
  85. package/SankeyChart/FocusedSankeyNode.d.ts +1 -1
  86. package/SankeyChart/SankeyDataProvider.d.mts +1 -1
  87. package/SankeyChart/SankeyDataProvider.d.ts +1 -1
  88. package/SankeyChart/SankeyLinkLabelPlot.d.mts +1 -1
  89. package/SankeyChart/SankeyLinkLabelPlot.d.ts +1 -1
  90. package/SankeyChart/SankeyLinkPlot.d.mts +1 -1
  91. package/SankeyChart/SankeyLinkPlot.d.ts +1 -1
  92. package/SankeyChart/SankeyNodeLabelPlot.d.mts +1 -1
  93. package/SankeyChart/SankeyNodeLabelPlot.d.ts +1 -1
  94. package/SankeyChart/SankeyNodePlot.d.mts +1 -1
  95. package/SankeyChart/SankeyNodePlot.d.ts +1 -1
  96. package/SankeyChart/SankeyPlot.d.mts +1 -1
  97. package/SankeyChart/SankeyPlot.d.ts +1 -1
  98. package/SankeyChart/SankeyTooltip/SankeyTooltip.d.mts +1 -1
  99. package/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -1
  100. package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.mts +1 -1
  101. package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -1
  102. package/SankeyChart/seriesConfig/index.js +2 -2
  103. package/SankeyChart/seriesConfig/index.mjs +2 -2
  104. package/SankeyChart/seriesConfig/tooltipPosition.d.mts +2 -3
  105. package/SankeyChart/seriesConfig/tooltipPosition.d.ts +2 -3
  106. package/SankeyChart/seriesConfig/tooltipPosition.js +6 -11
  107. package/SankeyChart/seriesConfig/tooltipPosition.mjs +5 -10
  108. package/index.js +1 -1
  109. package/index.mjs +1 -1
  110. package/internals/ChartsWatermark.d.mts +2 -1
  111. package/internals/ChartsWatermark.d.ts +2 -1
  112. package/internals/index.d.mts +2 -0
  113. package/internals/index.d.ts +2 -0
  114. package/internals/index.js +30 -0
  115. package/internals/index.mjs +2 -0
  116. package/internals/material/components/BaseMenuItem.d.mts +1 -1
  117. package/internals/material/components/BaseMenuItem.d.ts +1 -1
  118. package/internals/material/components/BasePopper.d.mts +2 -1
  119. package/internals/material/components/BasePopper.d.ts +2 -1
  120. package/internals/plugins/useChartProSampling/barSampler.d.mts +8 -0
  121. package/internals/plugins/useChartProSampling/barSampler.d.ts +8 -0
  122. package/internals/plugins/useChartProSampling/barSampler.js +18 -0
  123. package/internals/plugins/useChartProSampling/barSampler.mjs +12 -0
  124. package/internals/plugins/useChartProSampling/index.d.mts +2 -0
  125. package/internals/plugins/useChartProSampling/index.d.ts +2 -0
  126. package/internals/plugins/useChartProSampling/index.js +12 -0
  127. package/internals/plugins/useChartProSampling/index.mjs +1 -0
  128. package/internals/plugins/useChartProSampling/lineSampler.d.mts +8 -0
  129. package/internals/plugins/useChartProSampling/lineSampler.d.ts +8 -0
  130. package/internals/plugins/useChartProSampling/lineSampler.js +47 -0
  131. package/internals/plugins/useChartProSampling/lineSampler.mjs +41 -0
  132. package/internals/plugins/useChartProSampling/sampling.d.mts +38 -0
  133. package/internals/plugins/useChartProSampling/sampling.d.ts +38 -0
  134. package/internals/plugins/useChartProSampling/sampling.js +175 -0
  135. package/internals/plugins/useChartProSampling/sampling.line.d.mts +22 -0
  136. package/internals/plugins/useChartProSampling/sampling.line.d.ts +22 -0
  137. package/internals/plugins/useChartProSampling/sampling.line.js +172 -0
  138. package/internals/plugins/useChartProSampling/sampling.line.mjs +164 -0
  139. package/internals/plugins/useChartProSampling/sampling.mjs +164 -0
  140. package/internals/plugins/useChartProSampling/sampling.pyramid.types.d.mts +33 -0
  141. package/internals/plugins/useChartProSampling/sampling.pyramid.types.d.ts +33 -0
  142. package/internals/plugins/useChartProSampling/sampling.pyramid.types.js +5 -0
  143. package/internals/plugins/useChartProSampling/sampling.pyramid.types.mjs +1 -0
  144. package/internals/plugins/useChartProSampling/useChartProSampling.d.mts +4 -0
  145. package/internals/plugins/useChartProSampling/useChartProSampling.d.ts +4 -0
  146. package/internals/plugins/useChartProSampling/useChartProSampling.js +59 -0
  147. package/internals/plugins/useChartProSampling/useChartProSampling.mjs +52 -0
  148. package/internals/plugins/useChartProSampling/useChartProSampling.types.d.mts +25 -0
  149. package/internals/plugins/useChartProSampling/useChartProSampling.types.d.ts +25 -0
  150. package/internals/plugins/useChartProSampling/useChartProSampling.types.js +5 -0
  151. package/internals/plugins/useChartProSampling/useChartProSampling.types.mjs +1 -0
  152. package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.d.mts +4 -3
  153. package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.d.ts +4 -3
  154. package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.mjs +1 -0
  155. package/package.json +6 -6
  156. package/typeOverloads/modules.d.mts +9 -1
  157. package/typeOverloads/modules.d.ts +9 -1
@@ -0,0 +1,52 @@
1
+ 'use client';
2
+
3
+ import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import { useEffectAfterFirstRender } from '@mui/x-internals/useEffectAfterFirstRender';
5
+ import { isDeepEqual } from '@mui/x-internals/isDeepEqual';
6
+ /** Toggles sampling. Pyramids and level selection live in community selectors. */
7
+ export const useChartProSampling = ({
8
+ params,
9
+ store
10
+ }) => {
11
+ const {
12
+ sampling
13
+ } = params;
14
+ useEffectAfterFirstRender(() => {
15
+ // Skip the update when unchanged so an inlined `sampling` config (a new object each render, e.g.
16
+ // in composition) doesn't replace the state and force the pyramids to recompute every render.
17
+ const next = toSamplingState(sampling);
18
+ if (!isDeepEqual(store.state.sampling, next)) {
19
+ store.set('sampling', next);
20
+ }
21
+ }, [sampling, store]);
22
+ return {};
23
+ };
24
+
25
+ /** Maps the per-series-type `sampling` config to the internal state (enabled methods per type). */
26
+ function toSamplingState(sampling = {}) {
27
+ const methods = {};
28
+ // Iterate generically so a new series type only needs its `sampling` config entry, no edit here.
29
+ Object.keys(sampling).forEach(seriesType => {
30
+ const method = sampling[seriesType];
31
+ if (method && method !== 'none') {
32
+ methods[seriesType] = method;
33
+ }
34
+ });
35
+ return {
36
+ enabled: Object.keys(methods).length > 0,
37
+ methods
38
+ };
39
+ }
40
+ useChartProSampling.params = {
41
+ sampling: true
42
+ };
43
+ useChartProSampling.getDefaultizedParams = ({
44
+ params
45
+ }) => _extends({}, params, {
46
+ sampling: params.sampling ?? {}
47
+ });
48
+ useChartProSampling.getInitialState = ({
49
+ sampling
50
+ }) => ({
51
+ sampling: toSamplingState(sampling)
52
+ });
@@ -0,0 +1,25 @@
1
+ import type { SamplingState, SamplingConfig, ChartPluginSignature, UseChartCartesianAxisSignature, UseChartSeriesSignature } from '@mui/x-charts/internals';
2
+ export interface UseChartProSamplingParameters {
3
+ /**
4
+ * Per-series-type sampling configuration used to render large datasets when zoomed out.
5
+ * Each series type accepts only the methods valid for it:
6
+ * - bar: `'none'` | `'minmax'`.
7
+ * - line: `'none'` | `'minmax'` | `'m4'` | `'lttb'`.
8
+ *
9
+ * @example { line: 'lttb', bar: 'minmax' }
10
+ * @default {}
11
+ */
12
+ sampling?: SamplingConfig;
13
+ }
14
+ export interface UseChartProSamplingDefaultizedParameters {
15
+ sampling: SamplingConfig;
16
+ }
17
+ export interface UseChartProSamplingState {
18
+ sampling: SamplingState;
19
+ }
20
+ export type UseChartProSamplingSignature = ChartPluginSignature<{
21
+ params: UseChartProSamplingParameters;
22
+ defaultizedParams: UseChartProSamplingDefaultizedParameters;
23
+ state: UseChartProSamplingState;
24
+ dependencies: [UseChartSeriesSignature, UseChartCartesianAxisSignature];
25
+ }>;
@@ -0,0 +1,25 @@
1
+ import type { SamplingState, SamplingConfig, ChartPluginSignature, UseChartCartesianAxisSignature, UseChartSeriesSignature } from '@mui/x-charts/internals';
2
+ export interface UseChartProSamplingParameters {
3
+ /**
4
+ * Per-series-type sampling configuration used to render large datasets when zoomed out.
5
+ * Each series type accepts only the methods valid for it:
6
+ * - bar: `'none'` | `'minmax'`.
7
+ * - line: `'none'` | `'minmax'` | `'m4'` | `'lttb'`.
8
+ *
9
+ * @example { line: 'lttb', bar: 'minmax' }
10
+ * @default {}
11
+ */
12
+ sampling?: SamplingConfig;
13
+ }
14
+ export interface UseChartProSamplingDefaultizedParameters {
15
+ sampling: SamplingConfig;
16
+ }
17
+ export interface UseChartProSamplingState {
18
+ sampling: SamplingState;
19
+ }
20
+ export type UseChartProSamplingSignature = ChartPluginSignature<{
21
+ params: UseChartProSamplingParameters;
22
+ defaultizedParams: UseChartProSamplingDefaultizedParameters;
23
+ state: UseChartProSamplingState;
24
+ dependencies: [UseChartSeriesSignature, UseChartCartesianAxisSignature];
25
+ }>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1,5 +1,4 @@
1
- import type { ChartPlugin } from '@mui/x-charts/internals';
2
- import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
1
+ import type { ChartUsedInstance } from '@mui/x-charts/internals';
3
2
  /**
4
3
  * Registers the gestures required by the zoom feature.
5
4
  * They are registered here instead of in the core interaction listener plugin
@@ -7,4 +6,6 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
7
6
  */
8
7
  export declare const useRegisterZoomGestures: ({
9
8
  instance
10
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "instance">) => void;
9
+ }: {
10
+ instance: ChartUsedInstance<any>;
11
+ }) => void;
@@ -1,5 +1,4 @@
1
- import type { ChartPlugin } from '@mui/x-charts/internals';
2
- import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
1
+ import type { ChartUsedInstance } from '@mui/x-charts/internals';
3
2
  /**
4
3
  * Registers the gestures required by the zoom feature.
5
4
  * They are registered here instead of in the core interaction listener plugin
@@ -7,4 +6,6 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
7
6
  */
8
7
  export declare const useRegisterZoomGestures: ({
9
8
  instance
10
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "instance">) => void;
9
+ }: {
10
+ instance: ChartUsedInstance<any>;
11
+ }) => void;
@@ -2,6 +2,7 @@
2
2
 
3
3
  import * as React from 'react';
4
4
  import { PanGesture, PinchGesture, PressAndDragGesture, TapAndDragGesture, TapGesture, TurnWheelGesture } from '@mui/x-internal-gestures/core';
5
+
5
6
  /**
6
7
  * Registers the gestures required by the zoom feature.
7
8
  * They are registered here instead of in the core interaction listener plugin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-charts-pro",
3
- "version": "9.8.0",
3
+ "version": "9.9.0",
4
4
  "author": "MUI Team",
5
5
  "description": "The Pro plan edition of the MUI X Charts components.",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -28,14 +28,14 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@babel/runtime": "^7.29.7",
31
- "@mui/utils": "^9.1.1",
31
+ "@mui/utils": "^9.2.0",
32
32
  "clsx": "^2.1.1",
33
33
  "prop-types": "^15.8.1",
34
34
  "@mui/x-charts-vendor": "^9.4.0",
35
- "@mui/x-charts": "^9.8.0",
36
- "@mui/x-internal-gestures": "^9.8.0",
37
- "@mui/x-internals": "^9.8.0",
38
- "@mui/x-license": "^9.8.0"
35
+ "@mui/x-charts": "^9.9.0",
36
+ "@mui/x-internal-gestures": "^9.9.0",
37
+ "@mui/x-license": "^9.9.0",
38
+ "@mui/x-internals": "^9.9.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@emotion/react": "^11.9.0",
@@ -1,5 +1,5 @@
1
1
  import type { DefaultizedProps, MakeRequired } from '@mui/x-internals/types';
2
- import type { AxisId, CommonHighlightScope, SeriesId, ComputedXAxis, ComputedYAxis, ZoomOptions } from '@mui/x-charts/internals';
2
+ import type { AxisId, CommonHighlightScope, SeriesId, ComputedXAxis, ComputedYAxis, ZoomOptions, BarSamplingMethod, SamplingMethod } from '@mui/x-charts/internals';
3
3
  import type { DefaultizedFunnelSeriesType, FunnelItemIdentifier, FunnelSeriesType, FunnelValueType } from "../FunnelChart/funnel.types.mjs";
4
4
  import type { HeatmapItemIdentifier, HeatmapItemIdentifierWithData, HeatmapSeriesType, DefaultizedHeatmapSeriesType, HeatmapValueType } from "../models/seriesType/heatmap.mjs";
5
5
  import type { SankeyLayout, SankeySeriesType, DefaultizedSankeySeriesType, SankeyItemIdentifier, SankeyItemIdentifierWithData } from "../SankeyChart/sankey.types.mjs";
@@ -71,6 +71,14 @@ declare module '@mui/x-charts/internals' {
71
71
  highlightIdentifier: SankeyItemIdentifier;
72
72
  };
73
73
  }
74
+ interface BarSeriesExtension {
75
+ /** Bar `sampling` method. */
76
+ samplingMethod: BarSamplingMethod;
77
+ }
78
+ interface LineSeriesExtension {
79
+ /** Line `sampling` method. */
80
+ samplingMethod: SamplingMethod;
81
+ }
74
82
  interface DefaultizedZoomOptions extends Required<ZoomOptions> {
75
83
  axisId: AxisId;
76
84
  axisDirection: 'x' | 'y';
@@ -1,5 +1,5 @@
1
1
  import type { DefaultizedProps, MakeRequired } from '@mui/x-internals/types';
2
- import type { AxisId, CommonHighlightScope, SeriesId, ComputedXAxis, ComputedYAxis, ZoomOptions } from '@mui/x-charts/internals';
2
+ import type { AxisId, CommonHighlightScope, SeriesId, ComputedXAxis, ComputedYAxis, ZoomOptions, BarSamplingMethod, SamplingMethod } from '@mui/x-charts/internals';
3
3
  import type { DefaultizedFunnelSeriesType, FunnelItemIdentifier, FunnelSeriesType, FunnelValueType } from "../FunnelChart/funnel.types.js";
4
4
  import type { HeatmapItemIdentifier, HeatmapItemIdentifierWithData, HeatmapSeriesType, DefaultizedHeatmapSeriesType, HeatmapValueType } from "../models/seriesType/heatmap.js";
5
5
  import type { SankeyLayout, SankeySeriesType, DefaultizedSankeySeriesType, SankeyItemIdentifier, SankeyItemIdentifierWithData } from "../SankeyChart/sankey.types.js";
@@ -71,6 +71,14 @@ declare module '@mui/x-charts/internals' {
71
71
  highlightIdentifier: SankeyItemIdentifier;
72
72
  };
73
73
  }
74
+ interface BarSeriesExtension {
75
+ /** Bar `sampling` method. */
76
+ samplingMethod: BarSamplingMethod;
77
+ }
78
+ interface LineSeriesExtension {
79
+ /** Line `sampling` method. */
80
+ samplingMethod: SamplingMethod;
81
+ }
74
82
  interface DefaultizedZoomOptions extends Required<ZoomOptions> {
75
83
  axisId: AxisId;
76
84
  axisDirection: 'x' | 'y';