@oliasoft-open-source/charts-library 3.8.0-beta-2 → 3.8.0-beta-4

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
@@ -8,7 +8,7 @@ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
8
8
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
9
9
  import React, { forwardRef, useRef, useEffect, createContext as createContext$2, memo, useLayoutEffect, useState, useCallback, useMemo, isValidElement, cloneElement, useContext, useReducer } from "react";
10
10
  import { produce } from "immer";
11
- import { round as round$2, displayNumber, isCloseTo, roundByMagnitude, to as to$2, toNum } from "@oliasoft-open-source/units";
11
+ import { round as round$2, displayNumber, isCloseTo, roundByMagnitude, toNum } from "@oliasoft-open-source/units";
12
12
  import cx from "classnames";
13
13
  import { Icon, Tooltip as Tooltip$2, Button, Flex, Text, Menu, Popover, Field, InputGroup, NumberInput, InputGroupAddon, Select, ButtonGroup, Spacer, Portal } from "@oliasoft-open-source/react-ui-library";
14
14
  import { isEmpty, isArray as isArray$2, some, has, debounce as debounce$3 } from "lodash";
@@ -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 = 13;
22338
- const DEFAULT_FONT_FAMILY = '"Lato", sans-serif';
22339
- const DEFAULT_COLOR = "rgba(0,0,0,.87)";
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,56 @@ const initialState = ({ options, persistenceId }) => {
22641
22641
  initialAxesRanges: []
22642
22642
  };
22643
22643
  };
22644
+ const lineOnlyIcon = "data:image/svg+xml;base64,PHN2ZyBmaWxsPSJjdXJyZW50Q29sb3IiIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMTIgMTIiIHdpZHRoPSIxZW0iIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZD0ibTAgMGgxMnYxMmgtMTJ6Ii8+PC9jbGlwUGF0aD48ZyBjbGlwLXBhdGg9InVybCgjYSkiPjxwYXRoIGQ9Im0uNSA2LjV2LTFoMTF2MWMtNC4xNjEwNCAwLTYuNjM1NDkgMC0xMSAweiIvPjwvZz48L3N2Zz4=";
22645
+ const pointOnlyIcon = "data:image/svg+xml;base64,PHN2ZyBmaWxsPSJjdXJyZW50Q29sb3IiIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMTIgMTIiIHdpZHRoPSIxZW0iIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjIiLz48L3N2Zz4=";
22646
+ const lineAndPointIcon = "data:image/svg+xml;base64,PHN2ZyBmaWxsPSJjdXJyZW50Q29sb3IiIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMTIgMTIiIHdpZHRoPSIxZW0iIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZD0ibTAgMGgxMnYxMmgtMTJ6Ii8+PC9jbGlwUGF0aD48ZyBjbGlwLXBhdGg9InVybCgjYSkiPjxwYXRoIGQ9Im03LjkzNyA2LjVjLS4xMTEyMi40MjkxMi0uMzYxNzkuODA5MTYtLjcxMjM3IDEuMDgwNDctLjM1MDU4LjI3MTMtLjc4MTMzLjQxODUtMS4yMjQ2My40MTg1cy0uODc0MDUtLjE0NzItMS4yMjQ2My0uNDE4NWMtLjM1MDU4LS4yNzEzMS0uNjAxMTUtLjY1MTM1LS43MTIzNy0xLjA4MDQ3aC0zLjU2M3YtMWgzLjU2M2MuMTExMjItLjQyOTEyLjM2MTc5LS44MDkxNi43MTIzNy0xLjA4MDQ2cy43ODEzMy0uNDE4NTEgMS4yMjQ2My0uNDE4NTEuODc0MDUuMTQ3MjEgMS4yMjQ2My40MTg1MS42MDExNS42NTEzNC43MTIzNyAxLjA4MDQ2aDMuNTYzdjF6Ii8+PC9nPjwvc3ZnPg==";
22647
+ const LineOptions = ({
22648
+ lineEnabled,
22649
+ onToggleLine,
22650
+ onTogglePoints,
22651
+ pointsEnabled,
22652
+ translations
22653
+ }) => {
22654
+ const options = [
22655
+ {
22656
+ label: translations.pointsLines,
22657
+ icon: /* @__PURE__ */ jsx(Icon, { icon: lineAndPointIcon }),
22658
+ selected: pointsEnabled && lineEnabled,
22659
+ onClick: () => {
22660
+ onTogglePoints();
22661
+ }
22662
+ },
22663
+ {
22664
+ label: translations.linesOnly,
22665
+ icon: /* @__PURE__ */ jsx(Icon, { icon: lineOnlyIcon }),
22666
+ selected: !pointsEnabled && lineEnabled,
22667
+ onClick: () => {
22668
+ onTogglePoints();
22669
+ onToggleLine();
22670
+ }
22671
+ },
22672
+ {
22673
+ label: translations.pointsOnly,
22674
+ icon: /* @__PURE__ */ jsx(Icon, { icon: pointOnlyIcon }),
22675
+ selected: pointsEnabled && !lineEnabled,
22676
+ onClick: () => {
22677
+ onToggleLine();
22678
+ }
22679
+ }
22680
+ ];
22681
+ const selectedOption = options.find((option) => option.selected);
22682
+ return /* @__PURE__ */ jsx(Tooltip$2, { text: selectedOption == null ? void 0 : selectedOption.label, placement: "bottom", children: /* @__PURE__ */ jsx(
22683
+ Button,
22684
+ {
22685
+ small: true,
22686
+ basic: true,
22687
+ colored: "muted",
22688
+ round: true,
22689
+ icon: selectedOption == null ? void 0 : selectedOption.icon,
22690
+ onClick: selectedOption == null ? void 0 : selectedOption.onClick
22691
+ }
22692
+ ) });
22693
+ };
22644
22694
  var DefaultContext = {
22645
22695
  color: void 0,
22646
22696
  size: void 0,
@@ -22714,96 +22764,27 @@ function IconBase(props) {
22714
22764
  return elem(conf);
22715
22765
  }) : elem(DefaultContext);
