@mui/x-charts-pro 8.10.1 → 8.11.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.
- package/BarChartPro/BarChartPro.js +0 -36
- package/CHANGELOG.md +221 -8
- package/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
- package/FunnelChart/curves/bump.js +0 -2
- package/FunnelChart/curves/linear.js +0 -2
- package/FunnelChart/curves/pyramid.js +0 -2
- package/FunnelChart/curves/step-pyramid.js +0 -2
- package/FunnelChart/curves/step.js +0 -2
- package/Heatmap/Heatmap.js +0 -4
- package/LineChartPro/LineChartPro.js +0 -36
- package/PieChartPro/PieChartPro.js +2 -2
- package/SankeyChart/SankeyChart.d.ts +32 -0
- package/SankeyChart/SankeyChart.js +161 -0
- package/SankeyChart/SankeyChart.plugins.d.ts +3 -0
- package/SankeyChart/SankeyChart.plugins.js +11 -0
- package/SankeyChart/SankeyLinkElement.d.ts +27 -0
- package/SankeyChart/SankeyLinkElement.js +53 -0
- package/SankeyChart/SankeyLinkLabel.d.ts +12 -0
- package/SankeyChart/SankeyLinkLabel.js +58 -0
- package/SankeyChart/SankeyNodeElement.d.ts +27 -0
- package/SankeyChart/SankeyNodeElement.js +76 -0
- package/SankeyChart/SankeyPlot.d.ts +29 -0
- package/SankeyChart/SankeyPlot.js +100 -0
- package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.d.ts +2 -0
- package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.js +27 -0
- package/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +7 -0
- package/SankeyChart/SankeyTooltip/SankeyTooltip.js +208 -0
- package/SankeyChart/SankeyTooltip/SankeyTooltip.types.d.ts +10 -0
- package/SankeyChart/SankeyTooltip/SankeyTooltip.types.js +5 -0
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +7 -0
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +66 -0
- package/SankeyChart/SankeyTooltip/index.d.ts +3 -0
- package/SankeyChart/SankeyTooltip/index.js +27 -0
- package/SankeyChart/calculateSankeyLayout.d.ts +13 -0
- package/SankeyChart/calculateSankeyLayout.js +141 -0
- package/SankeyChart/index.d.ts +9 -0
- package/SankeyChart/index.js +70 -0
- package/SankeyChart/sankey.types.d.ts +225 -0
- package/SankeyChart/sankey.types.js +6 -0
- package/SankeyChart/sankeyClasses.d.ts +15 -0
- package/SankeyChart/sankeyClasses.js +28 -0
- package/SankeyChart/sankeySlots.types.d.ts +24 -0
- package/SankeyChart/sankeySlots.types.js +5 -0
- package/SankeyChart/seriesConfig/getSeriesWithDefaultValues.d.ts +2 -0
- package/SankeyChart/seriesConfig/getSeriesWithDefaultValues.js +55 -0
- package/SankeyChart/seriesConfig/index.d.ts +2 -0
- package/SankeyChart/seriesConfig/index.js +19 -0
- package/SankeyChart/seriesConfig/tooltipGetter.d.ts +2 -0
- package/SankeyChart/seriesConfig/tooltipGetter.js +46 -0
- package/SankeyChart/useSankeyChartProps.d.ts +22 -0
- package/SankeyChart/useSankeyChartProps.js +77 -0
- package/SankeyChart/utils.d.ts +3 -0
- package/SankeyChart/utils.js +21 -0
- package/ScatterChartPro/ScatterChartPro.js +1 -37
- package/esm/BarChartPro/BarChartPro.js +0 -36
- package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
- package/esm/FunnelChart/curves/bump.js +0 -2
- package/esm/FunnelChart/curves/linear.js +0 -2
- package/esm/FunnelChart/curves/pyramid.js +0 -2
- package/esm/FunnelChart/curves/step-pyramid.js +0 -2
- package/esm/FunnelChart/curves/step.js +0 -2
- package/esm/Heatmap/Heatmap.js +0 -4
- package/esm/LineChartPro/LineChartPro.js +0 -36
- package/esm/PieChartPro/PieChartPro.js +2 -2
- package/esm/SankeyChart/SankeyChart.d.ts +32 -0
- package/esm/SankeyChart/SankeyChart.js +155 -0
- package/esm/SankeyChart/SankeyChart.plugins.d.ts +3 -0
- package/esm/SankeyChart/SankeyChart.plugins.js +9 -0
- package/esm/SankeyChart/SankeyLinkElement.d.ts +27 -0
- package/esm/SankeyChart/SankeyLinkElement.js +46 -0
- package/esm/SankeyChart/SankeyLinkLabel.d.ts +12 -0
- package/esm/SankeyChart/SankeyLinkLabel.js +52 -0
- package/esm/SankeyChart/SankeyNodeElement.d.ts +27 -0
- package/esm/SankeyChart/SankeyNodeElement.js +69 -0
- package/esm/SankeyChart/SankeyPlot.d.ts +29 -0
- package/esm/SankeyChart/SankeyPlot.js +94 -0
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.classes.d.ts +2 -0
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.classes.js +19 -0
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +7 -0
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.js +202 -0
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.types.d.ts +10 -0
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.types.js +1 -0
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +7 -0
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +59 -0
- package/esm/SankeyChart/SankeyTooltip/index.d.ts +3 -0
- package/esm/SankeyChart/SankeyTooltip/index.js +3 -0
- package/esm/SankeyChart/calculateSankeyLayout.d.ts +13 -0
- package/esm/SankeyChart/calculateSankeyLayout.js +135 -0
- package/esm/SankeyChart/index.d.ts +9 -0
- package/esm/SankeyChart/index.js +6 -0
- package/esm/SankeyChart/sankey.types.d.ts +225 -0
- package/esm/SankeyChart/sankey.types.js +3 -0
- package/esm/SankeyChart/sankeyClasses.d.ts +15 -0
- package/esm/SankeyChart/sankeyClasses.js +19 -0
- package/esm/SankeyChart/sankeySlots.types.d.ts +24 -0
- package/esm/SankeyChart/sankeySlots.types.js +1 -0
- package/esm/SankeyChart/seriesConfig/getSeriesWithDefaultValues.d.ts +2 -0
- package/esm/SankeyChart/seriesConfig/getSeriesWithDefaultValues.js +47 -0
- package/esm/SankeyChart/seriesConfig/index.d.ts +2 -0
- package/esm/SankeyChart/seriesConfig/index.js +14 -0
- package/esm/SankeyChart/seriesConfig/tooltipGetter.d.ts +2 -0
- package/esm/SankeyChart/seriesConfig/tooltipGetter.js +39 -0
- package/esm/SankeyChart/useSankeyChartProps.d.ts +22 -0
- package/esm/SankeyChart/useSankeyChartProps.js +70 -0
- package/esm/SankeyChart/utils.d.ts +3 -0
- package/esm/SankeyChart/utils.js +14 -0
- package/esm/ScatterChartPro/ScatterChartPro.js +1 -37
- package/esm/hooks/useSankeySeries.d.ts +33 -0
- package/esm/hooks/useSankeySeries.js +42 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +2 -1
- package/esm/internals/plugins/allPlugins.d.ts +2 -2
- package/esm/typeOverloads/modules.d.ts +11 -0
- package/hooks/useSankeySeries.d.ts +33 -0
- package/hooks/useSankeySeries.js +48 -0
- package/index.d.ts +1 -0
- package/index.js +13 -1
- package/internals/plugins/allPlugins.d.ts +2 -2
- package/package.json +6 -6
- package/typeOverloads/modules.d.ts +11 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface SankeyPlotClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the nodes container. */
|
|
5
|
+
nodes: string;
|
|
6
|
+
/** Styles applied to the links container. */
|
|
7
|
+
links: string;
|
|
8
|
+
/** Styles applied to the link label container. */
|
|
9
|
+
linkLabels: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function getSankeyPlotUtilityClass(slot: string): string;
|
|
12
|
+
export declare const sankeyPlotClasses: SankeyPlotClasses;
|
|
13
|
+
export declare const useUtilityClasses: (ownerState: {
|
|
14
|
+
classes?: Partial<SankeyPlotClasses>;
|
|
15
|
+
}) => Record<"root" | "nodes" | "links" | "linkLabels", string>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
2
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
3
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
4
|
+
export function getSankeyPlotUtilityClass(slot) {
|
|
5
|
+
return generateUtilityClass('MuiSankeyChart', slot);
|
|
6
|
+
}
|
|
7
|
+
export const sankeyPlotClasses = generateUtilityClasses('MuiSankeyChart', ['root', 'nodes', 'links', 'linkLabels']);
|
|
8
|
+
export const useUtilityClasses = ownerState => {
|
|
9
|
+
const {
|
|
10
|
+
classes
|
|
11
|
+
} = ownerState;
|
|
12
|
+
const slots = {
|
|
13
|
+
root: ['root'],
|
|
14
|
+
nodes: ['nodes'],
|
|
15
|
+
links: ['links'],
|
|
16
|
+
linkLabels: ['linkLabels']
|
|
17
|
+
};
|
|
18
|
+
return composeClasses(slots, getSankeyPlotUtilityClass, classes);
|
|
19
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ChartsOverlaySlotProps, ChartsOverlaySlots } from '@mui/x-charts/ChartsOverlay';
|
|
2
|
+
import { ChartsTooltipProps, ChartsTooltipSlotProps, ChartsTooltipSlots } from '@mui/x-charts/ChartsTooltip';
|
|
3
|
+
import { ChartsSlotProps, ChartsSlots } from '@mui/x-charts/internals';
|
|
4
|
+
import { ChartsToolbarSlotProps, ChartsToolbarSlots } from '@mui/x-charts/Toolbar';
|
|
5
|
+
export interface SankeyChartSlots extends ChartsTooltipSlots, ChartsOverlaySlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
|
|
6
|
+
export interface SankeyChartSlotProps extends Omit<ChartsTooltipSlotProps, 'tooltip'>, ChartsOverlaySlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {
|
|
7
|
+
/**
|
|
8
|
+
* Slot props for the tooltip component.
|
|
9
|
+
* @default {}
|
|
10
|
+
*/
|
|
11
|
+
tooltip?: Partial<ChartsTooltipProps<'item' | 'none'>>;
|
|
12
|
+
}
|
|
13
|
+
export interface SankeyChartSlotExtension {
|
|
14
|
+
/**
|
|
15
|
+
* Overridable component slots.
|
|
16
|
+
* @default {}
|
|
17
|
+
*/
|
|
18
|
+
slots?: SankeyChartSlots;
|
|
19
|
+
/**
|
|
20
|
+
* The props used for each component slot.
|
|
21
|
+
* @default {}
|
|
22
|
+
*/
|
|
23
|
+
slotProps?: SankeyChartSlotProps;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
export const getSeriesWithDefaultValues = (seriesData, seriesIndex, colors) => {
|
|
3
|
+
const nodeMap = new Map();
|
|
4
|
+
const nodeColor = seriesData.nodeOptions?.color;
|
|
5
|
+
const data = seriesData.data;
|
|
6
|
+
let colorIndex = -1;
|
|
7
|
+
if (data.nodes) {
|
|
8
|
+
data.nodes.forEach(node => {
|
|
9
|
+
const id = node.id || node.label || '';
|
|
10
|
+
const label = node.label || `${id}`;
|
|
11
|
+
colorIndex += 1;
|
|
12
|
+
nodeMap.set(id, _extends({}, node, {
|
|
13
|
+
id,
|
|
14
|
+
label,
|
|
15
|
+
color: node.color ?? nodeColor ?? colors?.[colorIndex % colors.length]
|
|
16
|
+
}));
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
data.links.forEach(v => {
|
|
20
|
+
if (!nodeMap.has(v.source)) {
|
|
21
|
+
colorIndex += 1;
|
|
22
|
+
const source = {
|
|
23
|
+
id: v.source,
|
|
24
|
+
label: `${v.source}`,
|
|
25
|
+
color: nodeColor ?? colors?.[colorIndex % colors.length]
|
|
26
|
+
};
|
|
27
|
+
nodeMap.set(source.id, source);
|
|
28
|
+
}
|
|
29
|
+
if (!nodeMap.has(v.target)) {
|
|
30
|
+
colorIndex += 1;
|
|
31
|
+
const target = {
|
|
32
|
+
id: v.target,
|
|
33
|
+
label: `${v.target}`,
|
|
34
|
+
color: nodeColor ?? colors?.[colorIndex % colors.length]
|
|
35
|
+
};
|
|
36
|
+
nodeMap.set(target.id, target);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
return _extends({
|
|
40
|
+
id: seriesData.id ?? `auto-generated-id-${seriesIndex}`
|
|
41
|
+
}, seriesData, {
|
|
42
|
+
data: {
|
|
43
|
+
links: data.links,
|
|
44
|
+
nodes: nodeMap
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getSeriesWithDefaultValues } from "./getSeriesWithDefaultValues.js";
|
|
2
|
+
import { tooltipGetter } from "./tooltipGetter.js";
|
|
3
|
+
|
|
4
|
+
// Simple passthrough functions for sankey chart
|
|
5
|
+
const seriesProcessor = series => series;
|
|
6
|
+
const colorProcessor = series => series;
|
|
7
|
+
const legendGetter = () => [];
|
|
8
|
+
export const seriesConfig = {
|
|
9
|
+
seriesProcessor,
|
|
10
|
+
colorProcessor,
|
|
11
|
+
legendGetter,
|
|
12
|
+
tooltipGetter,
|
|
13
|
+
getSeriesWithDefaultValues
|
|
14
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export const tooltipGetter = params => {
|
|
2
|
+
const {
|
|
3
|
+
identifier
|
|
4
|
+
} = params;
|
|
5
|
+
if (!identifier) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
const {
|
|
9
|
+
subType
|
|
10
|
+
} = identifier;
|
|
11
|
+
if (subType === 'node') {
|
|
12
|
+
const node = identifier.node;
|
|
13
|
+
return {
|
|
14
|
+
identifier,
|
|
15
|
+
color: node.color,
|
|
16
|
+
label: `${node.label}:`,
|
|
17
|
+
value: node.value,
|
|
18
|
+
formattedValue: `${node.value}`,
|
|
19
|
+
markType: 'square'
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
if (subType === 'link') {
|
|
23
|
+
const link = identifier.link;
|
|
24
|
+
if (!link) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
const sourceLabel = link.source.label;
|
|
28
|
+
const targetLabel = link.target.label;
|
|
29
|
+
return {
|
|
30
|
+
identifier,
|
|
31
|
+
color: link.color,
|
|
32
|
+
label: `${sourceLabel} → ${targetLabel}:`,
|
|
33
|
+
value: link.value,
|
|
34
|
+
formattedValue: `${link.value}`,
|
|
35
|
+
markType: 'line'
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
39
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ChartsOverlayProps } from '@mui/x-charts/ChartsOverlay';
|
|
2
|
+
import type { ChartsWrapperProps } from '@mui/x-charts/ChartsWrapper';
|
|
3
|
+
import type { SankeyChartProps } from "./SankeyChart.js";
|
|
4
|
+
import type { ChartContainerProProps } from "../ChartContainerPro/index.js";
|
|
5
|
+
import { type SankeyChartPluginsSignatures } from "./SankeyChart.plugins.js";
|
|
6
|
+
/**
|
|
7
|
+
* A helper function that extracts SankeyChartProps from the input props
|
|
8
|
+
* and returns an object with props for the children components of SankeyChart.
|
|
9
|
+
*
|
|
10
|
+
* @param props The input props for SankeyChart
|
|
11
|
+
* @returns An object with props for the children components of SankeyChart
|
|
12
|
+
*/
|
|
13
|
+
export declare const useSankeyChartProps: (props: SankeyChartProps) => {
|
|
14
|
+
chartContainerProps: ChartContainerProProps<"sankey", SankeyChartPluginsSignatures>;
|
|
15
|
+
sankeyPlotProps: {
|
|
16
|
+
onNodeClick: ((event: React.MouseEvent<SVGElement, MouseEvent>, node: import("./sankey.types.js").SankeyNodeIdentifierWithData) => void) | undefined;
|
|
17
|
+
onLinkClick: ((event: React.MouseEvent<SVGElement, MouseEvent>, link: import("./sankey.types.js").SankeyLinkIdentifierWithData) => void) | undefined;
|
|
18
|
+
};
|
|
19
|
+
overlayProps: ChartsOverlayProps;
|
|
20
|
+
chartsWrapperProps: Omit<ChartsWrapperProps, "children">;
|
|
21
|
+
children: import("react").ReactNode;
|
|
22
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
const _excluded = ["series", "width", "height", "margin", "colors", "sx", "children", "slots", "slotProps", "loading", "className", "apiRef", "onNodeClick", "onLinkClick"];
|
|
4
|
+
import { DEFAULT_MARGINS } from '@mui/x-charts/constants';
|
|
5
|
+
import { defaultizeMargin } from '@mui/x-charts/internals';
|
|
6
|
+
import { SANKEY_CHART_PLUGINS } from "./SankeyChart.plugins.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A helper function that extracts SankeyChartProps from the input props
|
|
10
|
+
* and returns an object with props for the children components of SankeyChart.
|
|
11
|
+
*
|
|
12
|
+
* @param props The input props for SankeyChart
|
|
13
|
+
* @returns An object with props for the children components of SankeyChart
|
|
14
|
+
*/
|
|
15
|
+
export const useSankeyChartProps = props => {
|
|
16
|
+
const {
|
|
17
|
+
series,
|
|
18
|
+
width,
|
|
19
|
+
height,
|
|
20
|
+
margin: marginProps,
|
|
21
|
+
colors,
|
|
22
|
+
sx,
|
|
23
|
+
children,
|
|
24
|
+
slots,
|
|
25
|
+
slotProps,
|
|
26
|
+
loading,
|
|
27
|
+
// highlightedItem,
|
|
28
|
+
// onHighlightChange,
|
|
29
|
+
className,
|
|
30
|
+
apiRef,
|
|
31
|
+
onNodeClick,
|
|
32
|
+
onLinkClick
|
|
33
|
+
} = props,
|
|
34
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
35
|
+
const margin = defaultizeMargin(marginProps, DEFAULT_MARGINS);
|
|
36
|
+
const chartContainerProps = _extends({}, rest, {
|
|
37
|
+
series: [_extends({
|
|
38
|
+
type: 'sankey'
|
|
39
|
+
}, series)],
|
|
40
|
+
width,
|
|
41
|
+
height,
|
|
42
|
+
margin,
|
|
43
|
+
colors,
|
|
44
|
+
sx,
|
|
45
|
+
// highlightedItem,
|
|
46
|
+
// onHighlightChange,
|
|
47
|
+
className,
|
|
48
|
+
apiRef,
|
|
49
|
+
plugins: SANKEY_CHART_PLUGINS
|
|
50
|
+
});
|
|
51
|
+
const sankeyPlotProps = {
|
|
52
|
+
onNodeClick,
|
|
53
|
+
onLinkClick
|
|
54
|
+
};
|
|
55
|
+
const overlayProps = {
|
|
56
|
+
slots,
|
|
57
|
+
slotProps,
|
|
58
|
+
loading
|
|
59
|
+
};
|
|
60
|
+
const chartsWrapperProps = {
|
|
61
|
+
sx
|
|
62
|
+
};
|
|
63
|
+
return {
|
|
64
|
+
chartContainerProps,
|
|
65
|
+
sankeyPlotProps,
|
|
66
|
+
overlayProps,
|
|
67
|
+
chartsWrapperProps,
|
|
68
|
+
children
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { sankeyLeft, sankeyRight, sankeyCenter, sankeyJustify } from '@mui/x-charts-vendor/d3-sankey';
|
|
2
|
+
export const getNodeAlignFunction = align => {
|
|
3
|
+
switch (align) {
|
|
4
|
+
case 'left':
|
|
5
|
+
return sankeyLeft;
|
|
6
|
+
case 'right':
|
|
7
|
+
return sankeyRight;
|
|
8
|
+
case 'center':
|
|
9
|
+
return sankeyCenter;
|
|
10
|
+
case 'justify':
|
|
11
|
+
default:
|
|
12
|
+
return sankeyJustify;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
@@ -77,7 +77,7 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
|
|
|
77
77
|
}), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps)), children]
|
|
78
78
|
})), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({
|
|
79
79
|
trigger: "item"
|
|
80
|
-
}, props
|
|
80
|
+
}, props.slotProps?.tooltip))]
|
|
81
81
|
}))
|
|
82
82
|
}));
|
|
83
83
|
});
|
|
@@ -277,7 +277,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
277
277
|
disableLine: PropTypes.bool,
|
|
278
278
|
disableTicks: PropTypes.bool,
|
|
279
279
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
280
|
-
fill: PropTypes.string,
|
|
281
280
|
groups: PropTypes.arrayOf(PropTypes.shape({
|
|
282
281
|
getValue: PropTypes.func.isRequired,
|
|
283
282
|
tickLabelStyle: PropTypes.object,
|
|
@@ -297,7 +296,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
297
296
|
scaleType: PropTypes.oneOf(['band']),
|
|
298
297
|
slotProps: PropTypes.object,
|
|
299
298
|
slots: PropTypes.object,
|
|
300
|
-
stroke: PropTypes.string,
|
|
301
299
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
302
300
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
303
301
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -348,7 +346,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
348
346
|
disableLine: PropTypes.bool,
|
|
349
347
|
disableTicks: PropTypes.bool,
|
|
350
348
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
351
|
-
fill: PropTypes.string,
|
|
352
349
|
groups: PropTypes.arrayOf(PropTypes.shape({
|
|
353
350
|
getValue: PropTypes.func.isRequired,
|
|
354
351
|
tickLabelStyle: PropTypes.object,
|
|
@@ -368,7 +365,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
368
365
|
scaleType: PropTypes.oneOf(['point']),
|
|
369
366
|
slotProps: PropTypes.object,
|
|
370
367
|
slots: PropTypes.object,
|
|
371
|
-
stroke: PropTypes.string,
|
|
372
368
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
373
369
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
374
370
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -414,7 +410,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
414
410
|
disableLine: PropTypes.bool,
|
|
415
411
|
disableTicks: PropTypes.bool,
|
|
416
412
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
417
|
-
fill: PropTypes.string,
|
|
418
413
|
height: PropTypes.number,
|
|
419
414
|
hideTooltip: PropTypes.bool,
|
|
420
415
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
@@ -429,7 +424,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
429
424
|
scaleType: PropTypes.oneOf(['log']),
|
|
430
425
|
slotProps: PropTypes.object,
|
|
431
426
|
slots: PropTypes.object,
|
|
432
|
-
stroke: PropTypes.string,
|
|
433
427
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
434
428
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
435
429
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -476,7 +470,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
476
470
|
disableLine: PropTypes.bool,
|
|
477
471
|
disableTicks: PropTypes.bool,
|
|
478
472
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
479
|
-
fill: PropTypes.string,
|
|
480
473
|
height: PropTypes.number,
|
|
481
474
|
hideTooltip: PropTypes.bool,
|
|
482
475
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
@@ -491,7 +484,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
491
484
|
scaleType: PropTypes.oneOf(['symlog']),
|
|
492
485
|
slotProps: PropTypes.object,
|
|
493
486
|
slots: PropTypes.object,
|
|
494
|
-
stroke: PropTypes.string,
|
|
495
487
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
496
488
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
497
489
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -537,7 +529,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
537
529
|
disableLine: PropTypes.bool,
|
|
538
530
|
disableTicks: PropTypes.bool,
|
|
539
531
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
540
|
-
fill: PropTypes.string,
|
|
541
532
|
height: PropTypes.number,
|
|
542
533
|
hideTooltip: PropTypes.bool,
|
|
543
534
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
@@ -552,7 +543,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
552
543
|
scaleType: PropTypes.oneOf(['pow']),
|
|
553
544
|
slotProps: PropTypes.object,
|
|
554
545
|
slots: PropTypes.object,
|
|
555
|
-
stroke: PropTypes.string,
|
|
556
546
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
557
547
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
558
548
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -598,7 +588,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
598
588
|
disableLine: PropTypes.bool,
|
|
599
589
|
disableTicks: PropTypes.bool,
|
|
600
590
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
601
|
-
fill: PropTypes.string,
|
|
602
591
|
height: PropTypes.number,
|
|
603
592
|
hideTooltip: PropTypes.bool,
|
|
604
593
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
@@ -613,7 +602,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
613
602
|
scaleType: PropTypes.oneOf(['sqrt']),
|
|
614
603
|
slotProps: PropTypes.object,
|
|
615
604
|
slots: PropTypes.object,
|
|
616
|
-
stroke: PropTypes.string,
|
|
617
605
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
618
606
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
619
607
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -659,7 +647,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
659
647
|
disableLine: PropTypes.bool,
|
|
660
648
|
disableTicks: PropTypes.bool,
|
|
661
649
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
662
|
-
fill: PropTypes.string,
|
|
663
650
|
height: PropTypes.number,
|
|
664
651
|
hideTooltip: PropTypes.bool,
|
|
665
652
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
@@ -674,7 +661,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
674
661
|
scaleType: PropTypes.oneOf(['time']),
|
|
675
662
|
slotProps: PropTypes.object,
|
|
676
663
|
slots: PropTypes.object,
|
|
677
|
-
stroke: PropTypes.string,
|
|
678
664
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
679
665
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
680
666
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -720,7 +706,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
720
706
|
disableLine: PropTypes.bool,
|
|
721
707
|
disableTicks: PropTypes.bool,
|
|
722
708
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
723
|
-
fill: PropTypes.string,
|
|
724
709
|
height: PropTypes.number,
|
|
725
710
|
hideTooltip: PropTypes.bool,
|
|
726
711
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
@@ -735,7 +720,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
735
720
|
scaleType: PropTypes.oneOf(['utc']),
|
|
736
721
|
slotProps: PropTypes.object,
|
|
737
722
|
slots: PropTypes.object,
|
|
738
|
-
stroke: PropTypes.string,
|
|
739
723
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
740
724
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
741
725
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -781,7 +765,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
781
765
|
disableLine: PropTypes.bool,
|
|
782
766
|
disableTicks: PropTypes.bool,
|
|
783
767
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
784
|
-
fill: PropTypes.string,
|
|
785
768
|
height: PropTypes.number,
|
|
786
769
|
hideTooltip: PropTypes.bool,
|
|
787
770
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
@@ -796,7 +779,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
796
779
|
scaleType: PropTypes.oneOf(['linear']),
|
|
797
780
|
slotProps: PropTypes.object,
|
|
798
781
|
slots: PropTypes.object,
|
|
799
|
-
stroke: PropTypes.string,
|
|
800
782
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
801
783
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
802
784
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -855,7 +837,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
855
837
|
disableLine: PropTypes.bool,
|
|
856
838
|
disableTicks: PropTypes.bool,
|
|
857
839
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
858
|
-
fill: PropTypes.string,
|
|
859
840
|
groups: PropTypes.arrayOf(PropTypes.shape({
|
|
860
841
|
getValue: PropTypes.func.isRequired,
|
|
861
842
|
tickLabelStyle: PropTypes.object,
|
|
@@ -874,7 +855,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
874
855
|
scaleType: PropTypes.oneOf(['band']),
|
|
875
856
|
slotProps: PropTypes.object,
|
|
876
857
|
slots: PropTypes.object,
|
|
877
|
-
stroke: PropTypes.string,
|
|
878
858
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
879
859
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
880
860
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -925,7 +905,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
925
905
|
disableLine: PropTypes.bool,
|
|
926
906
|
disableTicks: PropTypes.bool,
|
|
927
907
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
928
|
-
fill: PropTypes.string,
|
|
929
908
|
groups: PropTypes.arrayOf(PropTypes.shape({
|
|
930
909
|
getValue: PropTypes.func.isRequired,
|
|
931
910
|
tickLabelStyle: PropTypes.object,
|
|
@@ -944,7 +923,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
944
923
|
scaleType: PropTypes.oneOf(['point']),
|
|
945
924
|
slotProps: PropTypes.object,
|
|
946
925
|
slots: PropTypes.object,
|
|
947
|
-
stroke: PropTypes.string,
|
|
948
926
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
949
927
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
950
928
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -990,7 +968,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
990
968
|
disableLine: PropTypes.bool,
|
|
991
969
|
disableTicks: PropTypes.bool,
|
|
992
970
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
993
|
-
fill: PropTypes.string,
|
|
994
971
|
hideTooltip: PropTypes.bool,
|
|
995
972
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
996
973
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -1004,7 +981,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1004
981
|
scaleType: PropTypes.oneOf(['log']),
|
|
1005
982
|
slotProps: PropTypes.object,
|
|
1006
983
|
slots: PropTypes.object,
|
|
1007
|
-
stroke: PropTypes.string,
|
|
1008
984
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
1009
985
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
1010
986
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -1051,7 +1027,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1051
1027
|
disableLine: PropTypes.bool,
|
|
1052
1028
|
disableTicks: PropTypes.bool,
|
|
1053
1029
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
1054
|
-
fill: PropTypes.string,
|
|
1055
1030
|
hideTooltip: PropTypes.bool,
|
|
1056
1031
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
1057
1032
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -1065,7 +1040,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1065
1040
|
scaleType: PropTypes.oneOf(['symlog']),
|
|
1066
1041
|
slotProps: PropTypes.object,
|
|
1067
1042
|
slots: PropTypes.object,
|
|
1068
|
-
stroke: PropTypes.string,
|
|
1069
1043
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
1070
1044
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
1071
1045
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -1111,7 +1085,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1111
1085
|
disableLine: PropTypes.bool,
|
|
1112
1086
|
disableTicks: PropTypes.bool,
|
|
1113
1087
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
1114
|
-
fill: PropTypes.string,
|
|
1115
1088
|
hideTooltip: PropTypes.bool,
|
|
1116
1089
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
1117
1090
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -1125,7 +1098,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1125
1098
|
scaleType: PropTypes.oneOf(['pow']),
|
|
1126
1099
|
slotProps: PropTypes.object,
|
|
1127
1100
|
slots: PropTypes.object,
|
|
1128
|
-
stroke: PropTypes.string,
|
|
1129
1101
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
1130
1102
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
1131
1103
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -1171,7 +1143,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1171
1143
|
disableLine: PropTypes.bool,
|
|
1172
1144
|
disableTicks: PropTypes.bool,
|
|
1173
1145
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
1174
|
-
fill: PropTypes.string,
|
|
1175
1146
|
hideTooltip: PropTypes.bool,
|
|
1176
1147
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
1177
1148
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -1185,7 +1156,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1185
1156
|
scaleType: PropTypes.oneOf(['sqrt']),
|
|
1186
1157
|
slotProps: PropTypes.object,
|
|
1187
1158
|
slots: PropTypes.object,
|
|
1188
|
-
stroke: PropTypes.string,
|
|
1189
1159
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
1190
1160
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
1191
1161
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -1231,7 +1201,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1231
1201
|
disableLine: PropTypes.bool,
|
|
1232
1202
|
disableTicks: PropTypes.bool,
|
|
1233
1203
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
1234
|
-
fill: PropTypes.string,
|
|
1235
1204
|
hideTooltip: PropTypes.bool,
|
|
1236
1205
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
1237
1206
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -1245,7 +1214,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1245
1214
|
scaleType: PropTypes.oneOf(['time']),
|
|
1246
1215
|
slotProps: PropTypes.object,
|
|
1247
1216
|
slots: PropTypes.object,
|
|
1248
|
-
stroke: PropTypes.string,
|
|
1249
1217
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
1250
1218
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
1251
1219
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -1291,7 +1259,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1291
1259
|
disableLine: PropTypes.bool,
|
|
1292
1260
|
disableTicks: PropTypes.bool,
|
|
1293
1261
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
1294
|
-
fill: PropTypes.string,
|
|
1295
1262
|
hideTooltip: PropTypes.bool,
|
|
1296
1263
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
1297
1264
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -1305,7 +1272,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1305
1272
|
scaleType: PropTypes.oneOf(['utc']),
|
|
1306
1273
|
slotProps: PropTypes.object,
|
|
1307
1274
|
slots: PropTypes.object,
|
|
1308
|
-
stroke: PropTypes.string,
|
|
1309
1275
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
1310
1276
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
1311
1277
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -1351,7 +1317,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1351
1317
|
disableLine: PropTypes.bool,
|
|
1352
1318
|
disableTicks: PropTypes.bool,
|
|
1353
1319
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
1354
|
-
fill: PropTypes.string,
|
|
1355
1320
|
hideTooltip: PropTypes.bool,
|
|
1356
1321
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
1357
1322
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -1365,7 +1330,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1365
1330
|
scaleType: PropTypes.oneOf(['linear']),
|
|
1366
1331
|
slotProps: PropTypes.object,
|
|
1367
1332
|
slots: PropTypes.object,
|
|
1368
|
-
stroke: PropTypes.string,
|
|
1369
1333
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
1370
1334
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
1371
1335
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ProcessedSeries, SeriesId, ChartSeriesDefaultized } from '@mui/x-charts/internals';
|
|
2
|
+
export type UseSankeySeriesReturnValue = ChartSeriesDefaultized<'sankey'>;
|
|
3
|
+
export type UseSankeySeriesContextReturnValue = ProcessedSeries['sankey'];
|
|
4
|
+
/**
|
|
5
|
+
* Get access to the internal state of sankey series.
|
|
6
|
+
*
|
|
7
|
+
* @param {SeriesId} seriesId The id of the series to get.
|
|
8
|
+
* @returns {UseSankeySeriesReturnValue} the sankey series
|
|
9
|
+
*/
|
|
10
|
+
export declare function useSankeySeries(seriesId: SeriesId): UseSankeySeriesReturnValue | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Get access to the internal state of sankey series.
|
|
13
|
+
*
|
|
14
|
+
* When called without arguments, it returns all sankey series.
|
|
15
|
+
*
|
|
16
|
+
* @returns {UseSankeySeriesReturnValue[]} the sankey series
|
|
17
|
+
*/
|
|
18
|
+
export declare function useSankeySeries(): UseSankeySeriesReturnValue[];
|
|
19
|
+
/**
|
|
20
|
+
* Get access to the internal state of sankey series.
|
|
21
|
+
*
|
|
22
|
+
* @param {SeriesId[]} seriesIds The ids of the series to get. Order is preserved.
|
|
23
|
+
* @returns {UseSankeySeriesReturnValue[]} the sankey series
|
|
24
|
+
*/
|
|
25
|
+
export declare function useSankeySeries(seriesIds: SeriesId[]): UseSankeySeriesReturnValue[];
|
|
26
|
+
/**
|
|
27
|
+
* Get access to the internal state of sankey series.
|
|
28
|
+
* The returned object contains:
|
|
29
|
+
* - series: a mapping from ids to series attributes.
|
|
30
|
+
* - seriesOrder: the array of series ids.
|
|
31
|
+
* @returns the sankey series
|
|
32
|
+
*/
|
|
33
|
+
export declare function useSankeySeriesContext(): UseSankeySeriesContextReturnValue;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { createAllSeriesSelectorOfType, createSeriesSelectorsOfType } from '@mui/x-charts/internals';
|
|
4
|
+
const useSelectorSeries = createSeriesSelectorsOfType('sankey');
|
|
5
|
+
const useSelectorSeriesContext = createAllSeriesSelectorOfType('sankey');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Get access to the internal state of sankey series.
|
|
9
|
+
*
|
|
10
|
+
* @param {SeriesId} seriesId The id of the series to get.
|
|
11
|
+
* @returns {UseSankeySeriesReturnValue} the sankey series
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Get access to the internal state of sankey series.
|
|
16
|
+
*
|
|
17
|
+
* When called without arguments, it returns all sankey series.
|
|
18
|
+
*
|
|
19
|
+
* @returns {UseSankeySeriesReturnValue[]} the sankey series
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Get access to the internal state of sankey series.
|
|
24
|
+
*
|
|
25
|
+
* @param {SeriesId[]} seriesIds The ids of the series to get. Order is preserved.
|
|
26
|
+
* @returns {UseSankeySeriesReturnValue[]} the sankey series
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
export function useSankeySeries(seriesIds) {
|
|
30
|
+
return useSelectorSeries(seriesIds);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Get access to the internal state of sankey series.
|
|
35
|
+
* The returned object contains:
|
|
36
|
+
* - series: a mapping from ids to series attributes.
|
|
37
|
+
* - seriesOrder: the array of series ids.
|
|
38
|
+
* @returns the sankey series
|
|
39
|
+
*/
|
|
40
|
+
export function useSankeySeriesContext() {
|
|
41
|
+
return useSelectorSeriesContext();
|
|
42
|
+
}
|