@redsift/charts 10.3.0-alpha.5 → 10.3.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +0 -4
- package/index.d.ts +1 -1
- package/index.js +187 -237
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -407,20 +407,20 @@ const DataPoint = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
409
|
const DataPointComponent = /*#__PURE__*/React__default.createElement(StyledDataPoint, _extends({
|
|
410
|
-
tabIndex: onClick ? 0 : undefined
|
|
410
|
+
tabIndex: onClick ? 0 : undefined,
|
|
411
|
+
"aria-label": showTooltip && !isEmpty ? text : undefined,
|
|
412
|
+
"aria-labelledby": !showTooltip && !isEmpty ? `${id}-title` : undefined,
|
|
413
|
+
"aria-selected": isSelected ? true : isDeselected ? false : undefined,
|
|
414
|
+
onClick: onClick ? () => onClick(data) : undefined,
|
|
415
|
+
onKeyDown: onClick ? e => onKeyDown(e) : undefined,
|
|
416
|
+
role: role ? role : onClick ? 'button' : href ? undefined : 'img'
|
|
411
417
|
}, forwardedProps, {
|
|
412
418
|
className: classNames(className, `_${index}`, {
|
|
413
419
|
selected: isSelected,
|
|
414
420
|
deselected: isDeselected
|
|
415
421
|
}),
|
|
416
422
|
ref: ref,
|
|
417
|
-
"aria-label": showTooltip && !isEmpty ? `${text}: ${data.data.value}` : undefined,
|
|
418
|
-
"aria-labelledby": !showTooltip && !isEmpty ? `${id}-title` : undefined,
|
|
419
|
-
"aria-selected": isSelected ? true : isDeselected ? false : undefined,
|
|
420
423
|
id: id,
|
|
421
|
-
onClick: onClick ? () => onClick(data) : undefined,
|
|
422
|
-
onKeyDown: onClick ? e => onKeyDown(e) : undefined,
|
|
423
|
-
role: role ? role : onClick ? 'button' : undefined,
|
|
424
424
|
$clickable: Boolean(onClick)
|
|
425
425
|
}), children, !showTooltip && !isEmpty ? /*#__PURE__*/React__default.createElement("title", {
|
|
426
426
|
id: `${id}-title`
|
|
@@ -502,24 +502,9 @@ const config = (() => ({
|
|
|
502
502
|
const _excluded$p = ["className", "createArc", "hasStroke", "previousData"];
|
|
503
503
|
const COMPONENT_NAME$c = 'Arc';
|
|
504
504
|
const CLASSNAME$c = 'redsift-arc';
|
|
505
|
-
const DEFAULT_PROPS$c = {
|
|
506
|
-
color: monochrome,
|
|
507
|
-
index: 0,
|
|
508
|
-
previousData: {
|
|
509
|
-
data: {
|
|
510
|
-
key: '',
|
|
511
|
-
value: 0
|
|
512
|
-
},
|
|
513
|
-
startAngle: 0,
|
|
514
|
-
endAngle: 0,
|
|
515
|
-
padAngle: 0,
|
|
516
|
-
value: 0,
|
|
517
|
-
index: 0
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
505
|
const Arc = /*#__PURE__*/forwardRef((props, ref) => {
|
|
521
506
|
const {
|
|
522
|
-
color,
|
|
507
|
+
color = monochrome,
|
|
523
508
|
data,
|
|
524
509
|
isSelected: propsIsSelected,
|
|
525
510
|
onClick,
|
|
@@ -529,7 +514,17 @@ const Arc = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
529
514
|
className,
|
|
530
515
|
createArc,
|
|
531
516
|
hasStroke,
|
|
532
|
-
previousData
|
|
517
|
+
previousData = {
|
|
518
|
+
data: {
|
|
519
|
+
key: '',
|
|
520
|
+
value: 0
|
|
521
|
+
},
|
|
522
|
+
startAngle: 0,
|
|
523
|
+
endAngle: 0,
|
|
524
|
+
padAngle: 0,
|
|
525
|
+
value: 0,
|
|
526
|
+
index: 0
|
|
527
|
+
}
|
|
533
528
|
} = props,
|
|
534
529
|
forwardedProps = _objectWithoutProperties(props, _excluded$p);
|
|
535
530
|
const theme = useTheme();
|
|
@@ -558,7 +553,6 @@ const Arc = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
558
553
|
}));
|
|
559
554
|
});
|
|
560
555
|
Arc.className = CLASSNAME$c;
|
|
561
|
-
Arc.defaultProps = DEFAULT_PROPS$c;
|
|
562
556
|
Arc.displayName = COMPONENT_NAME$c;
|
|
563
557
|
|
|
564
558
|
/**
|
|
@@ -569,7 +563,6 @@ const StyledArcs = styled.g``;
|
|
|
569
563
|
const _excluded$o = ["arcs", "className", "color", "hasLabels", "hasStroke", "id", "labelDecorator", "onClick", "role", "sliceProps", "tooltipVariant"];
|
|
570
564
|
const COMPONENT_NAME$b = 'Arcs';
|
|
571
565
|
const CLASSNAME$b = 'redsift-arcs';
|
|
572
|
-
const DEFAULT_PROPS$b = {};
|
|
573
566
|
const Arcs = /*#__PURE__*/forwardRef((props, ref) => {
|
|
574
567
|
const {
|
|
575
568
|
arcs,
|
|
@@ -640,7 +633,6 @@ const Arcs = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
640
633
|
})) : null);
|
|
641
634
|
});
|
|
642
635
|
Arcs.className = CLASSNAME$b;
|
|
643
|
-
Arcs.defaultProps = DEFAULT_PROPS$b;
|
|
644
636
|
Arcs.displayName = COMPONENT_NAME$b;
|
|
645
637
|
|
|
646
638
|
/**
|
|
@@ -814,36 +806,25 @@ const computeTicks = _ref => {
|
|
|
814
806
|
const _excluded$n = ["className", "length", "legend", "legendOffset", "legendPosition", "position", "scale", "tickPadding", "tickRotation", "tickSize", "tickValues", "tickFormat", "tickRemodelling", "variant", "x", "y"];
|
|
815
807
|
const COMPONENT_NAME$a = 'Axis';
|
|
816
808
|
const CLASSNAME$a = 'redsift-axis';
|
|
817
|
-
const DEFAULT_PROPS$a = {
|
|
818
|
-
position: AxisPosition.bottom,
|
|
819
|
-
legendOffset: -32,
|
|
820
|
-
legendPosition: 'end',
|
|
821
|
-
tickPadding: 5,
|
|
822
|
-
tickRotation: 0,
|
|
823
|
-
tickSize: 5,
|
|
824
|
-
variant: AxisVariant.default,
|
|
825
|
-
x: 0,
|
|
826
|
-
y: 0
|
|
827
|
-
};
|
|
828
809
|
const getAxisType = position => [AxisPosition.top, AxisPosition.bottom].includes(position) ? 'x' : 'y';
|
|
829
810
|
const Axis = /*#__PURE__*/forwardRef((props, ref) => {
|
|
830
811
|
const {
|
|
831
812
|
className,
|
|
832
813
|
length,
|
|
833
814
|
legend,
|
|
834
|
-
legendOffset,
|
|
835
|
-
legendPosition,
|
|
836
|
-
position,
|
|
815
|
+
legendOffset = -32,
|
|
816
|
+
legendPosition = 'end',
|
|
817
|
+
position = AxisPosition.bottom,
|
|
837
818
|
scale,
|
|
838
|
-
tickPadding,
|
|
839
|
-
tickRotation,
|
|
840
|
-
tickSize,
|
|
819
|
+
tickPadding = 5,
|
|
820
|
+
tickRotation = 0,
|
|
821
|
+
tickSize = 5,
|
|
841
822
|
tickValues,
|
|
842
823
|
tickFormat,
|
|
843
824
|
tickRemodelling,
|
|
844
|
-
variant,
|
|
845
|
-
x,
|
|
846
|
-
y
|
|
825
|
+
variant = AxisVariant.default,
|
|
826
|
+
x = 0,
|
|
827
|
+
y = 0
|
|
847
828
|
} = props,
|
|
848
829
|
forwardedProps = _objectWithoutProperties(props, _excluded$n);
|
|
849
830
|
const theme = useTheme();
|
|
@@ -975,7 +956,6 @@ const Axis = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
975
956
|
}) : null, legendNode);
|
|
976
957
|
});
|
|
977
958
|
Axis.className = CLASSNAME$a;
|
|
978
|
-
Axis.defaultProps = DEFAULT_PROPS$a;
|
|
979
959
|
Axis.displayName = COMPONENT_NAME$a;
|
|
980
960
|
|
|
981
961
|
/**
|
|
@@ -1057,27 +1037,12 @@ const StyledBar = styled(DataPoint)`
|
|
|
1057
1037
|
const _excluded$m = ["className", "gap", "height", "maxHeight", "orientation", "previousData", "scale", "scalePosition", "width"];
|
|
1058
1038
|
const COMPONENT_NAME$9 = 'Bar';
|
|
1059
1039
|
const CLASSNAME$9 = 'redsift-bar';
|
|
1060
|
-
const DEFAULT_PROPS$9 = {
|
|
1061
|
-
color: monochrome,
|
|
1062
|
-
index: 0,
|
|
1063
|
-
gap: 5,
|
|
1064
|
-
height: 40,
|
|
1065
|
-
maxHeight: 100,
|
|
1066
|
-
orientation: BarOrientation.horizontal,
|
|
1067
|
-
previousData: {
|
|
1068
|
-
data: {
|
|
1069
|
-
key: '',
|
|
1070
|
-
value: 0
|
|
1071
|
-
}
|
|
1072
|
-
},
|
|
1073
|
-
width: 40
|
|
1074
|
-
};
|
|
1075
1040
|
const getValue = data => data.cumulativeValue !== undefined ? data.cumulativeValue : data.value;
|
|
1076
1041
|
const Bar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
1077
1042
|
const {
|
|
1078
|
-
color,
|
|
1043
|
+
color = monochrome,
|
|
1079
1044
|
data,
|
|
1080
|
-
index,
|
|
1045
|
+
index = 0,
|
|
1081
1046
|
isSelected: propsIsSelected,
|
|
1082
1047
|
labelDecorator,
|
|
1083
1048
|
onClick,
|
|
@@ -1085,14 +1050,19 @@ const Bar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1085
1050
|
} = props;
|
|
1086
1051
|
const {
|
|
1087
1052
|
className,
|
|
1088
|
-
gap,
|
|
1089
|
-
height,
|
|
1090
|
-
maxHeight,
|
|
1091
|
-
orientation,
|
|
1092
|
-
previousData
|
|
1053
|
+
gap = 5,
|
|
1054
|
+
height = 40,
|
|
1055
|
+
maxHeight = 100,
|
|
1056
|
+
orientation = BarOrientation.horizontal,
|
|
1057
|
+
previousData = {
|
|
1058
|
+
data: {
|
|
1059
|
+
key: '',
|
|
1060
|
+
value: 0
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1093
1063
|
scale,
|
|
1094
1064
|
scalePosition,
|
|
1095
|
-
width
|
|
1065
|
+
width = 40
|
|
1096
1066
|
} = props,
|
|
1097
1067
|
forwardedProps = _objectWithoutProperties(props, _excluded$m);
|
|
1098
1068
|
const theme = useTheme();
|
|
@@ -1140,7 +1110,6 @@ const Bar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1140
1110
|
}, text) : null);
|
|
1141
1111
|
});
|
|
1142
1112
|
Bar.className = CLASSNAME$9;
|
|
1143
|
-
Bar.defaultProps = DEFAULT_PROPS$9;
|
|
1144
1113
|
Bar.displayName = COMPONENT_NAME$9;
|
|
1145
1114
|
|
|
1146
1115
|
/**
|
|
@@ -1255,7 +1224,6 @@ const StyledChartContainerCaption = styled.p`
|
|
|
1255
1224
|
const _excluded$l = ["aria-label", "aria-labelledby", "description", "chartProps", "chartRef", "children", "className", "id", "title", "onReset", "theme", "mode", "definition", "interactionExplanation", "descriptionForAssistiveTechnology", "dataTableRepresentation", "xAxisDefinition", "yAxisDefinition"];
|
|
1256
1225
|
const COMPONENT_NAME$8 = 'ChartContainer';
|
|
1257
1226
|
const CLASSNAME$8 = 'redsift-chart-container';
|
|
1258
|
-
const DEFAULT_PROPS$8 = {};
|
|
1259
1227
|
const ChartContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
1260
1228
|
const {
|
|
1261
1229
|
'aria-label': propsAriaLabel,
|
|
@@ -1329,7 +1297,6 @@ const ChartContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1329
1297
|
}, format(`${mode}-chart`)), ariaLabel ? /*#__PURE__*/React__default.createElement("p", null, `${ariaLabel}. ${format(`${mode}-chart`)}`) : /*#__PURE__*/React__default.createElement("p", {
|
|
1330
1298
|
"aria-labelledby": `${ariaLabelledby} id${id}__interactive-or-not`
|
|
1331
1299
|
}), /*#__PURE__*/React__default.createElement("div", null, definition), /*#__PURE__*/React__default.createElement("div", null, interactionExplanation), /*#__PURE__*/React__default.createElement("div", null, descriptionForAssistiveTechnology !== null && descriptionForAssistiveTechnology !== void 0 ? descriptionForAssistiveTechnology : description), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("button", {
|
|
1332
|
-
id: "hc-linkto-highcharts-data-table-0",
|
|
1333
1300
|
tabIndex: -1,
|
|
1334
1301
|
"aria-expanded": viewAsDataTable,
|
|
1335
1302
|
onClick: () => setViewAsDataTable(!viewAsDataTable)
|
|
@@ -1369,7 +1336,6 @@ const ChartContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1369
1336
|
}), dataTableRepresentation.header, dataTableRepresentation.body) : null)))));
|
|
1370
1337
|
});
|
|
1371
1338
|
ChartContainer.className = CLASSNAME$8;
|
|
1372
|
-
ChartContainer.defaultProps = DEFAULT_PROPS$8;
|
|
1373
1339
|
ChartContainer.displayName = COMPONENT_NAME$8;
|
|
1374
1340
|
|
|
1375
1341
|
/**
|
|
@@ -1802,13 +1768,9 @@ const StyledLegendItem = styled.li`
|
|
|
1802
1768
|
const _excluded$h = ["className", "color", "data", "id", "variant"];
|
|
1803
1769
|
const COMPONENT_NAME$7 = 'LegendItem';
|
|
1804
1770
|
const CLASSNAME$7 = 'redsift-legend-item';
|
|
1805
|
-
const DEFAULT_PROPS$7 = {
|
|
1806
|
-
color: monochrome,
|
|
1807
|
-
index: 0
|
|
1808
|
-
};
|
|
1809
1771
|
const LegendItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
1810
1772
|
const {
|
|
1811
|
-
index,
|
|
1773
|
+
index = 0,
|
|
1812
1774
|
isSelected: propsIsSelected,
|
|
1813
1775
|
labelDecorator,
|
|
1814
1776
|
legendDecorator,
|
|
@@ -1817,7 +1779,7 @@ const LegendItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1817
1779
|
} = props;
|
|
1818
1780
|
const {
|
|
1819
1781
|
className,
|
|
1820
|
-
color,
|
|
1782
|
+
color = monochrome,
|
|
1821
1783
|
data,
|
|
1822
1784
|
id: propsId,
|
|
1823
1785
|
variant
|
|
@@ -1886,27 +1848,22 @@ const LegendItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1886
1848
|
}, text) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, text)));
|
|
1887
1849
|
});
|
|
1888
1850
|
LegendItem.className = CLASSNAME$7;
|
|
1889
|
-
LegendItem.defaultProps = DEFAULT_PROPS$7;
|
|
1890
1851
|
LegendItem.displayName = COMPONENT_NAME$7;
|
|
1891
1852
|
|
|
1892
1853
|
const _excluded$g = ["className", "data", "isLegendItemSelected", "labelDecorator", "legendDecorator", "legendItemRole", "onLegendItemClick", "variant", "width"],
|
|
1893
1854
|
_excluded2 = ["color"];
|
|
1894
1855
|
const COMPONENT_NAME$6 = 'Legend';
|
|
1895
1856
|
const CLASSNAME$6 = 'redsift-chart-legend';
|
|
1896
|
-
const DEFAULT_PROPS$6 = {
|
|
1897
|
-
isLegendItemSelected: () => true,
|
|
1898
|
-
variant: LegendVariant.label
|
|
1899
|
-
};
|
|
1900
1857
|
const Legend = /*#__PURE__*/forwardRef((props, ref) => {
|
|
1901
1858
|
const {
|
|
1902
1859
|
className,
|
|
1903
1860
|
data,
|
|
1904
|
-
isLegendItemSelected,
|
|
1861
|
+
isLegendItemSelected = () => true,
|
|
1905
1862
|
labelDecorator,
|
|
1906
1863
|
legendDecorator,
|
|
1907
1864
|
legendItemRole,
|
|
1908
1865
|
onLegendItemClick,
|
|
1909
|
-
variant,
|
|
1866
|
+
variant = LegendVariant.label,
|
|
1910
1867
|
width
|
|
1911
1868
|
} = props,
|
|
1912
1869
|
forwardedProps = _objectWithoutProperties(props, _excluded$g);
|
|
@@ -1942,7 +1899,6 @@ const Legend = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1942
1899
|
}));
|
|
1943
1900
|
});
|
|
1944
1901
|
Legend.className = CLASSNAME$6;
|
|
1945
|
-
Legend.defaultProps = DEFAULT_PROPS$6;
|
|
1946
1902
|
Legend.displayName = COMPONENT_NAME$6;
|
|
1947
1903
|
|
|
1948
1904
|
const _excluded$f = ["barProps", "className", "data", "id", "getBarAnchorProps", "isBarSelected", "labelDecorator", "legendDecorator", "legendVariant", "legendProps", "margins", "onBarClick", "size", "sortingMethod", "barRole", "colorTheme", "tooltipVariant", "xAxisVariant", "xAxisPlacement", "xAxisTickFormat", "xAxisTickPadding", "xAxisTickRotation", "xAxisTickSize", "xAxisTickValues", "xAxisMinValue", "xAxisMaxValue", "xAxisTickRemodelling", "yAxisVariant", "yAxisPlacement", "yAxisTickFormat", "yAxisTickPadding", "yAxisTickRotation", "yAxisTickSize", "yAxisTickValues", "yAxisMinValue", "yAxisMaxValue", "yAxisTickRemodelling", "xScaleType", "dateParser"];
|
|
@@ -2182,39 +2138,49 @@ const RenderedLinearBarChart = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2182
2138
|
height: height,
|
|
2183
2139
|
"aria-label": "Interactive Bar Chart",
|
|
2184
2140
|
"aria-hidden": "false"
|
|
2185
|
-
},
|
|
2186
|
-
|
|
2187
|
-
"
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
} :
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2141
|
+
}, categories.map((category, index) => {
|
|
2142
|
+
const filteredBars = bars.filter(bar => bar.category === category);
|
|
2143
|
+
return /*#__PURE__*/React__default.createElement("g", _extends({
|
|
2144
|
+
key: category,
|
|
2145
|
+
transform: `translate(${margins.left},${margins.top})`,
|
|
2146
|
+
"aria-hidden": "false",
|
|
2147
|
+
role: "region"
|
|
2148
|
+
}, hasCategory ? {
|
|
2149
|
+
'aria-label': `${category}, category ${index + 1} of ${categories.length} with ${filteredBars.length} bars`
|
|
2150
|
+
} : {}), filteredBars.map((bar, index) => {
|
|
2151
|
+
const to = {
|
|
2152
|
+
data: bar
|
|
2153
|
+
};
|
|
2154
|
+
const from = cache.current ? {
|
|
2155
|
+
data: cache.current[index]
|
|
2156
|
+
} : undefined;
|
|
2157
|
+
return /*#__PURE__*/React__default.createElement(Bar, _extends({
|
|
2158
|
+
color: colorScale === null || colorScale === void 0 ? void 0 : colorScale(to.data.category),
|
|
2159
|
+
data: to,
|
|
2160
|
+
gap: gap,
|
|
2161
|
+
id: `id${id}__bar-${index}`,
|
|
2162
|
+
index: index,
|
|
2163
|
+
isSelected: Boolean(isBarSelected(to)),
|
|
2164
|
+
key: `bar _${index}`,
|
|
2165
|
+
labelDecorator: labelDecorator,
|
|
2166
|
+
maxHeight: scaleY(bar.cumulativeValue - bar.value)
|
|
2167
|
+
}, getBarAnchorProps ? getBarAnchorProps(to) : {}, {
|
|
2168
|
+
onClick: onBarClick,
|
|
2169
|
+
orientation: BarOrientation.vertical,
|
|
2170
|
+
previousData: from,
|
|
2171
|
+
scale: scaleY,
|
|
2172
|
+
scalePosition: scaleX,
|
|
2173
|
+
tooltipVariant: tooltipVariant
|
|
2174
|
+
}, barProps, {
|
|
2175
|
+
width: barProps !== null && barProps !== void 0 && barProps.width && typeof barProps.width === 'number' ? barProps.width : barWidth,
|
|
2176
|
+
height: undefined,
|
|
2177
|
+
role: barRole
|
|
2178
|
+
}));
|
|
2216
2179
|
}));
|
|
2217
|
-
}),
|
|
2180
|
+
}), /*#__PURE__*/React__default.createElement("g", {
|
|
2181
|
+
transform: `translate(${margins.left},${margins.top})`,
|
|
2182
|
+
"aria-hidden": "true"
|
|
2183
|
+
}, ['bottom', 'both'].includes(xAxisPlacement) ? /*#__PURE__*/React__default.createElement(Axis, {
|
|
2218
2184
|
position: "bottom",
|
|
2219
2185
|
length: chartWidth,
|
|
2220
2186
|
scale: scaleX,
|
|
@@ -2275,46 +2241,37 @@ const RenderedLinearBarChart = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2275
2241
|
}, legendProps)) : null);
|
|
2276
2242
|
});
|
|
2277
2243
|
|
|
2278
|
-
const _excluded$e = ["caping", "chartRef", "className", "data", "dataType", "emptyComponent", "id", "isBarSelected", "labelDecorator", "legendDecorator", "legendVariant", "localeText", "onBarClick", "orientation", "others", "size", "
|
|
2244
|
+
const _excluded$e = ["barRole", "caping", "chartRef", "className", "colorTheme", "data", "dataType", "emptyComponent", "id", "isBarSelected", "labelDecorator", "legendDecorator", "legendVariant", "localeText", "onBarClick", "orientation", "others", "size", "sortingMethod", "theme", "tooltipDecorator", "tooltipVariant", "xAxisPlacement", "yAxisPlacement"];
|
|
2279
2245
|
const COMPONENT_NAME$5 = 'BarChart';
|
|
2280
2246
|
const CLASSNAME$5 = 'redsift-barchart';
|
|
2281
|
-
const DEFAULT_PROPS$5 = {
|
|
2282
|
-
isBarSelected: () => true,
|
|
2283
|
-
orientation: BarOrientation.horizontal,
|
|
2284
|
-
others: true,
|
|
2285
|
-
size: ChartSize.medium,
|
|
2286
|
-
sortingMethod: 'desc-value',
|
|
2287
|
-
colorTheme: ColorTheme.default,
|
|
2288
|
-
tooltipVariant: TooltipVariant.value,
|
|
2289
|
-
localeText: {
|
|
2290
|
-
emptyChartText: 'No Data'
|
|
2291
|
-
},
|
|
2292
|
-
xAxisPlacement: 'bottom',
|
|
2293
|
-
yAxisPlacement: 'left'
|
|
2294
|
-
};
|
|
2295
2247
|
const BarChart = /*#__PURE__*/forwardRef((props, ref) => {
|
|
2296
2248
|
const {
|
|
2249
|
+
barRole,
|
|
2297
2250
|
caping,
|
|
2298
2251
|
chartRef,
|
|
2299
2252
|
className,
|
|
2253
|
+
colorTheme = ColorTheme.default,
|
|
2300
2254
|
data: propsData,
|
|
2301
2255
|
dataType: propsDataType,
|
|
2302
2256
|
emptyComponent,
|
|
2303
2257
|
id: propsId,
|
|
2304
|
-
isBarSelected,
|
|
2258
|
+
isBarSelected = () => true,
|
|
2305
2259
|
labelDecorator,
|
|
2306
2260
|
legendDecorator,
|
|
2307
2261
|
legendVariant: propsLegendVariant,
|
|
2308
|
-
localeText
|
|
2262
|
+
localeText = {
|
|
2263
|
+
emptyChartText: 'No Data'
|
|
2264
|
+
},
|
|
2309
2265
|
onBarClick,
|
|
2310
|
-
orientation,
|
|
2311
|
-
others,
|
|
2312
|
-
size,
|
|
2313
|
-
|
|
2266
|
+
orientation = BarOrientation.horizontal,
|
|
2267
|
+
others = true,
|
|
2268
|
+
size = ChartSize.medium,
|
|
2269
|
+
sortingMethod = 'desc-value',
|
|
2314
2270
|
theme,
|
|
2315
2271
|
tooltipDecorator,
|
|
2316
|
-
|
|
2317
|
-
|
|
2272
|
+
tooltipVariant = TooltipVariant.value,
|
|
2273
|
+
xAxisPlacement = 'bottom',
|
|
2274
|
+
yAxisPlacement = 'left'
|
|
2318
2275
|
} = props,
|
|
2319
2276
|
forwardedProps = _objectWithoutProperties(props, _excluded$e);
|
|
2320
2277
|
const [_id] = useId();
|
|
@@ -2353,10 +2310,13 @@ const BarChart = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2353
2310
|
orientation: orientation,
|
|
2354
2311
|
others: others,
|
|
2355
2312
|
size: size,
|
|
2313
|
+
sortingMethod: sortingMethod,
|
|
2356
2314
|
theme: theme,
|
|
2357
2315
|
tooltipDecorator: tooltipDecorator,
|
|
2358
2316
|
colorTheme: colorTheme,
|
|
2359
|
-
tooltipVariant: tooltipVariant
|
|
2317
|
+
tooltipVariant: tooltipVariant,
|
|
2318
|
+
xAxisPlacement: xAxisPlacement,
|
|
2319
|
+
yAxisPlacement: yAxisPlacement
|
|
2360
2320
|
}, forwardedProps, {
|
|
2361
2321
|
ref: ref
|
|
2362
2322
|
}));
|
|
@@ -2373,10 +2333,13 @@ const BarChart = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2373
2333
|
legendVariant: legendVariant,
|
|
2374
2334
|
onBarClick: onBarClick,
|
|
2375
2335
|
size: size,
|
|
2336
|
+
sortingMethod: sortingMethod,
|
|
2376
2337
|
theme: theme,
|
|
2377
2338
|
tooltipDecorator: tooltipDecorator,
|
|
2378
2339
|
colorTheme: colorTheme,
|
|
2379
|
-
tooltipVariant: tooltipVariant
|
|
2340
|
+
tooltipVariant: tooltipVariant,
|
|
2341
|
+
xAxisPlacement: xAxisPlacement,
|
|
2342
|
+
yAxisPlacement: yAxisPlacement
|
|
2380
2343
|
}, forwardedProps, {
|
|
2381
2344
|
ref: ref
|
|
2382
2345
|
}));
|
|
@@ -2384,7 +2347,6 @@ const BarChart = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2384
2347
|
return null;
|
|
2385
2348
|
});
|
|
2386
2349
|
BarChart.className = CLASSNAME$5;
|
|
2387
|
-
BarChart.defaultProps = DEFAULT_PROPS$5;
|
|
2388
2350
|
BarChart.displayName = COMPONENT_NAME$5;
|
|
2389
2351
|
|
|
2390
2352
|
/**
|
|
@@ -2438,20 +2400,12 @@ const StyledDot = styled(DataPoint)`
|
|
|
2438
2400
|
}}}
|
|
2439
2401
|
`;
|
|
2440
2402
|
|
|
2441
|
-
const _excluded$d = ["className", "scaleX", "scaleY", "variant"];
|
|
2403
|
+
const _excluded$d = ["className", "labelDecorator", "scaleX", "scaleY", "variant"];
|
|
2442
2404
|
const COMPONENT_NAME$4 = 'Dot';
|
|
2443
2405
|
const CLASSNAME$4 = 'redsift-dot';
|
|
2444
|
-
const DEFAULT_PROPS$4 = {
|
|
2445
|
-
color: monochrome,
|
|
2446
|
-
index: 0,
|
|
2447
|
-
labelDecorator: datum => {
|
|
2448
|
-
return datum.data.key[2] !== undefined && datum.data.key[2] !== null ? datum.data.key[2] : `${datum.data.key[0]},${datum.data.key[1]}`;
|
|
2449
|
-
},
|
|
2450
|
-
variant: DotVariant.plain
|
|
2451
|
-
};
|
|
2452
2406
|
const Dot = /*#__PURE__*/forwardRef((props, ref) => {
|
|
2453
2407
|
const {
|
|
2454
|
-
color,
|
|
2408
|
+
color = monochrome,
|
|
2455
2409
|
data,
|
|
2456
2410
|
isSelected: propsIsSelected,
|
|
2457
2411
|
onClick,
|
|
@@ -2459,15 +2413,20 @@ const Dot = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2459
2413
|
} = props;
|
|
2460
2414
|
const {
|
|
2461
2415
|
className,
|
|
2416
|
+
labelDecorator = datum => {
|
|
2417
|
+
return datum.data.key[2] !== undefined && datum.data.key[2] !== null ? datum.data.key[2] : `${datum.data.key[0]},${datum.data.key[1]}`;
|
|
2418
|
+
},
|
|
2462
2419
|
scaleX,
|
|
2463
2420
|
scaleY,
|
|
2464
|
-
variant
|
|
2421
|
+
variant = DotVariant.plain
|
|
2465
2422
|
} = props,
|
|
2466
2423
|
forwardedProps = _objectWithoutProperties(props, _excluded$d);
|
|
2467
2424
|
const theme = useTheme();
|
|
2468
2425
|
const isSelectable = role === 'option';
|
|
2469
2426
|
const isDeselected = isSelectable && propsIsSelected === false;
|
|
2470
|
-
return /*#__PURE__*/React__default.createElement(StyledDot, _extends({
|
|
2427
|
+
return /*#__PURE__*/React__default.createElement(StyledDot, _extends({
|
|
2428
|
+
labelDecorator: labelDecorator
|
|
2429
|
+
}, forwardedProps, {
|
|
2471
2430
|
ref: ref,
|
|
2472
2431
|
className: classNames(Dot.className, className),
|
|
2473
2432
|
$clickable: Boolean(onClick),
|
|
@@ -2483,7 +2442,6 @@ const Dot = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2483
2442
|
}));
|
|
2484
2443
|
});
|
|
2485
2444
|
Dot.className = CLASSNAME$4;
|
|
2486
|
-
Dot.defaultProps = DEFAULT_PROPS$4;
|
|
2487
2445
|
Dot.displayName = COMPONENT_NAME$4;
|
|
2488
2446
|
|
|
2489
2447
|
/**
|
|
@@ -2494,13 +2452,9 @@ const StyledLine = styled('g')``;
|
|
|
2494
2452
|
const _excluded$c = ["className", "createLine", "previousData"];
|
|
2495
2453
|
const COMPONENT_NAME$3 = 'Line';
|
|
2496
2454
|
const CLASSNAME$3 = 'redsift-line';
|
|
2497
|
-
const DEFAULT_PROPS$3 = {
|
|
2498
|
-
color: monochrome,
|
|
2499
|
-
previousData: []
|
|
2500
|
-
};
|
|
2501
2455
|
const Line = /*#__PURE__*/forwardRef((props, ref) => {
|
|
2502
2456
|
const {
|
|
2503
|
-
color,
|
|
2457
|
+
color = monochrome,
|
|
2504
2458
|
data,
|
|
2505
2459
|
isSelected: propsIsSelected,
|
|
2506
2460
|
role
|
|
@@ -2508,7 +2462,7 @@ const Line = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2508
2462
|
const {
|
|
2509
2463
|
className,
|
|
2510
2464
|
createLine,
|
|
2511
|
-
previousData
|
|
2465
|
+
previousData = []
|
|
2512
2466
|
} = props,
|
|
2513
2467
|
forwardedProps = _objectWithoutProperties(props, _excluded$c);
|
|
2514
2468
|
const interpolator = interpolate(previousData, data);
|
|
@@ -2535,7 +2489,6 @@ const Line = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2535
2489
|
}));
|
|
2536
2490
|
});
|
|
2537
2491
|
Line.className = CLASSNAME$3;
|
|
2538
|
-
Line.defaultProps = DEFAULT_PROPS$3;
|
|
2539
2492
|
Line.displayName = COMPONENT_NAME$3;
|
|
2540
2493
|
|
|
2541
2494
|
/**
|
|
@@ -2973,25 +2926,13 @@ const RenderedLineChart = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2973
2926
|
}, legendProps)) : null);
|
|
2974
2927
|
});
|
|
2975
2928
|
|
|
2976
|
-
const _excluded$8 = ["className", "data", "dotRole", "emptyComponent", "id", "isDotSelected", "labelDecorator", "legendDecorator", "legendVariant", "localeText", "onDotClick", "size", "
|
|
2929
|
+
const _excluded$8 = ["className", "colorTheme", "data", "dotRole", "emptyComponent", "id", "isDotSelected", "labelDecorator", "legendDecorator", "legendVariant", "localeText", "onDotClick", "size", "sortingMethod", "tooltipDecorator", "tooltipVariant", "xAxisPlacement", "xAxisVariant", "yAxisPlacement", "yAxisVariant"];
|
|
2977
2930
|
const COMPONENT_NAME$2 = 'LineChart';
|
|
2978
2931
|
const CLASSNAME$2 = 'redsift-line-chart';
|
|
2979
|
-
const DEFAULT_PROPS$2 = {
|
|
2980
|
-
localeText: {
|
|
2981
|
-
emptyChartText: 'No Data'
|
|
2982
|
-
},
|
|
2983
|
-
size: ChartSize.medium,
|
|
2984
|
-
sortingMethod: 'desc-value',
|
|
2985
|
-
colorTheme: ColorTheme.dark,
|
|
2986
|
-
tooltipVariant: TooltipVariant.none,
|
|
2987
|
-
xAxisVariant: AxisVariant.default,
|
|
2988
|
-
xAxisPlacement: 'bottom',
|
|
2989
|
-
yAxisVariant: AxisVariant.default,
|
|
2990
|
-
yAxisPlacement: 'left'
|
|
2991
|
-
};
|
|
2992
2932
|
const LineChart = /*#__PURE__*/forwardRef((props, ref) => {
|
|
2993
2933
|
const {
|
|
2994
2934
|
className,
|
|
2935
|
+
colorTheme = ColorTheme.dark,
|
|
2995
2936
|
data: propsData,
|
|
2996
2937
|
dotRole,
|
|
2997
2938
|
emptyComponent,
|
|
@@ -3000,12 +2941,18 @@ const LineChart = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3000
2941
|
labelDecorator,
|
|
3001
2942
|
legendDecorator,
|
|
3002
2943
|
legendVariant: propsLegendVariant,
|
|
3003
|
-
localeText
|
|
2944
|
+
localeText = {
|
|
2945
|
+
emptyChartText: 'No Data'
|
|
2946
|
+
},
|
|
3004
2947
|
onDotClick,
|
|
3005
|
-
size,
|
|
3006
|
-
|
|
2948
|
+
size = ChartSize.medium,
|
|
2949
|
+
sortingMethod = 'desc-value',
|
|
3007
2950
|
tooltipDecorator,
|
|
3008
|
-
tooltipVariant
|
|
2951
|
+
tooltipVariant = TooltipVariant.none,
|
|
2952
|
+
xAxisPlacement = 'bottom',
|
|
2953
|
+
xAxisVariant = AxisVariant.default,
|
|
2954
|
+
yAxisPlacement = 'left',
|
|
2955
|
+
yAxisVariant = AxisVariant.default
|
|
3009
2956
|
} = props,
|
|
3010
2957
|
forwardedProps = _objectWithoutProperties(props, _excluded$8);
|
|
3011
2958
|
const [_id] = useId();
|
|
@@ -3023,13 +2970,19 @@ const LineChart = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3023
2970
|
data: propsData,
|
|
3024
2971
|
emptyComponent: emptyComponent,
|
|
3025
2972
|
localeText: localeText,
|
|
3026
|
-
size: size
|
|
2973
|
+
size: size,
|
|
2974
|
+
sortingMethod: sortingMethod,
|
|
2975
|
+
xAxisPlacement: xAxisPlacement,
|
|
2976
|
+
xAxisVariant: xAxisVariant,
|
|
2977
|
+
yAxisPlacement: yAxisPlacement,
|
|
2978
|
+
yAxisVariant: yAxisVariant
|
|
3027
2979
|
}, forwardedProps, {
|
|
3028
2980
|
ref: ref
|
|
3029
2981
|
}));
|
|
3030
2982
|
}
|
|
3031
2983
|
return /*#__PURE__*/React__default.createElement(RenderedLineChart, _extends({
|
|
3032
2984
|
className: classNames(LineChart.className, className),
|
|
2985
|
+
colorTheme: colorTheme,
|
|
3033
2986
|
data: propsData,
|
|
3034
2987
|
dotRole: dotRole,
|
|
3035
2988
|
id: id,
|
|
@@ -3040,15 +2993,18 @@ const LineChart = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3040
2993
|
localeText: localeText,
|
|
3041
2994
|
onDotClick: onDotClick,
|
|
3042
2995
|
size: size,
|
|
3043
|
-
|
|
2996
|
+
sortingMethod: sortingMethod,
|
|
3044
2997
|
tooltipDecorator: tooltipDecorator,
|
|
3045
|
-
tooltipVariant: tooltipVariant
|
|
2998
|
+
tooltipVariant: tooltipVariant,
|
|
2999
|
+
xAxisPlacement: xAxisPlacement,
|
|
3000
|
+
xAxisVariant: xAxisVariant,
|
|
3001
|
+
yAxisPlacement: yAxisPlacement,
|
|
3002
|
+
yAxisVariant: yAxisVariant
|
|
3046
3003
|
}, forwardedProps, {
|
|
3047
3004
|
ref: ref
|
|
3048
3005
|
}));
|
|
3049
3006
|
});
|
|
3050
3007
|
LineChart.className = CLASSNAME$2;
|
|
3051
|
-
LineChart.defaultProps = DEFAULT_PROPS$2;
|
|
3052
3008
|
LineChart.displayName = COMPONENT_NAME$2;
|
|
3053
3009
|
|
|
3054
3010
|
/**
|
|
@@ -3511,46 +3467,36 @@ const RenderedPieChart = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3511
3467
|
}, legendProps)) : null);
|
|
3512
3468
|
});
|
|
3513
3469
|
|
|
3514
|
-
const _excluded$4 = ["caping", "chartRef", "className", "data", "emptyComponent", "id", "isSliceSelected", "labelDecorator", "legendDecorator", "legendVariant", "localeText", "middleText", "onSliceClick", "others", "size", "sliceRole", "
|
|
3470
|
+
const _excluded$4 = ["caping", "chartRef", "className", "colorTheme", "data", "emptyComponent", "id", "isSliceSelected", "labelDecorator", "legendDecorator", "legendVariant", "localeText", "middleText", "onSliceClick", "others", "size", "sliceRole", "sortingMethod", "subtext", "text", "tooltipDecorator", "tooltipVariant", "variant"];
|
|
3515
3471
|
const COMPONENT_NAME$1 = 'PieChart';
|
|
3516
3472
|
const CLASSNAME$1 = 'redsift-piechart';
|
|
3517
|
-
const DEFAULT_PROPS$1 = {
|
|
3518
|
-
isSliceSelected: () => true,
|
|
3519
|
-
// legendVariant: PieChartLegendVariant.none,
|
|
3520
|
-
others: true,
|
|
3521
|
-
size: ChartSize.medium,
|
|
3522
|
-
sortingMethod: 'desc-value',
|
|
3523
|
-
colorTheme: ColorTheme.default,
|
|
3524
|
-
variant: PieChartVariant.spaced,
|
|
3525
|
-
tooltipVariant: TooltipVariant.value,
|
|
3526
|
-
localeText: {
|
|
3527
|
-
emptyChartText: 'No Data'
|
|
3528
|
-
}
|
|
3529
|
-
};
|
|
3530
3473
|
const PieChart = /*#__PURE__*/forwardRef((props, ref) => {
|
|
3531
3474
|
const {
|
|
3532
3475
|
caping,
|
|
3533
3476
|
chartRef,
|
|
3534
3477
|
className,
|
|
3478
|
+
colorTheme = ColorTheme.default,
|
|
3535
3479
|
data: propsData,
|
|
3536
3480
|
emptyComponent,
|
|
3537
3481
|
id: propsId,
|
|
3538
|
-
isSliceSelected,
|
|
3482
|
+
isSliceSelected = () => true,
|
|
3539
3483
|
labelDecorator,
|
|
3540
3484
|
legendDecorator,
|
|
3541
3485
|
legendVariant: propsLegendVariant,
|
|
3542
|
-
localeText
|
|
3486
|
+
localeText = {
|
|
3487
|
+
emptyChartText: 'No Data'
|
|
3488
|
+
},
|
|
3543
3489
|
middleText,
|
|
3544
3490
|
onSliceClick,
|
|
3545
|
-
others,
|
|
3546
|
-
size,
|
|
3491
|
+
others = true,
|
|
3492
|
+
size = ChartSize.medium,
|
|
3547
3493
|
sliceRole,
|
|
3494
|
+
sortingMethod = 'desc-value',
|
|
3548
3495
|
subtext,
|
|
3549
3496
|
text,
|
|
3550
|
-
colorTheme,
|
|
3551
3497
|
tooltipDecorator,
|
|
3552
|
-
tooltipVariant,
|
|
3553
|
-
variant
|
|
3498
|
+
tooltipVariant = TooltipVariant.value,
|
|
3499
|
+
variant = PieChartVariant.spaced
|
|
3554
3500
|
} = props,
|
|
3555
3501
|
forwardedProps = _objectWithoutProperties(props, _excluded$4);
|
|
3556
3502
|
const [_id] = useId();
|
|
@@ -3570,6 +3516,7 @@ const PieChart = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3570
3516
|
id: id,
|
|
3571
3517
|
localeText: localeText,
|
|
3572
3518
|
size: size,
|
|
3519
|
+
sortingMethod: sortingMethod,
|
|
3573
3520
|
variant: variant
|
|
3574
3521
|
}, forwardedProps, {
|
|
3575
3522
|
ref: ref
|
|
@@ -3590,6 +3537,7 @@ const PieChart = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3590
3537
|
others: others,
|
|
3591
3538
|
size: size,
|
|
3592
3539
|
sliceRole: sliceRole,
|
|
3540
|
+
sortingMethod: sortingMethod,
|
|
3593
3541
|
subtext: subtext,
|
|
3594
3542
|
text: text,
|
|
3595
3543
|
colorTheme: colorTheme,
|
|
@@ -3601,7 +3549,6 @@ const PieChart = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3601
3549
|
}));
|
|
3602
3550
|
});
|
|
3603
3551
|
PieChart.className = CLASSNAME$1;
|
|
3604
|
-
PieChart.defaultProps = DEFAULT_PROPS$1;
|
|
3605
3552
|
PieChart.displayName = COMPONENT_NAME$1;
|
|
3606
3553
|
|
|
3607
3554
|
/**
|
|
@@ -4072,45 +4019,37 @@ const RenderedScatterPlot = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4072
4019
|
}, legendProps)) : null);
|
|
4073
4020
|
});
|
|
4074
4021
|
|
|
4075
|
-
const _excluded = ["className", "data", "dotRole", "emptyComponent", "id", "isDotSelected", "labelDecorator", "legendDecorator", "legendVariant", "localeText", "onBrush", "onBrushEnd", "onDotClick", "size", "
|
|
4022
|
+
const _excluded = ["className", "colorTheme", "data", "dotRole", "emptyComponent", "hideControlKeyPanel", "id", "isDotSelected", "labelDecorator", "legendDecorator", "legendVariant", "localeText", "onBrush", "onBrushEnd", "onDotClick", "size", "sortingMethod", "tooltipDecorator", "tooltipVariant", "variant", "xAxisPlacement", "xAxisVariant", "yAxisPlacement", "yAxisVariant"];
|
|
4076
4023
|
const COMPONENT_NAME = 'ScatterPlot';
|
|
4077
4024
|
const CLASSNAME = 'redsift-scatterplot';
|
|
4078
|
-
const DEFAULT_PROPS = {
|
|
4079
|
-
hideControlKeyPanel: false,
|
|
4080
|
-
// legendVariant: ScatterPlotLegendVariant.externalLabel,
|
|
4081
|
-
localeText: {
|
|
4082
|
-
emptyChartText: 'No Data'
|
|
4083
|
-
},
|
|
4084
|
-
size: ChartSize.medium,
|
|
4085
|
-
sortingMethod: 'desc-value',
|
|
4086
|
-
colorTheme: ColorTheme.default,
|
|
4087
|
-
tooltipVariant: TooltipVariant.none,
|
|
4088
|
-
variant: ScatterPlotVariant.default,
|
|
4089
|
-
xAxisVariant: AxisVariant.default,
|
|
4090
|
-
xAxisPlacement: 'bottom',
|
|
4091
|
-
yAxisVariant: AxisVariant.default,
|
|
4092
|
-
yAxisPlacement: 'left'
|
|
4093
|
-
};
|
|
4094
4025
|
const ScatterPlot = /*#__PURE__*/forwardRef((props, ref) => {
|
|
4095
4026
|
const {
|
|
4096
4027
|
className,
|
|
4028
|
+
colorTheme = ColorTheme.default,
|
|
4097
4029
|
data: propsData,
|
|
4098
4030
|
dotRole,
|
|
4099
4031
|
emptyComponent,
|
|
4032
|
+
hideControlKeyPanel = false,
|
|
4100
4033
|
id: propsId,
|
|
4101
4034
|
isDotSelected,
|
|
4102
4035
|
labelDecorator,
|
|
4103
4036
|
legendDecorator,
|
|
4104
4037
|
legendVariant: propsLegendVariant,
|
|
4105
|
-
localeText
|
|
4038
|
+
localeText = {
|
|
4039
|
+
emptyChartText: 'No Data'
|
|
4040
|
+
},
|
|
4106
4041
|
onBrush,
|
|
4107
4042
|
onBrushEnd,
|
|
4108
4043
|
onDotClick,
|
|
4109
|
-
size,
|
|
4110
|
-
|
|
4044
|
+
size = ChartSize.medium,
|
|
4045
|
+
sortingMethod = 'desc-value',
|
|
4111
4046
|
tooltipDecorator,
|
|
4112
|
-
tooltipVariant,
|
|
4113
|
-
variant
|
|
4047
|
+
tooltipVariant = TooltipVariant.none,
|
|
4048
|
+
variant = ScatterPlotVariant.default,
|
|
4049
|
+
xAxisPlacement = 'bottom',
|
|
4050
|
+
xAxisVariant = AxisVariant.default,
|
|
4051
|
+
yAxisPlacement = 'left',
|
|
4052
|
+
yAxisVariant = AxisVariant.default
|
|
4114
4053
|
} = props,
|
|
4115
4054
|
forwardedProps = _objectWithoutProperties(props, _excluded);
|
|
4116
4055
|
const [_id] = useId();
|
|
@@ -4127,16 +4066,24 @@ const ScatterPlot = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4127
4066
|
return /*#__PURE__*/React__default.createElement(EmptyScatterPlot, _extends({
|
|
4128
4067
|
data: propsData,
|
|
4129
4068
|
emptyComponent: emptyComponent,
|
|
4069
|
+
hideControlKeyPanel: hideControlKeyPanel,
|
|
4130
4070
|
localeText: localeText,
|
|
4131
|
-
size: size
|
|
4071
|
+
size: size,
|
|
4072
|
+
sortingMethod: sortingMethod,
|
|
4073
|
+
xAxisPlacement: xAxisPlacement,
|
|
4074
|
+
xAxisVariant: xAxisVariant,
|
|
4075
|
+
yAxisPlacement: yAxisPlacement,
|
|
4076
|
+
yAxisVariant: yAxisVariant
|
|
4132
4077
|
}, forwardedProps, {
|
|
4133
4078
|
ref: ref
|
|
4134
4079
|
}));
|
|
4135
4080
|
}
|
|
4136
4081
|
return /*#__PURE__*/React__default.createElement(RenderedScatterPlot, _extends({
|
|
4137
4082
|
className: classNames(ScatterPlot.className, className),
|
|
4083
|
+
colorTheme: colorTheme,
|
|
4138
4084
|
data: propsData,
|
|
4139
4085
|
dotRole: dotRole,
|
|
4086
|
+
hideControlKeyPanel: hideControlKeyPanel,
|
|
4140
4087
|
id: id,
|
|
4141
4088
|
isDotSelected: isDotSelected,
|
|
4142
4089
|
labelDecorator: labelDecorator,
|
|
@@ -4147,16 +4094,19 @@ const ScatterPlot = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4147
4094
|
onBrushEnd: onBrushEnd,
|
|
4148
4095
|
onDotClick: onDotClick,
|
|
4149
4096
|
size: size,
|
|
4150
|
-
|
|
4097
|
+
sortingMethod: sortingMethod,
|
|
4151
4098
|
tooltipDecorator: tooltipDecorator,
|
|
4152
4099
|
tooltipVariant: tooltipVariant,
|
|
4153
|
-
variant: variant
|
|
4100
|
+
variant: variant,
|
|
4101
|
+
xAxisPlacement: xAxisPlacement,
|
|
4102
|
+
xAxisVariant: xAxisVariant,
|
|
4103
|
+
yAxisPlacement: yAxisPlacement,
|
|
4104
|
+
yAxisVariant: yAxisVariant
|
|
4154
4105
|
}, forwardedProps, {
|
|
4155
4106
|
ref: ref
|
|
4156
4107
|
}));
|
|
4157
4108
|
});
|
|
4158
4109
|
ScatterPlot.className = CLASSNAME;
|
|
4159
|
-
ScatterPlot.defaultProps = DEFAULT_PROPS;
|
|
4160
4110
|
ScatterPlot.displayName = COMPONENT_NAME;
|
|
4161
4111
|
|
|
4162
4112
|
export { Arc, Arcs, Axis, AxisPosition, AxisVariant, Bar, BarChart, BarChartLegendVariant, BarOrientation, ChartContainer, ChartSize, ColorTheme, DataPoint, Dot, DotVariant, LabelVariant, Legend, LegendVariant, Line, LineChart, LineChartLegendVariant, PieChart, PieChartLegendVariant, PieChartVariant, ScatterPlot, ScatterPlotLegendVariant, ScatterPlotVariant, StyledArc, StyledArcs, StyledAxis, StyledBar, StyledBarChart, StyledBarChartEmptyText, StyledChartContainer, StyledChartContainerCaption, StyledChartContainerTitle, StyledDataPoint, StyledDot, StyledLegend, StyledLine, StyledLineChart, StyledLineChartEmptyText, StyledPieChart, StyledPieChartCenterText, StyledPieChartEmptyText, StyledScatterPlot, StyledScatterPlotEmptyText, TooltipVariant, empty, getColorScale, getSortingMethod, isValidDate, monochrome, scheme, successDangerScheme, useBrush, useColor, useFormatCategoricalData, useZoom };
|