22716
22766
  }
22717
- function RiDragMove2Line(props) {
22718
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M11 11V5.82843L9.17157 7.65685L7.75736 6.24264L12 2L16.2426 6.24264L14.8284 7.65685L13 5.82843V11H18.1716L16.3431 9.17157L17.7574 7.75736L22 12L17.7574 16.2426L16.3431 14.8284L18.1716 13H13V18.1716L14.8284 16.3431L16.2426 17.7574L12 22L7.75736 17.7574L9.17157 16.3431L11 18.1716V13H5.82843L7.65685 14.8284L6.24264 16.2426L2 12L6.24264 7.75736L7.65685 9.17157L5.82843 11H11Z" } }] })(props);
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);
22767
+ function TbArrowsMove(props) {
22768
+ 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);
22722
22769
  }
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);
22770
+ function TbBan(props) {
22771
+ 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);
22725
22772
  }
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);
22728
- }
22729
- function RiFileDownloadLine(props) {
22730
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M13 12H16L12 16L8 12H11V8H13V12ZM15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918Z" } }] })(props);
22731
- }
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+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBkPSJtMCAwaDEydjEyaC0xMnoiLz48L2NsaXBQYXRoPjxnIGNsaXAtcGF0aD0idXJsKCNhKSI+PHBhdGggZD0ibS41IDYuNXYtMWgxMXYxYy00LjE2MTA0IDAtNi42MzU0OSAwLTExIDB6IiBmaWxsPSJjdXJyZW50Q29sb3IiLz48L2c+PC9zdmc+";
22739
- const pointOnlyIcon = "data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjEyIiB2aWV3Qm94PSIwIDAgMTIgMTIiIHdpZHRoPSIxMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSI2IiBjeT0iNiIgZmlsbD0iY3VycmVudENvbG9yIiByPSIyIi8+PC9zdmc+";
22740
- const lineAndPointIcon = "data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjEyIiB2aWV3Qm94PSIwIDAgMTIgMTIiIHdpZHRoPSIxMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBkPSJtMCAwaDEydjEyaC0xMnoiLz48L2NsaXBQYXRoPjxnIGNsaXAtcGF0aD0idXJsKCNhKSI+PHBhdGggZD0ibTcuOTM3IDYuNWMtLjExMTIyLjQyOTEyLS4zNjE3OS44MDkxNi0uNzEyMzcgMS4wODA0Ny0uMzUwNTguMjcxMy0uNzgxMzMuNDE4NS0xLjIyNDYzLjQxODVzLS44NzQwNS0uMTQ3Mi0xLjIyNDYzLS40MTg1Yy0uMzUwNTgtLjI3MTMxLS42MDExNS0uNjUxMzUtLjcxMjM3LTEuMDgwNDdoLTMuNTYzdi0xaDMuNTYzYy4xMTEyMi0uNDI5MTIuMzYxNzktLjgwOTE2LjcxMjM3LTEuMDgwNDZzLjc4MTMzLS40MTg1MSAxLjIyNDYzLS40MTg1MS44NzQwNS4xNDcyMSAxLjIyNDYzLjQxODUxLjYwMTE1LjY1MTM0LjcxMjM3IDEuMDgwNDZoMy41NjN2MXoiIGZpbGw9ImN1cnJlbnRDb2xvciIvPjwvZz48L3N2Zz4=";
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
22773
  function TbHandStop(props) {
22799
22774
  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
22775
  }
