@oliasoft-open-source/charts-library 3.7.2-beta-1 → 3.8.0-beta-1
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/dist/index.js
CHANGED
|
@@ -22334,9 +22334,9 @@ const BORDER_WIDTH = {
|
|
|
22334
22334
|
};
|
|
22335
22335
|
const BORDER_COLOR = "rgba(0,0,0,0.1)";
|
|
22336
22336
|
const ANNOTATION_DASH = [10, 2];
|
|
22337
|
-
const DEFAULT_FONT_SIZE =
|
|
22338
|
-
const DEFAULT_FONT_FAMILY = '"
|
|
22339
|
-
const DEFAULT_COLOR = "
|
|
22337
|
+
const DEFAULT_FONT_SIZE = 12;
|
|
22338
|
+
const DEFAULT_FONT_FAMILY = '"Roobert", sans-serif';
|
|
22339
|
+
const DEFAULT_COLOR = "hsl(60, 10.34482759%, 12.5%)";
|
|
22340
22340
|
const LEGEND_LABEL_BOX_SIZE = 12;
|
|
22341
22341
|
const TOOLTIP_PADDING = 8;
|
|
22342
22342
|
const TOOLTIP_BOX_PADDING = 4;
|
|
@@ -22641,6 +22641,66 @@ const initialState = ({ options, persistenceId }) => {
|
|
|
22641
22641
|
initialAxesRanges: []
|
|
22642
22642
|
};
|
|
22643
22643
|
};
|
|
22644
|
+
const lineOnlyIcon = "data:image/svg+xml;base64,PHN2ZyBmaWxsPSJjdXJyZW50Q29sb3IiIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMTIgMTIiIHdpZHRoPSIxZW0iIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZD0ibTAgMGgxMnYxMmgtMTJ6Ii8+PC9jbGlwUGF0aD48ZyBjbGlwLXBhdGg9InVybCgjYSkiPjxwYXRoIGQ9Im0uNSA2LjV2LTFoMTF2MWMtNC4xNjE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ZnPg==";
|
|
22647
|
+
const LineOptions = ({
|
|
22648
|
+
lineEnabled,
|
|
22649
|
+
onToggleLine,
|
|
22650
|
+
onTogglePoints,
|
|
22651
|
+
pointsEnabled,
|
|
22652
|
+
translations,
|
|
22653
|
+
hasCustomOpt
|
|
22654
|
+
}) => {
|
|
22655
|
+
const options = [
|
|
22656
|
+
{
|
|
22657
|
+
label: translations.pointsLines,
|
|
22658
|
+
icon: /* @__PURE__ */ jsx(Icon, { icon: lineAndPointIcon }),
|
|
22659
|
+
selected: pointsEnabled && lineEnabled,
|
|
22660
|
+
onClick: () => {
|
|
22661
|
+
onTogglePoints();
|
|
22662
|
+
}
|
|
22663
|
+
},
|
|
22664
|
+
{
|
|
22665
|
+
label: translations.linesOnly,
|
|
22666
|
+
icon: /* @__PURE__ */ jsx(Icon, { icon: lineOnlyIcon }),
|
|
22667
|
+
selected: !pointsEnabled && lineEnabled,
|
|
22668
|
+
onClick: () => {
|
|
22669
|
+
onTogglePoints();
|
|
22670
|
+
onToggleLine();
|
|
22671
|
+
}
|
|
22672
|
+
},
|
|
22673
|
+
{
|
|
22674
|
+
label: translations.pointsOnly,
|
|
22675
|
+
icon: /* @__PURE__ */ jsx(Icon, { icon: pointOnlyIcon }),
|
|
22676
|
+
selected: pointsEnabled && !lineEnabled,
|
|
22677
|
+
onClick: () => {
|
|
22678
|
+
onToggleLine();
|
|
22679
|
+
}
|
|
22680
|
+
}
|
|
22681
|
+
];
|
|
22682
|
+
const selectedOption = options.find((option) => option.selected);
|
|
22683
|
+
return /* @__PURE__ */ jsx(
|
|
22684
|
+
Tooltip$2,
|
|
22685
|
+
{
|
|
22686
|
+
text: selectedOption == null ? void 0 : selectedOption.label,
|
|
22687
|
+
placement: "bottom",
|
|
22688
|
+
enabled: !hasCustomOpt,
|
|
22689
|
+
children: /* @__PURE__ */ jsx(
|
|
22690
|
+
Button,
|
|
22691
|
+
{
|
|
22692
|
+
small: true,
|
|
22693
|
+
basic: true,
|
|
22694
|
+
colored: "muted",
|
|
22695
|
+
round: true,
|
|
22696
|
+
icon: selectedOption == null ? void 0 : selectedOption.icon,
|
|
22697
|
+
onClick: selectedOption == null ? void 0 : selectedOption.onClick,
|
|
22698
|
+
disabled: hasCustomOpt
|
|
22699
|
+
}
|
|
22700
|
+
)
|
|
22701
|
+
}
|
|
22702
|
+
);
|
|
22703
|
+
};
|
|
22644
22704
|
var DefaultContext = {
|
|
22645
22705
|
color: void 0,
|
|
22646
22706
|
size: void 0,
|
|
@@ -22714,96 +22774,27 @@ function IconBase(props) {
|
|
|
22714
22774
|
return elem(conf);
|
|
22715
22775
|
}) : elem(DefaultContext);
|
|
22716
22776
|
}
|
|
22717
|
-
function
|
|
22718
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "
|
|
22719
|
-
}
|
|
22720
|
-
function RiLineChartLine(props) {
|
|
22721
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M5 3V19H21V21H3V3H5ZM20.2929 6.29289L21.7071 7.70711L16 13.4142L13 10.415L8.70711 14.7071L7.29289 13.2929L13 7.58579L16 10.585L20.2929 6.29289Z" } }] })(props);
|
|
22722
|
-
}
|
|
22723
|
-
function RiRuler2Line(props) {
|
|
22724
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M17 19H19V14H10V5H5V7H7V9H5V11H8V13H5V15H7V17H5V19H7V17H9V19H11V16H13V19H15V17H17V19ZM12 12H20C20.5523 12 21 12.4477 21 13V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H11C11.5523 3 12 3.44772 12 4V12Z" } }] })(props);
|
|
22725
|
-
}
|
|
22726
|
-
function RiTableLine(props) {
|
|
22727
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" } }] })(props);
|
|
22777
|
+
function TbArrowsMove(props) {
|
|
22778
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "fill": "none", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "stroke": "none", "d": "M0 0h24v24H0z", "fill": "none" } }, { "tag": "path", "attr": { "d": "M18 9l3 3l-3 3" } }, { "tag": "path", "attr": { "d": "M15 12h6" } }, { "tag": "path", "attr": { "d": "M6 9l-3 3l3 3" } }, { "tag": "path", "attr": { "d": "M3 12h6" } }, { "tag": "path", "attr": { "d": "M9 18l3 3l3 -3" } }, { "tag": "path", "attr": { "d": "M12 15v6" } }, { "tag": "path", "attr": { "d": "M15 6l-3 -3l-3 3" } }, { "tag": "path", "attr": { "d": "M12 3v6" } }] })(props);
|
|
22728
22779
|
}
|
|
22729
|
-
function
|
|
22730
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "
|
|
22780
|
+
function TbBan(props) {
|
|
22781
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "fill": "none", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "stroke": "none", "d": "M0 0h24v24H0z", "fill": "none" } }, { "tag": "path", "attr": { "d": "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" } }, { "tag": "path", "attr": { "d": "M5.7 5.7l12.6 12.6" } }] })(props);
|
|
22731
22782
|
}
|
|
22732
|
-
function RiForbidLine(props) {
|
|
22733
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8.52313 7.10891L16.8911 15.4769C16.6997 15.7454 16.4836 16.0017 16.2426 16.2426C16.0017 16.4836 15.7454 16.6997 15.4769 16.8911L7.10891 8.52313C7.30029 8.25459 7.51644 7.99828 7.75736 7.75736C7.99828 7.51644 8.25459 7.30029 8.52313 7.10891Z" } }] })(props);
|
|
22734
|
-
}
|
|
22735
|
-
function RiZoomInLine(props) {
|
|
22736
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748ZM10 10V7H12V10H15V12H12V15H10V12H7V10H10Z" } }] })(props);
|
|
22737
|
-
}
|
|
22738
|
-
const lineOnlyIcon = "data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjEyIiB2aWV3Qm94PSIwIDAgMTIgMTIiIHdpZHRoPSIxMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGNsaXBQYXRoIGlkPSJh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NDZzLjc4MTMzLS40MTg1MSAxLjIyNDYzLS40MTg1MS44NzQwNS4xNDcyMSAxLjIyNDYzLjQxODUxLjYwMTE1LjY1MTM0LjcxMjM3IDEuMDgwNDZoMy41NjN2MXoiIGZpbGw9ImN1cnJlbnRDb2xvciIvPjwvZz48L3N2Zz4=";
|
|
22741
|
-
const LineOptions = ({
|
|
22742
|
-
lineEnabled,
|
|
22743
|
-
onToggleLine,
|
|
22744
|
-
onTogglePoints,
|
|
22745
|
-
pointsEnabled,
|
|
22746
|
-
translations,
|
|
22747
|
-
hasCustomOpt
|
|
22748
|
-
}) => {
|
|
22749
|
-
const options = [
|
|
22750
|
-
{
|
|
22751
|
-
label: translations.pointsLines,
|
|
22752
|
-
icon: /* @__PURE__ */ jsx(Icon, { icon: lineAndPointIcon }),
|
|
22753
|
-
selected: pointsEnabled && lineEnabled,
|
|
22754
|
-
onClick: () => {
|
|
22755
|
-
onTogglePoints();
|
|
22756
|
-
}
|
|
22757
|
-
},
|
|
22758
|
-
{
|
|
22759
|
-
label: translations.linesOnly,
|
|
22760
|
-
icon: /* @__PURE__ */ jsx(Icon, { icon: lineOnlyIcon }),
|
|
22761
|
-
selected: !pointsEnabled && lineEnabled,
|
|
22762
|
-
onClick: () => {
|
|
22763
|
-
onTogglePoints();
|
|
22764
|
-
onToggleLine();
|
|
22765
|
-
}
|
|
22766
|
-
},
|
|
22767
|
-
{
|
|
22768
|
-
label: translations.pointsOnly,
|
|
22769
|
-
icon: /* @__PURE__ */ jsx(Icon, { icon: pointOnlyIcon }),
|
|
22770
|
-
selected: pointsEnabled && !lineEnabled,
|
|
22771
|
-
onClick: () => {
|
|
22772
|
-
onToggleLine();
|
|
22773
|
-
}
|
|
22774
|
-
}
|
|
22775
|
-
];
|
|
22776
|
-
const selectedOption = options.find((option) => option.selected);
|
|
22777
|
-
return /* @__PURE__ */ jsx(
|
|
22778
|
-
Tooltip$2,
|
|
22779
|
-
{
|
|
22780
|
-
text: selectedOption == null ? void 0 : selectedOption.label,
|
|
22781
|
-
placement: "bottom",
|
|
22782
|
-
enabled: !hasCustomOpt,
|
|
22783
|
-
children: /* @__PURE__ */ jsx(
|
|
22784
|
-
Button,
|
|
22785
|
-
{
|
|
22786
|
-
small: true,
|
|
22787
|
-
basic: true,
|
|
22788
|
-
colored: "muted",
|
|
22789
|
-
round: true,
|
|
22790
|
-
icon: selectedOption == null ? void 0 : selectedOption.icon,
|
|
22791
|
-
onClick: selectedOption == null ? void 0 : selectedOption.onClick,
|
|
22792
|
-
disabled: hasCustomOpt
|
|
22793
|
-
}
|
|
22794
|
-
)
|
|
22795
|
-
}
|
|
22796
|
-
);
|
|
22797
|
-
};
|
|
22798
22783
|
function TbHandStop(props) {
|
|
22799
22784
|
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "fill": "none", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "stroke": "none", "d": "M0 0h24v24H0z", "fill": "none" } }, { "tag": "path", "attr": { "d": "M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5" } }, { "tag": "path", "attr": { "d": "M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5" } }, { "tag": "path", "attr": { "d": "M14 5.5a1.5 1.5 0 0 1 3 0v6.5" } }, { "tag": "path", "attr": { "d": "M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47" } }] })(props);
|
|
22800
22785
|
}
|
|
22801
22786
|
function TbList(props) {
|
|
22802
22787
|
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "fill": "none", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "stroke": "none", "d": "M0 0h24v24H0z", "fill": "none" } }, { "tag": "path", "attr": { "d": "M9 6l11 0" } }, { "tag": "path", "attr": { "d": "M9 12l11 0" } }, { "tag": "path", "attr": { "d": "M9 18l11 0" } }, { "tag": "path", "attr": { "d": "M5 6l0 .01" } }, { "tag": "path", "attr": { "d": "M5 12l0 .01" } }, { "tag": "path", "attr": { "d": "M5 18l0 .01" } }] })(props);
|
|
22803
22788
|
}
|
|
22789
|
+
function TbRuler(props) {
|
|
22790
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "fill": "none", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "stroke": "none", "d": "M0 0h24v24H0z", "fill": "none" } }, { "tag": "path", "attr": { "d": "M5 4h14a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-7a1 1 0 0 0 -1 1v7a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1" } }, { "tag": "path", "attr": { "d": "M4 8l2 0" } }, { "tag": "path", "attr": { "d": "M4 12l3 0" } }, { "tag": "path", "attr": { "d": "M4 16l2 0" } }, { "tag": "path", "attr": { "d": "M8 4l0 2" } }, { "tag": "path", "attr": { "d": "M12 4l0 3" } }, { "tag": "path", "attr": { "d": "M16 4l0 2" } }] })(props);
|
|
22791
|
+
}
|
|
22804
22792
|
function TbX(props) {
|
|
22805
22793
|
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "fill": "none", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "stroke": "none", "d": "M0 0h24v24H0z", "fill": "none" } }, { "tag": "path", "attr": { "d": "M18 6l-12 12" } }, { "tag": "path", "attr": { "d": "M6 6l12 12" } }] })(props);
|
|
22806
22794
|
}
|
|
22795
|
+
function TbZoomIn(props) {
|
|
22796
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "fill": "none", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "stroke": "none", "d": "M0 0h24v24H0z", "fill": "none" } }, { "tag": "path", "attr": { "d": "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" } }, { "tag": "path", "attr": { "d": "M7 10l6 0" } }, { "tag": "path", "attr": { "d": "M10 7l0 6" } }, { "tag": "path", "attr": { "d": "M21 21l-6 -6" } }] })(props);
|
|
22797
|
+
}
|
|
22807
22798
|
const DragOptions = ({
|
|
22808
22799
|
onTogglePan,
|
|
22809
22800
|
onToggleZoom,
|
|
@@ -22830,7 +22821,7 @@ const DragOptions = ({
|
|
|
22830
22821
|
/* @__PURE__ */ jsx(Text, { children: "Drag to zoom" }),
|
|
22831
22822
|
/* @__PURE__ */ jsx(Text, { small: true, muted: true, children: doubleClickToReset })
|
|
22832
22823
|
] }),
|
|
22833
|
-
icon: /* @__PURE__ */ jsx(
|
|
22824
|
+
icon: /* @__PURE__ */ jsx(TbZoomIn, {}),
|
|
22834
22825
|
selected: zoomEnabled,
|
|
22835
22826
|
onClick: onToggleZoom
|
|
22836
22827
|
},
|
|
@@ -22840,7 +22831,7 @@ const DragOptions = ({
|
|
|
22840
22831
|
/* @__PURE__ */ jsx(Text, { children: "Drag to pan" }),
|
|
22841
22832
|
/* @__PURE__ */ jsx(Text, { small: true, muted: true, children: orDoubleClickToCanvas })
|
|
22842
22833
|
] }),
|
|
22843
|
-
icon: /* @__PURE__ */ jsx(
|
|
22834
|
+
icon: /* @__PURE__ */ jsx(TbArrowsMove, {}),
|
|
22844
22835
|
selected: panEnabled,
|
|
22845
22836
|
onClick: onTogglePan
|
|
22846
22837
|
},
|
|
@@ -22855,7 +22846,7 @@ const DragOptions = ({
|
|
|
22855
22846
|
] : [],
|
|
22856
22847
|
{
|
|
22857
22848
|
label: dragDisabled,
|
|
22858
|
-
icon: /* @__PURE__ */ jsx(
|
|
22849
|
+
icon: /* @__PURE__ */ jsx(TbBan, {}),
|
|
22859
22850
|
selected: !zoomEnabled && !panEnabled && !enableDragPoints,
|
|
22860
22851
|
onClick: onDisableDragOptions
|
|
22861
22852
|
}
|
|
@@ -22892,8 +22883,8 @@ const DragOptions = ({
|
|
|
22892
22883
|
}
|
|
22893
22884
|
);
|
|
22894
22885
|
};
|
|
22895
|
-
const controls = "
|
|
22896
|
-
const buttons = "
|
|
22886
|
+
const controls = "_controls_gbo9q_1";
|
|
22887
|
+
const buttons = "_buttons_gbo9q_7";
|
|
22897
22888
|
const styles$3 = {
|
|
22898
22889
|
controls,
|
|
22899
22890
|
buttons
|
|
@@ -24296,7 +24287,7 @@ const AxesOptions = (optionsPopover) => {
|
|
|
24296
24287
|
text: translations.axesOptions,
|
|
24297
24288
|
placement: "bottom",
|
|
24298
24289
|
display: "flex",
|
|
24299
|
-
children: /* @__PURE__ */ jsx(Button, { small: true, basic: true, colored: "muted", round: true, icon: /* @__PURE__ */ jsx(
|
|
24290
|
+
children: /* @__PURE__ */ jsx(Button, { small: true, basic: true, colored: "muted", round: true, icon: /* @__PURE__ */ jsx(TbRuler, {}) })
|
|
24300
24291
|
}
|
|
24301
24292
|
)
|
|
24302
24293
|
}
|
|
@@ -24412,7 +24403,7 @@ const Controls = ({
|
|
|
24412
24403
|
basic: true,
|
|
24413
24404
|
colored: "muted",
|
|
24414
24405
|
round: true,
|
|
24415
|
-
icon:
|
|
24406
|
+
icon: "download",
|
|
24416
24407
|
onClick: handleDownload
|
|
24417
24408
|
}
|
|
24418
24409
|
)
|
|
@@ -24445,7 +24436,7 @@ const Controls = ({
|
|
|
24445
24436
|
basic: true,
|
|
24446
24437
|
colored: "muted",
|
|
24447
24438
|
round: true,
|
|
24448
|
-
icon: showTable ?
|
|
24439
|
+
icon: showTable ? "chart" : "table",
|
|
24449
24440
|
onClick: onToggleTable
|
|
24450
24441
|
}
|
|
24451
24442
|
)
|
|
@@ -25239,7 +25230,7 @@ const getLineChartAxis = (options, axisType, state, currentScales, i2 = 0) => {
|
|
|
25239
25230
|
//OW-10088 disable irregular axis ticks
|
|
25240
25231
|
...ticksConfigFromProps,
|
|
25241
25232
|
font: {
|
|
25242
|
-
size:
|
|
25233
|
+
size: DEFAULT_FONT_SIZE
|
|
25243
25234
|
}
|
|
25244
25235
|
};
|
|
25245
25236
|
return ticks;
|
|
@@ -25908,26 +25899,23 @@ const useUpdateAxesRanges = ({
|
|
|
25908
25899
|
}
|
|
25909
25900
|
}, [range]);
|
|
25910
25901
|
};
|
|
25911
|
-
const useSaveInitialAxesRanges = (chartRef, axes, dispatch
|
|
25912
|
-
const prevDatasets = useRef(null);
|
|
25902
|
+
const useSaveInitialAxesRanges = (chartRef, axes, dispatch) => {
|
|
25913
25903
|
useEffect(() => {
|
|
25914
|
-
if (chartRef.current
|
|
25904
|
+
if (chartRef.current) {
|
|
25915
25905
|
const initialAxesRanges = getAxesRangesFromChart(chartRef, axes);
|
|
25916
25906
|
dispatch({
|
|
25917
25907
|
type: SAVE_INITIAL_AXES_RANGES,
|
|
25918
25908
|
payload: { initialAxesRanges }
|
|
25919
25909
|
});
|
|
25920
|
-
prevDatasets.current = generatedDatasets;
|
|
25921
25910
|
}
|
|
25922
|
-
}, [
|
|
25911
|
+
}, []);
|
|
25923
25912
|
};
|
|
25924
25913
|
const useChartState = ({
|
|
25925
25914
|
chartRef,
|
|
25926
25915
|
options,
|
|
25927
25916
|
state,
|
|
25928
25917
|
dispatch,
|
|
25929
|
-
persistenceId
|
|
25930
|
-
generatedDatasets
|
|
25918
|
+
persistenceId
|
|
25931
25919
|
}) => {
|
|
25932
25920
|
const memoState = useMemo(() => state, [state]);
|
|
25933
25921
|
const memoOptions = useMemo(() => options, [options]);
|
|
@@ -25945,7 +25933,7 @@ const useChartState = ({
|
|
|
25945
25933
|
chartRef,
|
|
25946
25934
|
annotationsData
|
|
25947
25935
|
});
|
|
25948
|
-
useSaveInitialAxesRanges(chartRef, axes, dispatch
|
|
25936
|
+
useSaveInitialAxesRanges(chartRef, axes, dispatch);
|
|
25949
25937
|
};
|
|
25950
25938
|
const WORD_SEPARATOR = " ";
|
|
25951
25939
|
const SEMI_TRANSPARENT = "rgba(0, 0, 0, 0.5)";
|
|
@@ -26182,8 +26170,7 @@ const LineChart = (props) => {
|
|
|
26182
26170
|
options,
|
|
26183
26171
|
state,
|
|
26184
26172
|
dispatch,
|
|
26185
|
-
persistenceId
|
|
26186
|
-
generatedDatasets
|
|
26173
|
+
persistenceId
|
|
26187
26174
|
});
|
|
26188
26175
|
const { resetZoom: resetZoom2, handleKeyDown, handleKeyUp } = useChartFunctions({
|
|
26189
26176
|
chartRef,
|
|
@@ -39148,7 +39135,7 @@ const getBarChartAxis = ({
|
|
|
39148
39135
|
//OW-10088 disable irregular axis ticks
|
|
39149
39136
|
...ticksConfigFromProps,
|
|
39150
39137
|
font: {
|
|
39151
|
-
size:
|
|
39138
|
+
size: DEFAULT_FONT_SIZE
|
|
39152
39139
|
}
|
|
39153
39140
|
};
|
|
39154
39141
|
if ((additionalAxesOptions == null ? void 0 : additionalAxesOptions.chartScaleType) === ScaleType.Logarithmic) {
|
|
@@ -39503,7 +39490,7 @@ export {
|
|
|
39503
39490
|
try {
|
|
39504
39491
|
if (typeof document != "undefined") {
|
|
39505
39492
|
var elementStyle = document.createElement("style");
|
|
39506
|
-
elementStyle.appendChild(document.createTextNode("html[data-theme='dark'] ._chart_e3qdd_1 canvas {\n filter: invert(1) hue-rotate(180deg);\n}\n._chart_e3qdd_1 {\n border: 1px solid rgba(255, 255, 255, 0);\n position: relative;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n._chart_e3qdd_1 ._canvas_e3qdd_11 {\n flex-grow: 1;\n min-height: 0;\n position: relative;\n}\n._chart_e3qdd_1 ._canvas_e3qdd_11 canvas {\n width: 100% !important;\n height: 100% !important;\n}\n._chart_e3qdd_1._fixedHeight_e3qdd_20 {\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n height: auto;\n}\n._chart_e3qdd_1._stretchHeight_e3qdd_26 {\n display: flex;\n align-items: stretch;\n justify-content: stretch;\n height: 100%;\n}\n._chart_e3qdd_1._squareAspectRatio_e3qdd_32 {\n aspect-ratio: 1;\n min-height: 0;\n min-width: 0;\n}\n._chart_e3qdd_1:focus {\n outline: none;\n}\n._chart_e3qdd_1::-moz-focus-inner {\n border: 0;\n}\n._zoomForm_e3qdd_43 {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n right: 0;\n}\n._zoomForm_e3qdd_43 ._zoomReset_e3qdd_51 {\n margin-left: 10px;\n}\n._zoomForm_e3qdd_43 ._help_e3qdd_54 {\n margin-left: 5px;\n line-height: 0;\n}\n._autoWeight_e3qdd_58 {\n width: auto;\n height: auto;\n}\n._table_e3qdd_62 {\n overflow: auto;\n}\n.
|
|
39493
|
+
elementStyle.appendChild(document.createTextNode("html[data-theme='dark'] ._chart_e3qdd_1 canvas {\n filter: invert(1) hue-rotate(180deg);\n}\n._chart_e3qdd_1 {\n border: 1px solid rgba(255, 255, 255, 0);\n position: relative;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n._chart_e3qdd_1 ._canvas_e3qdd_11 {\n flex-grow: 1;\n min-height: 0;\n position: relative;\n}\n._chart_e3qdd_1 ._canvas_e3qdd_11 canvas {\n width: 100% !important;\n height: 100% !important;\n}\n._chart_e3qdd_1._fixedHeight_e3qdd_20 {\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n height: auto;\n}\n._chart_e3qdd_1._stretchHeight_e3qdd_26 {\n display: flex;\n align-items: stretch;\n justify-content: stretch;\n height: 100%;\n}\n._chart_e3qdd_1._squareAspectRatio_e3qdd_32 {\n aspect-ratio: 1;\n min-height: 0;\n min-width: 0;\n}\n._chart_e3qdd_1:focus {\n outline: none;\n}\n._chart_e3qdd_1::-moz-focus-inner {\n border: 0;\n}\n._zoomForm_e3qdd_43 {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n right: 0;\n}\n._zoomForm_e3qdd_43 ._zoomReset_e3qdd_51 {\n margin-left: 10px;\n}\n._zoomForm_e3qdd_43 ._help_e3qdd_54 {\n margin-left: 5px;\n line-height: 0;\n}\n._autoWeight_e3qdd_58 {\n width: auto;\n height: auto;\n}\n._table_e3qdd_62 {\n overflow: auto;\n}\n._controls_gbo9q_1 {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--padding-xs);\n}\n._buttons_gbo9q_7 {\n display: flex;\n align-items: flex-start;\n margin-left: auto;\n gap: var(--padding-xxs);\n}\n._legend_wpro0_1 {\n position: absolute;\n opacity: 0.9;\n display: flex;\n flex-direction: column;\n z-index: 1;\n}\n._legend_wpro0_1._isDragging_wpro0_8 {\n opacity: 0;\n}\n._legendItems_wpro0_11 {\n background-color: var(--color-background-raised);\n border: 1px solid var(--color-border);\n padding: 4px 8px;\n border-radius: 2px;\n overflow-y: auto;\n max-height: 100%;\n overflow: overlay;\n --scrollbar-color: #00000040;\n}\n._legendItems_wpro0_11::-webkit-scrollbar {\n display: block;\n width: 16px;\n z-index: 2;\n}\n._legendItems_wpro0_11::-webkit-scrollbar-button {\n display: none;\n}\n._legendItems_wpro0_11::-webkit-scrollbar-track {\n background-color: #00000000;\n}\n._legendItems_wpro0_11::-webkit-scrollbar-track-piece {\n background-color: #00000000;\n}\n._legendItems_wpro0_11::-webkit-scrollbar-thumb {\n background-color: #00000000;\n border: 5px solid transparent;\n border-radius: 24px;\n box-shadow: 4px 0px 0px 4px var(--scrollbar-color) inset;\n}\n._legendItems_wpro0_11::-webkit-scrollbar-corner {\n background: rgba(0, 0, 0, 0);\n}\n._legend_wpro0_1._isDragging_wpro0_8 ._legendItems_wpro0_11._legendItems_wpro0_11 {\n pointer-events: none;\n}\n._legend_wpro0_1._isHidden_wpro0_47 ._legendItems_wpro0_11._legendItems_wpro0_11 {\n display: none;\n}\n._legendToggle_wpro0_50 {\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n display: none;\n}\n._legend_wpro0_1._isHidden_wpro0_47 ._legendToggle_wpro0_50._legendToggle_wpro0_50,\n._legend_wpro0_1:hover ._legendToggle_wpro0_50._legendToggle_wpro0_50 {\n display: block;\n}\n._legend_wpro0_1:active ._legendToggle_wpro0_50._legendToggle_wpro0_50:not(:hover) {\n display: none;\n}\n._legend_wpro0_1._isHidden_wpro0_47 ._legendToggle_wpro0_50._legendToggle_wpro0_50 {\n position: static;\n transform: none;\n}\n._legend_wpro0_1._isDragging_wpro0_8 ._legendToggle_wpro0_50._legendToggle_wpro0_50 {\n display: none;\n}\n._legendItem_wpro0_11 {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n user-select: none;\n cursor: pointer;\n font-size: 12px;\n line-height: 16px;\n}\n._legendItemSymbol_wpro0_80 {\n display: flex;\n align-items: center;\n height: 16px;\n position: relative;\n flex-shrink: 0;\n}\nhtml[data-theme='dark'] ._legendItemSymbol_wpro0_80._legendItemSymbol_wpro0_80 {\n filter: invert(1) hue-rotate(180deg);\n}\n._legendItemBox_wpro0_90 {\n width: 100%;\n height: 12px;\n display: block;\n}\n._legendItemLine_wpro0_95 {\n position: absolute;\n display: flex;\n top: 50%;\n left: 0;\n width: 100%;\n transform: translateY(-50%);\n}\n._legendItemPoint_wpro0_103 {\n position: absolute;\n display: flex;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n._isHidden_wpro0_47 ._legendItemText_wpro0_110._legendItemText_wpro0_110 {\n text-decoration: line-through;\n}\n._scrollbars_wpro0_113 {\n overflow: overlay;\n --scrollbar-color: #00000040;\n}\n._scrollbars_wpro0_113::-webkit-scrollbar {\n display: block;\n width: 16px;\n z-index: 2;\n}\n._scrollbars_wpro0_113::-webkit-scrollbar-button {\n display: none;\n}\n._scrollbars_wpro0_113::-webkit-scrollbar-track {\n background-color: #00000000;\n}\n._scrollbars_wpro0_113::-webkit-scrollbar-track-piece {\n background-color: #00000000;\n}\n._scrollbars_wpro0_113::-webkit-scrollbar-thumb {\n background-color: #00000000;\n border: 5px solid transparent;\n border-radius: 24px;\n box-shadow: 4px 0px 0px 4px var(--scrollbar-color) inset;\n}\n._scrollbars_wpro0_113::-webkit-scrollbar-corner {\n background: rgba(0, 0, 0, 0);\n}\n._dropzoneContainer_wpro0_140 {\n position: absolute;\n}\n._dropzone_wpro0_140 {\n position: absolute;\n width: 50%;\n height: 50%;\n display: flex;\n}\n._dropzone_wpro0_140._left_wpro0_149 {\n left: 0;\n justify-content: flex-start;\n}\n._dropzone_wpro0_140._right_wpro0_153 {\n right: 0;\n justify-content: flex-end;\n}\n._dropzone_wpro0_140._top_wpro0_157 {\n top: 0;\n align-items: flex-start;\n}\n._dropzone_wpro0_140._bottom_wpro0_161 {\n bottom: 0;\n align-items: flex-end;\n}\n._dropzonePlaceholder_wpro0_165 {\n position: absolute;\n background-color: rgba(0, 0, 0, 0.05);\n display: none;\n}\n[data-theme='dark'] ._dropzonePlaceholder_wpro0_165 {\n background-color: rgba(255, 255, 255, 0.05);\n}\n._isActive_wpro0_173 ._dropzonePlaceholder_wpro0_165._dropzonePlaceholder_wpro0_165 {\n display: block;\n}\n._resizeContainer_wpro0_176 {\n position: absolute;\n inset: 0;\n z-index: -1;\n}\nhtml[data-theme='dark'] ._chart_1jdnu_1 canvas {\n filter: invert(1) hue-rotate(180deg);\n}\n._chart_1jdnu_1 {\n border: 1px solid rgba(255, 255, 255, 0);\n padding-top: 10px;\n position: relative;\n}\n._chart_1jdnu_1 canvas {\n width: 100% !important;\n height: 100% !important;\n}\n._chart_1jdnu_1._fixedHeight_1jdnu_13 {\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n height: auto;\n}\n._chart_1jdnu_1._stretchHeight_1jdnu_19 {\n display: flex;\n align-items: stretch;\n justify-content: stretch;\n height: 100%;\n}\n._chart_1jdnu_1:focus {\n border: 1px solid #85b7d9;\n outline: none;\n}\n._chart_1jdnu_1::-moz-focus-inner {\n border: 0;\n}\n._zoomForm_1jdnu_32 {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n right: 0;\n}\n._zoomForm_1jdnu_32 ._zoomReset_1jdnu_40 {\n margin-left: 10px;\n}\n._zoomForm_1jdnu_32 ._help_1jdnu_43 {\n margin-left: 5px;\n line-height: 0;\n}\n._autoWeight_1jdnu_47 {\n width: 'auto';\n height: 'auto';\n}\nhtml[data-theme='dark'] ._chart_1t41j_1 canvas {\n filter: invert(1) hue-rotate(180deg);\n}\n._chart_1t41j_1 {\n border: 1px solid rgba(255, 255, 255, 0);\n padding-top: 10px;\n position: relative;\n}\n._chart_1t41j_1 canvas {\n width: 100% !important;\n height: 100% !important;\n}\n._chart_1t41j_1._fixedHeight_1t41j_13 {\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n height: auto;\n}\n._chart_1t41j_1._stretchHeight_1t41j_19 {\n display: flex;\n align-items: stretch;\n justify-content: stretch;\n height: 100%;\n}\n._chart_1t41j_1:focus {\n border: 1px solid #85b7d9;\n outline: none;\n}\n._chart_1t41j_1::-moz-focus-inner {\n border: 0;\n}\n._zoomForm_1t41j_32 {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n right: 0;\n}\n._zoomForm_1t41j_32 ._zoomReset_1t41j_40 {\n margin-left: 10px;\n}\n._zoomForm_1t41j_32 ._help_1t41j_43 {\n margin-left: 5px;\n line-height: 0;\n}\n._autoWeight_1t41j_47 {\n width: auto;\n height: auto;\n}"));
|
|
39507
39494
|
document.head.appendChild(elementStyle);
|
|
39508
39495
|
}
|
|
39509
39496
|
} catch (e) {
|