22801
22776
  function TbList(props) {
22802
22777
  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
22778
  }
22779
+ function TbRuler(props) {
22780
+ 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);
22781
+ }
22804
22782
  function TbX(props) {
22805
22783
  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
22784
  }
22785
+ function TbZoomIn(props) {
22786
+ 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);
22787
+ }
22807
22788
  const DragOptions = ({
22808
22789
  onTogglePan,
22809
22790
  onToggleZoom,
@@ -22830,7 +22811,7 @@ const DragOptions = ({
22830
22811
  /* @__PURE__ */ jsx(Text, { children: "Drag to zoom" }),
22831
22812
  /* @__PURE__ */ jsx(Text, { small: true, muted: true, children: doubleClickToReset })
22832
22813
  ] }),
22833
- icon: /* @__PURE__ */ jsx(RiZoomInLine, {}),
22814
+ icon: /* @__PURE__ */ jsx(TbZoomIn, {}),
22834
22815
  selected: zoomEnabled,
22835
22816
  onClick: onToggleZoom
22836
22817
  },
@@ -22840,7 +22821,7 @@ const DragOptions = ({
22840
22821
  /* @__PURE__ */ jsx(Text, { children: "Drag to pan" }),
22841
22822
  /* @__PURE__ */ jsx(Text, { small: true, muted: true, children: orDoubleClickToCanvas })
22842
22823
  ] }),
22843
- icon: /* @__PURE__ */ jsx(RiDragMove2Line, {}),
22824
+ icon: /* @__PURE__ */ jsx(TbArrowsMove, {}),
22844
22825
  selected: panEnabled,
22845
22826
  onClick: onTogglePan
22846
22827
  },
@@ -22855,7 +22836,7 @@ const DragOptions = ({
22855
22836
  ] : [],
22856
22837
  {
22857
22838
  label: dragDisabled,
22858
- icon: /* @__PURE__ */ jsx(RiForbidLine, {}),
22839
+ icon: /* @__PURE__ */ jsx(TbBan, {}),
22859
22840
  selected: !zoomEnabled && !panEnabled && !enableDragPoints,
22860
22841
  onClick: onDisableDragOptions
22861
22842
  }
@@ -22892,8 +22873,8 @@ const DragOptions = ({
22892
22873
  }
22893
22874
  );
22894
22875
  };
22895
- const controls = "_controls_fa3yo_1";
22896
- const buttons = "_buttons_fa3yo_7";
22876
+ const controls = "_controls_gbo9q_1";
22877
+ const buttons = "_buttons_gbo9q_7";
22897
22878
  const styles$3 = {
22898
22879
  controls,
22899
22880
  buttons
@@ -24296,7 +24277,7 @@ const AxesOptions = (optionsPopover) => {
24296
24277
  text: translations.axesOptions,
24297
24278
  placement: "bottom",
24298
24279
  display: "flex",
24299
- children: /* @__PURE__ */ jsx(Button, { small: true, basic: true, colored: "muted", round: true, icon: /* @__PURE__ */ jsx(RiRuler2Line, {}) })
24280
+ children: /* @__PURE__ */ jsx(Button, { small: true, basic: true, colored: "muted", round: true, icon: /* @__PURE__ */ jsx(TbRuler, {}) })
24300
24281
  }
24301
24282
  )
24302
24283
  }
@@ -24311,27 +24292,6 @@ const ControlsPortal = ({
24311
24292
  }
24312
24293
  return children;
24313
24294
  };
24314
- const checkCustomOption = (data, customOptions) => {
24315
- if (isEmpty(data) || isEmpty(customOptions))
24316
- return false;
24317
- const checkOption = (dataset) => {
24318
- if (typeof customOptions === "string") {
24319
- return has(dataset, customOptions);
24320
- } else if (isArray$2(customOptions)) {
24321
- return some(customOptions, (option) => has(dataset, option));
24322
- } else {
24323
- return some(
24324
- Object.values(customOptions),
24325
- (option) => has(dataset, option)
24326
- );
24327
- }
24328
- };
24329
- if (isArray$2(data)) {
24330
- return some(data, (dataset) => checkOption(dataset));
24331
- } else {
24332
- return checkOption(data);
24333
- }
24334
- };
24335
24295
  const Controls = ({
24336
24296
  headerComponent,
24337
24297
  subheaderComponent,
@@ -24370,7 +24330,6 @@ const Controls = ({
24370
24330
  dispatch,
24371
24331
  generatedDatasets
24372
24332
  });
24373
- const hasCustomOpt = checkCustomOption(generatedDatasets, "hasCustomOpt");
24374
24333
  return /* @__PURE__ */ jsxs(Fragment, { children: [
24375
24334
  /* @__PURE__ */ jsxs("div", { className: styles$3.controls, children: [
24376
24335
  !!options.title && /* @__PURE__ */ jsx(Text, { bold: true, children: options.title }),
@@ -24396,8 +24355,7 @@ const Controls = ({
24396
24355
  pointsEnabled,
24397
24356
  onToggleLine,
24398
24357
  onTogglePoints,
24399
- translations,
24400
- hasCustomOpt
24358
+ translations
24401
24359
  }
24402
24360
  ),
24403
24361
  /* @__PURE__ */ jsx(
@@ -24412,7 +24370,7 @@ const Controls = ({
24412
24370
  basic: true,
24413
24371
  colored: "muted",
24414
24372
  round: true,
24415
- icon: /* @__PURE__ */ jsx(RiFileDownloadLine, {}),
24373
+ icon: "download",
24416
24374
  onClick: handleDownload
24417
24375
  }
24418
24376
  )
@@ -24445,7 +24403,7 @@ const Controls = ({
24445
24403
  basic: true,
24446
24404
  colored: "muted",
24447
24405
  round: true,
24448
- icon: showTable ? /* @__PURE__ */ jsx(RiLineChartLine, {}) : /* @__PURE__ */ jsx(RiTableLine, {}),
24406
+ icon: showTable ? "chart" : "table",
24449
24407
  onClick: onToggleTable
24450
24408
  }
24451
24409
  )
@@ -24957,7 +24915,6 @@ const TextLabelPosition = {
24957
24915
  BOTTOM_CENTER: "bottom-center",
24958
24916
  BOTTOM_RIGHT: "bottom-right"
24959
24917
  };
24960
- const DEGTORAD = 90;
24961
24918
  const defaultAxis = (position) => ({
24962
24919
  label: "",
24963
24920
  position,
@@ -25009,24 +24966,17 @@ const defaultGraph$2 = (graph) => ({
25009
24966
  showMinorGridlines: (graph == null ? void 0 : graph.showMinorGridlines) ?? false
25010
24967
  });
25011
24968
  const defaultAnnotations$1 = (annotations) => {
25012
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2;
24969
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
25013
24970
  return {
25014
- pointEllipsisAnnotation: {
25015
- radiusX: ((_a2 = annotations == null ? void 0 : annotations.pointEllipsisAnnotation) == null ? void 0 : _a2.radiusX) ?? 10,
25016
- radiusY: ((_b2 = annotations == null ? void 0 : annotations.pointEllipsisAnnotation) == null ? void 0 : _b2.radiusY) ?? 5,
25017
- color: (_c2 = annotations == null ? void 0 : annotations.pointEllipsisAnnotation) == null ? void 0 : _c2.color,
25018
- rotation: ((_d2 = annotations == null ? void 0 : annotations.pointEllipsisAnnotation) == null ? void 0 : _d2.rotation) ?? DEGTORAD,
25019
- lineWidth: ((_e2 = annotations == null ? void 0 : annotations.pointEllipsisAnnotation) == null ? void 0 : _e2.lineWidth) ?? 1
25020
- },
25021
24971
  labelAnnotation: {
25022
- showLabel: ((_f2 = annotations == null ? void 0 : annotations.labelAnnotation) == null ? void 0 : _f2.showLabel) ?? false,
25023
- text: ((_g2 = annotations == null ? void 0 : annotations.labelAnnotation) == null ? void 0 : _g2.text) ?? "",
25024
- position: ((_h2 = annotations == null ? void 0 : annotations.labelAnnotation) == null ? void 0 : _h2.position) ?? TextLabelPosition.BOTTOM_RIGHT,
25025
- fontSize: ((_i2 = annotations == null ? void 0 : annotations.labelAnnotation) == null ? void 0 : _i2.fontSize) ?? 12,
25026
- xOffset: ((_j2 = annotations == null ? void 0 : annotations.labelAnnotation) == null ? void 0 : _j2.xOffset) ?? 5,
25027
- yOffset: ((_k2 = annotations == null ? void 0 : annotations.labelAnnotation) == null ? void 0 : _k2.yOffset) ?? 5,
25028
- maxWidth: ((_l2 = annotations == null ? void 0 : annotations.labelAnnotation) == null ? void 0 : _l2.maxWidth) ?? 300,
25029
- lineHeight: ((_m2 = annotations == null ? void 0 : annotations.labelAnnotation) == null ? void 0 : _m2.lineHeight) ?? 12
24972
+ showLabel: ((_a2 = annotations == null ? void 0 : annotations.labelAnnotation) == null ? void 0 : _a2.showLabel) ?? false,
24973
+ text: ((_b2 = annotations == null ? void 0 : annotations.labelAnnotation) == null ? void 0 : _b2.text) ?? "",
24974
+ position: ((_c2 = annotations == null ? void 0 : annotations.labelAnnotation) == null ? void 0 : _c2.position) ?? TextLabelPosition.BOTTOM_RIGHT,
24975
+ fontSize: ((_d2 = annotations == null ? void 0 : annotations.labelAnnotation) == null ? void 0 : _d2.fontSize) ?? 12,
24976
+ xOffset: ((_e2 = annotations == null ? void 0 : annotations.labelAnnotation) == null ? void 0 : _e2.xOffset) ?? 5,
24977
+ yOffset: ((_f2 = annotations == null ? void 0 : annotations.labelAnnotation) == null ? void 0 : _f2.yOffset) ?? 5,
24978
+ maxWidth: ((_g2 = annotations == null ? void 0 : annotations.labelAnnotation) == null ? void 0 : _g2.maxWidth) ?? 300,
24979
+ lineHeight: ((_h2 = annotations == null ? void 0 : annotations.labelAnnotation) == null ? void 0 : _h2.lineHeight) ?? 12
25030
24980
  },
25031
24981
  showAnnotations: (annotations == null ? void 0 : annotations.showAnnotations) ?? false,
25032
24982
  controlAnnotation: (annotations == null ? void 0 : annotations.controlAnnotation) ?? false,
@@ -25106,6 +25056,27 @@ const INIT_KEYS = {
25106
25056
  };
25107
25057
  const LOWER_BOUND = 1e-4;
25108
25058
  const UPPER_BOUND = 1e7;
25059
+ const checkCustomOption = (data, customOptions) => {
25060
+ if (isEmpty(data) || isEmpty(customOptions))
25061
+ return false;
25062
+ const checkOption = (dataset) => {
25063
+ if (typeof customOptions === "string") {
25064
+ return has(dataset, customOptions);
25065
+ } else if (isArray$2(customOptions)) {
25066
+ return some(customOptions, (option) => has(dataset, option));
25067
+ } else {
25068
+ return some(
25069
+ Object.values(customOptions),
25070
+ (option) => has(dataset, option)
25071
+ );
25072
+ }
25073
+ };
25074
+ if (isArray$2(data)) {
25075
+ return some(data, (dataset) => checkOption(dataset));
25076
+ } else {
25077
+ return checkOption(data);
25078
+ }
25079
+ };
25109
25080
  var CUSTOM_OPTION = /* @__PURE__ */ ((CUSTOM_OPTION2) => {
25110
25081
  CUSTOM_OPTION2["showLine"] = "showLine";
25111
25082
  CUSTOM_OPTION2["showPoints"] = "showPoints";
@@ -25153,8 +25124,8 @@ const generateLineChartDatasets = (datasets, state, options, { label }) => {
25153
25124
  backgroundColor,
25154
25125
  pointBackgroundColor,
25155
25126
  borderDash,
25156
- showPoints = true,
25157
- showLine
25127
+ showPoints: customShowPoints,
25128
+ showLine: customShowLine
25158
25129
  } = line ?? {};
25159
25130
  const { lineEnabled, pointsEnabled, axes = [] } = state ?? {};
25160
25131
  const { lineTension, spanGaps } = graph ?? {};
@@ -25169,18 +25140,25 @@ const generateLineChartDatasets = (datasets, state, options, { label }) => {
25169
25140
  data[2].x = Math.min(axesMax, endPoint.x);
25170
25141
  }
25171
25142
  }
25143
+ const hasCustomOpt = checkCustomOption(line, CUSTOM_OPTION);
25172
25144
  const filteredData = data.filter(Boolean) || [];
25173
25145
  const isSinglePoint = (filteredData == null ? void 0 : filteredData.length) === 1;
25146
+ let pointState, lineState;
25147
+ if (hasCustomOpt) {
25148
+ pointState = customShowPoints !== void 0 ? customShowPoints : !customShowLine;
25149
+ lineState = customShowLine !== void 0 ? customShowLine : !customShowPoints;
25150
+ } else {
25151
+ pointState = pointsEnabled || isSinglePoint;
25152
+ lineState = lineEnabled;
25153
+ }
25174
25154
  const linePointRadius = parseFloat(pointRadiusProp) || DEFAULT_POINT_RADIUS;
25175
- const pointRadius = (pointsEnabled || isSinglePoint) && showPoints ? linePointRadius : 0;
25176
25155
  const hoverRadius = parseFloat(pointHoverRadius) || DEFAULT_HOVER_RADIUS;
25177
25156
  const indexedColor = COLORS[i2];
25178
- const hasCustomOpt = checkCustomOption(line, CUSTOM_OPTION);
25179
25157
  return {
25180
25158
  ...line,
25181
25159
  label: line.label || `${label} ${i2 + 1}`,
25182
25160
  data: filteredData,
25183
- showLine: showLine ?? lineEnabled,
25161
+ showLine: lineState,
25184
25162
  lineTension,
25185
25163
  spanGaps,
25186
25164
  borderWidth: parseFloat(borderWidth) || DEFAULT_BORDER_WIDTH,
@@ -25189,10 +25167,9 @@ const generateLineChartDatasets = (datasets, state, options, { label }) => {
25189
25167
  borderColor: borderColor ?? indexedColor ?? generateRandomColor(COLORS),
25190
25168
  backgroundColor: backgroundColor ?? DEFAULT_BACKGROUND_COLOR,
25191
25169
  pointBackgroundColor: pointBackgroundColor ?? indexedColor ?? generateRandomColor(COLORS),
25192
- pointRadius,
25170
+ pointRadius: pointState ? linePointRadius : 0,
25193
25171
  pointHoverRadius: hoverRadius,
25194
25172
  pointHitRadius: line.pointHitRadius ?? hoverRadius,
25195
- showEllipsesAnnotation: (line == null ? void 0 : line.showEllipsesAnnotation) ?? false,
25196
25173
  ...hasCustomOpt ? { hasCustomOpt } : {}
25197
25174
  };
25198
25175
  });
@@ -25251,7 +25228,7 @@ const getLineChartAxis = (options, axisType, state, currentScales, i2 = 0) => {
25251
25228
  //OW-10088 disable irregular axis ticks
25252
25229
  ...ticksConfigFromProps,
25253
25230
  font: {
25254
- size: 14
25231
+ size: DEFAULT_FONT_SIZE
25255
25232
  }
25256
25233
  };
25257
25234
  return ticks;
@@ -25800,63 +25777,6 @@ const useChartOptions = ({
25800
25777
  [state, options, chartRef]
25801
25778
  );
25802
25779
  };
25803
- const customPointEllipsisPlugin = (options) => {
25804
- var _a2;
25805
- const { radiusX, radiusY, rotation, lineWidth, color: color2 } = ((_a2 = options == null ? void 0 : options.annotations) == null ? void 0 : _a2.pointEllipsisAnnotation) ?? {};
25806
- return {
25807
- id: "ellipseAnnotation",
25808
- afterDatasetsDraw: (chart2) => {
25809
- var _a3, _b2, _c2;
25810
- const { ctx, chartArea } = chart2;
25811
- if (isEmpty((_a3 = options == null ? void 0 : options.annotations) == null ? void 0 : _a3.pointEllipsisAnnotation))
25812
- return;
25813
- (_c2 = (_b2 = chart2 == null ? void 0 : chart2.data) == null ? void 0 : _b2.datasets) == null ? void 0 : _c2.forEach(
25814
- (dataset, datasetIndex) => {
25815
- const meta = chart2.getDatasetMeta(datasetIndex);
25816
- if (!meta.hidden && dataset.showEllipsesAnnotation) {
25817
- meta.data.forEach((element, index2) => {
25818
- var _a4, _b3;
25819
- const pointElement = element;
25820
- const { x: x2, y: y2 } = ((_a4 = pointElement.getCenterPoint) == null ? void 0 : _a4.call(pointElement)) || {
25821
- x: 0,
25822
- y: 0
25823
- };
25824
- if (x2 < chartArea.left || x2 > chartArea.right || y2 < chartArea.top || y2 > chartArea.bottom) {
25825
- return;
25826
- }
25827
- const { ellipseOptions } = (_b3 = dataset == null ? void 0 : dataset.data) == null ? void 0 : _b3[index2];
25828
- const {
25829
- radiusX: ellipseRadiusX = radiusX,
25830
- radiusY: ellipseRadiusY = radiusY,
25831
- rotation: ellipseRotation = rotation,
25832
- lineWidth: ellipseLineWidth = lineWidth,
25833
- color: ellipseColor = color2
25834
- } = ellipseOptions ?? {};
25835
- const customRadiusX = Number(ellipseRadiusX);
25836
- const customRadiusY = Number(ellipseRadiusY);
25837
- const customRotation = to$2(Number(ellipseRotation), "deg", "rad");
25838
- ctx.save();
25839
- ctx.strokeStyle = ellipseColor ?? color2 ?? dataset.borderColor ?? COLORS[datasetIndex];
25840
- ctx.lineWidth = ellipseLineWidth ?? lineWidth ?? 1;
25841
- ctx.beginPath();
25842
- ctx.ellipse(
25843
- x2,
25844
- y2,
25845
- customRadiusX,
25846
- customRadiusY,
25847
- customRotation,
25848
- 0,
25849
- 2 * Math.PI
25850
- );
25851
- ctx.stroke();
25852
- ctx.restore();
25853
- });
25854
- }
25855
- }
25856
- );
25857
- }
25858
- };
25859
- };
25860
25780
  const useChartPlugins = ({ options, resetZoom: resetZoom2 }) => {
25861
25781
  const { graph, legend: legend2 } = options;
25862
25782
  const debouncedResetZoom = useCallback(
@@ -25875,15 +25795,13 @@ const useChartPlugins = ({ options, resetZoom: resetZoom2 }) => {
25875
25795
  },
25876
25796
  [debouncedResetZoom]
25877
25797
  );
25878
- const ellipsePlugin = customPointEllipsisPlugin(options);
25879
25798
  return useMemo(() => {
25880
25799
  return [
25881
25800
  ...getPlugins(graph, legend2),
25882
25801
  {
25883
25802
  id: "customEventCatcher",
25884
25803
  beforeEvent: handleDoubleClick
25885
- },
25886
- ellipsePlugin
25804
+ }
25887
25805
  ];
25888
25806
  }, [handleDoubleClick]);
25889
25807
  };
@@ -26219,8 +26137,7 @@ Chart$2.register(
26219
26137
  plugin$1,
26220
26138
  plugin,
26221
26139
  annotation,
26222
- chartAreaTextPlugin,
26223
- customPointEllipsisPlugin()
26140
+ chartAreaTextPlugin
26224
26141
  );
26225
26142
  const LineChart = (props) => {
26226
26143
  var _a2, _b2;
@@ -39220,7 +39137,7 @@ const getBarChartAxis = ({
39220
39137
  //OW-10088 disable irregular axis ticks
39221
39138
  ...ticksConfigFromProps,
39222
39139
  font: {
39223
- size: 14
39140
+ size: DEFAULT_FONT_SIZE
39224
39141
  }
39225
39142
  };
39226
39143
  if ((additionalAxesOptions == null ? void 0 : additionalAxesOptions.chartScaleType) === ScaleType.Logarithmic) {
@@ -39575,7 +39492,7 @@ export {
39575
39492
  try {
39576
39493
  if (typeof document != "undefined") {
39577
39494
  var elementStyle = document.createElement("style");
39578
- 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_fa3yo_1 {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n._buttons_fa3yo_7 {\n display: flex;\n margin-left: auto;\n gap: 4px;\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}"));
39495
+ 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}"));
39579
39496
  document.head.appendChild(elementStyle);
39580
39497
  }
39581
39498
  } catch (e) {