@oliasoft-open-source/charts-library 4.1.11 → 4.2.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
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
7
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
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";
@@ -4914,6 +4914,130 @@ let PieController$1 = (_e = class extends DoughnutController$1 {
4914
4914
  circumference: 360,
4915
4915
  radius: "100%"
4916
4916
  }), _e);
4917
+ let ScatterController$1 = (_f = class extends DatasetController$1 {
4918
+ getLabelAndValue(index2) {
4919
+ const meta = this._cachedMeta;
4920
+ const labels = this.chart.data.labels || [];
4921
+ const { xScale, yScale } = meta;
4922
+ const parsed = this.getParsed(index2);
4923
+ const x2 = xScale.getLabelForValue(parsed.x);
4924
+ const y2 = yScale.getLabelForValue(parsed.y);
4925
+ return {
4926
+ label: labels[index2] || "",
4927
+ value: "(" + x2 + ", " + y2 + ")"
4928
+ };
4929
+ }
4930
+ update(mode) {
4931
+ const meta = this._cachedMeta;
4932
+ const { data: points = [] } = meta;
4933
+ const animationsDisabled = this.chart._animationsDisabled;
4934
+ let { start, count } = _getStartAndCountOfVisiblePoints$1(meta, points, animationsDisabled);
4935
+ this._drawStart = start;
4936
+ this._drawCount = count;
4937
+ if (_scaleRangesChanged$1(meta)) {
4938
+ start = 0;
4939
+ count = points.length;
4940
+ }
4941
+ if (this.options.showLine) {
4942
+ if (!this.datasetElementType) {
4943
+ this.addElements();
4944
+ }
4945
+ const { dataset: line, _dataset } = meta;
4946
+ line._chart = this.chart;
4947
+ line._datasetIndex = this.index;
4948
+ line._decimated = !!_dataset._decimated;
4949
+ line.points = points;
4950
+ const options = this.resolveDatasetElementOptions(mode);
4951
+ options.segment = this.options.segment;
4952
+ this.updateElement(line, void 0, {
4953
+ animated: !animationsDisabled,
4954
+ options
4955
+ }, mode);
4956
+ } else if (this.datasetElementType) {
4957
+ delete meta.dataset;
4958
+ this.datasetElementType = false;
4959
+ }
4960
+ this.updateElements(points, start, count, mode);
4961
+ }
4962
+ addElements() {
4963
+ const { showLine } = this.options;
4964
+ if (!this.datasetElementType && showLine) {
4965
+ this.datasetElementType = this.chart.registry.getElement("line");
4966
+ }
4967
+ super.addElements();
4968
+ }
4969
+ updateElements(points, start, count, mode) {
4970
+ const reset = mode === "reset";
4971
+ const { iScale, vScale, _stacked, _dataset } = this._cachedMeta;
4972
+ const firstOpts = this.resolveDataElementOptions(start, mode);
4973
+ const sharedOptions = this.getSharedOptions(firstOpts);
4974
+ const includeOptions = this.includeOptions(mode, sharedOptions);
4975
+ const iAxis = iScale.axis;
4976
+ const vAxis = vScale.axis;
4977
+ const { spanGaps, segment } = this.options;
4978
+ const maxGapLength = isNumber$1(spanGaps) ? spanGaps : Number.POSITIVE_INFINITY;
4979
+ const directUpdate = this.chart._animationsDisabled || reset || mode === "none";
4980
+ let prevParsed = start > 0 && this.getParsed(start - 1);
4981
+ for (let i2 = start; i2 < start + count; ++i2) {
4982
+ const point = points[i2];
4983
+ const parsed = this.getParsed(i2);
4984
+ const properties = directUpdate ? point : {};
4985
+ const nullData = isNullOrUndef$1(parsed[vAxis]);
4986
+ const iPixel = properties[iAxis] = iScale.getPixelForValue(parsed[iAxis], i2);
4987
+ const vPixel = properties[vAxis] = reset || nullData ? vScale.getBasePixel() : vScale.getPixelForValue(_stacked ? this.applyStack(vScale, parsed, _stacked) : parsed[vAxis], i2);
4988
+ properties.skip = isNaN(iPixel) || isNaN(vPixel) || nullData;
4989
+ properties.stop = i2 > 0 && Math.abs(parsed[iAxis] - prevParsed[iAxis]) > maxGapLength;
4990
+ if (segment) {
4991
+ properties.parsed = parsed;
4992
+ properties.raw = _dataset.data[i2];
4993
+ }
4994
+ if (includeOptions) {
4995
+ properties.options = sharedOptions || this.resolveDataElementOptions(i2, point.active ? "active" : mode);
4996
+ }
4997
+ if (!directUpdate) {
4998
+ this.updateElement(point, i2, properties, mode);
4999
+ }
5000
+ prevParsed = parsed;
5001
+ }
5002
+ this.updateSharedOptions(sharedOptions, mode, firstOpts);
5003
+ }
5004
+ getMaxOverflow() {
5005
+ const meta = this._cachedMeta;
5006
+ const data = meta.data || [];
5007
+ if (!this.options.showLine) {
5008
+ let max = 0;
5009
+ for (let i2 = data.length - 1; i2 >= 0; --i2) {
5010
+ max = Math.max(max, data[i2].size(this.resolveDataElementOptions(i2)) / 2);
5011
+ }
5012
+ return max > 0 && max;
5013
+ }
5014
+ const dataset = meta.dataset;
5015
+ const border = dataset.options && dataset.options.borderWidth || 0;
5016
+ if (!data.length) {
5017
+ return border;
5018
+ }
5019
+ const firstPoint = data[0].size(this.resolveDataElementOptions(0));
5020
+ const lastPoint = data[data.length - 1].size(this.resolveDataElementOptions(data.length - 1));
5021
+ return Math.max(border, firstPoint, lastPoint) / 2;
5022
+ }
5023
+ }, __publicField(_f, "id", "scatter"), __publicField(_f, "defaults", {
5024
+ datasetElementType: false,
5025
+ dataElementType: "point",
5026
+ showLine: false,
5027
+ fill: false
5028
+ }), __publicField(_f, "overrides", {
5029
+ interaction: {
5030
+ mode: "point"
5031
+ },
5032
+ scales: {
5033
+ x: {
5034
+ type: "linear"
5035
+ },
5036
+ y: {
5037
+ type: "linear"
5038
+ }
5039
+ }
5040
+ }), _f);
4917
5041
  function abstract$1() {
4918
5042
  throw new Error("This method is not implemented: Check that a complete date adapter is provided.");
4919
5043
  }
@@ -5803,7 +5927,7 @@ function _detectPlatform$1(canvas2) {
5803
5927
  }
5804
5928
  return DomPlatform$1;
5805
5929
  }
5806
- let Element$2 = (_f = class {
5930
+ let Element$2 = (_g = class {
5807
5931
  constructor() {
5808
5932
  __publicField(this, "x");
5809
5933
  __publicField(this, "y");
@@ -5835,7 +5959,7 @@ let Element$2 = (_f = class {
5835
5959
  });
5836
5960
  return ret;
5837
5961
  }
5838
- }, __publicField(_f, "defaults", {}), __publicField(_f, "defaultRoutes"), _f);
5962
+ }, __publicField(_g, "defaults", {}), __publicField(_g, "defaultRoutes"), _g);
5839
5963
  function autoSkip$1(scale, ticks) {
5840
5964
  const tickOpts = scale.options.ticks;
5841
5965
  const determinedMaxTicks = determineMaxTicks$1(scale);
@@ -7922,7 +8046,7 @@ function getDatasetArea(meta, chartArea) {
7922
8046
  }
7923
8047
  return chartArea;
7924
8048
  }
7925
- let Chart$2 = (_g = class {
8049
+ let Chart$2 = (_h = class {
7926
8050
  static register(...items) {
7927
8051
  registry$1.add(...items);
7928
8052
  invalidatePlugins$1();
@@ -8742,7 +8866,7 @@ let Chart$2 = (_g = class {
8742
8866
  const hoverOptions = this.options.hover;
8743
8867
  return this.getElementsAtEventForMode(e2, hoverOptions.mode, hoverOptions, useFinalPosition);
8744
8868
  }
8745
- }, __publicField(_g, "defaults", defaults$2), __publicField(_g, "instances", instances$1), __publicField(_g, "overrides", overrides$1), __publicField(_g, "registry", registry$1), __publicField(_g, "version", version$3), __publicField(_g, "getChart", getChart$1), _g);
8869
+ }, __publicField(_h, "defaults", defaults$2), __publicField(_h, "instances", instances$1), __publicField(_h, "overrides", overrides$1), __publicField(_h, "registry", registry$1), __publicField(_h, "version", version$3), __publicField(_h, "getChart", getChart$1), _h);
8746
8870
  function invalidatePlugins$1() {
8747
8871
  return each$1(Chart$2.instances, (chart2) => chart2._plugins.invalidate());
8748
8872
  }
@@ -8904,7 +9028,7 @@ function drawBorder$1(ctx, element, offset, spacing, circular) {
8904
9028
  ctx.stroke();
8905
9029
  }
8906
9030
  }
8907
- let ArcElement$1 = (_h = class extends Element$2 {
9031
+ let ArcElement$1 = (_i = class extends Element$2 {
8908
9032
  constructor(cfg) {
8909
9033
  super();
8910
9034
  __publicField(this, "circumference");
@@ -8989,7 +9113,7 @@ let ArcElement$1 = (_h = class extends Element$2 {
8989
9113
  drawBorder$1(ctx, this, radiusOffset, spacing, circular);
8990
9114
  ctx.restore();
8991
9115
  }
8992
- }, __publicField(_h, "id", "arc"), __publicField(_h, "defaults", {
9116
+ }, __publicField(_i, "id", "arc"), __publicField(_i, "defaults", {
8993
9117
  borderAlign: "center",
8994
9118
  borderColor: "#fff",
8995
9119
  borderDash: [],
@@ -9001,12 +9125,12 @@ let ArcElement$1 = (_h = class extends Element$2 {
9001
9125
  spacing: 0,
9002
9126
  angle: void 0,
9003
9127
  circular: true
9004
- }), __publicField(_h, "defaultRoutes", {
9128
+ }), __publicField(_i, "defaultRoutes", {
9005
9129
  backgroundColor: "backgroundColor"
9006
- }), __publicField(_h, "descriptors", {
9130
+ }), __publicField(_i, "descriptors", {
9007
9131
  _scriptable: true,
9008
9132
  _indexable: (name) => name !== "borderDash"
9009
- }), _h);
9133
+ }), _i);
9010
9134
  function setStyle$1(ctx, options, style = options) {
9011
9135
  ctx.lineCap = valueOrDefault$1(style.borderCapStyle, options.borderCapStyle);
9012
9136
  ctx.setLineDash(valueOrDefault$1(style.borderDash, options.borderDash));
@@ -9159,7 +9283,7 @@ function draw$3(ctx, line, start, count) {
9159
9283
  strokePathDirect$1(ctx, line, start, count);
9160
9284
  }
9161
9285
  }
9162
- let LineElement$1 = (_i = class extends Element$2 {
9286
+ let LineElement$1 = (_j = class extends Element$2 {
9163
9287
  constructor(cfg) {
9164
9288
  super();
9165
9289
  this.animated = true;
@@ -9269,7 +9393,7 @@ let LineElement$1 = (_i = class extends Element$2 {
9269
9393
  this._path = void 0;
9270
9394
  }
9271
9395
  }
9272
- }, __publicField(_i, "id", "line"), __publicField(_i, "defaults", {
9396
+ }, __publicField(_j, "id", "line"), __publicField(_j, "defaults", {
9273
9397
  borderCapStyle: "butt",
9274
9398
  borderDash: [],
9275
9399
  borderDashOffset: 0,
@@ -9281,13 +9405,13 @@ let LineElement$1 = (_i = class extends Element$2 {
9281
9405
  spanGaps: false,
9282
9406
  stepped: false,
9283
9407
  tension: 0
9284
- }), __publicField(_i, "defaultRoutes", {
9408
+ }), __publicField(_j, "defaultRoutes", {
9285
9409
  backgroundColor: "backgroundColor",
9286
9410
  borderColor: "borderColor"
9287
- }), __publicField(_i, "descriptors", {
9411
+ }), __publicField(_j, "descriptors", {
9288
9412
  _scriptable: true,
9289
9413
  _indexable: (name) => name !== "borderDash" && name !== "fill"
9290
- }), _i);
9414
+ }), _j);
9291
9415
  function inRange$1$1(el, pos, axis, useFinalPosition) {
9292
9416
  const options = el.options;
9293
9417
  const { [axis]: value } = el.getProps([
@@ -9295,7 +9419,7 @@ function inRange$1$1(el, pos, axis, useFinalPosition) {
9295
9419
  ], useFinalPosition);
9296
9420
  return Math.abs(pos - value) < options.radius + options.hitRadius;
9297
9421
  }
9298
- let PointElement$1 = (_j = class extends Element$2 {
9422
+ let PointElement$1 = (_k = class extends Element$2 {
9299
9423
  constructor(cfg) {
9300
9424
  super();
9301
9425
  __publicField(this, "parsed");
@@ -9354,10 +9478,10 @@ let PointElement$1 = (_j = class extends Element$2 {
9354
9478
  const options = this.options || {};
9355
9479
  return options.radius + options.hitRadius;
9356
9480
  }
9357
- }, __publicField(_j, "id", "point"), /**
9481
+ }, __publicField(_k, "id", "point"), /**
9358
9482
  * @type {any}
9359
9483
  */
9360
- __publicField(_j, "defaults", {
9484
+ __publicField(_k, "defaults", {
9361
9485
  borderWidth: 1,
9362
9486
  hitRadius: 1,
9363
9487
  hoverBorderWidth: 1,
@@ -9368,10 +9492,10 @@ __publicField(_j, "defaults", {
9368
9492
  }), /**
9369
9493
  * @type {any}
9370
9494
  */
9371
- __publicField(_j, "defaultRoutes", {
9495
+ __publicField(_k, "defaultRoutes", {
9372
9496
  backgroundColor: "backgroundColor",
9373
9497
  borderColor: "borderColor"
9374
- }), _j);
9498
+ }), _k);
9375
9499
  function getBarBounds$1(bar, useFinalPosition) {
9376
9500
  const { x: x2, y: y2, base, width, height } = bar.getProps([
9377
9501
  "x",
@@ -9485,7 +9609,7 @@ function inflateRect$1(rect, amount, refRect = {}) {
9485
9609
  radius: rect.radius
9486
9610
  };
9487
9611
  }
9488
- let BarElement$1 = (_k = class extends Element$2 {
9612
+ let BarElement$1 = (_l = class extends Element$2 {
9489
9613
  constructor(cfg) {
9490
9614
  super();
9491
9615
  this.options = void 0;
@@ -9541,16 +9665,16 @@ let BarElement$1 = (_k = class extends Element$2 {
9541
9665
  getRange(axis) {
9542
9666
  return axis === "x" ? this.width / 2 : this.height / 2;
9543
9667
  }
9544
- }, __publicField(_k, "id", "bar"), __publicField(_k, "defaults", {
9668
+ }, __publicField(_l, "id", "bar"), __publicField(_l, "defaults", {
9545
9669
  borderSkipped: "start",
9546
9670
  borderWidth: 0,
9547
9671
  borderRadius: 0,
9548
9672
  inflateAmount: "auto",
9549
9673
  pointStyle: void 0
9550
- }), __publicField(_k, "defaultRoutes", {
9674
+ }), __publicField(_l, "defaultRoutes", {
9551
9675
  backgroundColor: "backgroundColor",
9552
9676
  borderColor: "borderColor"
9553
- }), _k);
9677
+ }), _l);
9554
9678
  function _segments(line, target, property) {
9555
9679
  const segments = line.segments;
9556
9680
  const points = line.points;
@@ -11119,7 +11243,7 @@ function invokeCallbackWithFallback(callbacks, name, ctx, arg) {
11119
11243
  }
11120
11244
  return result;
11121
11245
  }
11122
- let Tooltip$1 = (_l = class extends Element$2 {
11246
+ let Tooltip$1 = (_m = class extends Element$2 {
11123
11247
  constructor(config2) {
11124
11248
  super();
11125
11249
  this.opacity = 0;
@@ -11658,7 +11782,7 @@ let Tooltip$1 = (_l = class extends Element$2 {
11658
11782
  const position = positioners$2[options.position].call(this, active, e2);
11659
11783
  return position !== false && (caretX !== position.x || caretY !== position.y);
11660
11784
  }
11661
- }, __publicField(_l, "positioners", positioners$2), _l);
11785
+ }, __publicField(_m, "positioners", positioners$2), _m);
11662
11786
  var plugin_tooltip = {
11663
11787
  id: "tooltip",
11664
11788
  _element: Tooltip$1,
@@ -11813,7 +11937,7 @@ function _getLabelForValue(value) {
11813
11937
  }
11814
11938
  return value;
11815
11939
  }
11816
- let CategoryScale$1 = (_m = class extends Scale$1 {
11940
+ let CategoryScale$1 = (_n = class extends Scale$1 {
11817
11941
  constructor(cfg) {
11818
11942
  super(cfg);
11819
11943
  this._startValue = void 0;
@@ -11899,11 +12023,11 @@ let CategoryScale$1 = (_m = class extends Scale$1 {
11899
12023
  getBasePixel() {
11900
12024
  return this.bottom;
11901
12025
  }
11902
- }, __publicField(_m, "id", "category"), __publicField(_m, "defaults", {
12026
+ }, __publicField(_n, "id", "category"), __publicField(_n, "defaults", {
11903
12027
  ticks: {
11904
12028
  callback: _getLabelForValue
11905
12029
  }
11906
- }), _m);
12030
+ }), _n);
11907
12031
  function generateTicks$1$1(generationOptions, dataRange) {
11908
12032
  const ticks = [];
11909
12033
  const MIN_SPACING = 1e-14;
@@ -12126,7 +12250,7 @@ let LinearScaleBase$1 = class LinearScaleBase extends Scale$1 {
12126
12250
  return formatNumber$1(value, this.chart.options.locale, this.options.ticks.format);
12127
12251
  }
12128
12252
  };
12129
- let LinearScale$1 = (_n = class extends LinearScaleBase$1 {
12253
+ let LinearScale$1 = (_o = class extends LinearScaleBase$1 {
12130
12254
  determineDataLimits() {
12131
12255
  const { min, max } = this.getMinMax(true);
12132
12256
  this.min = isNumberFinite$1(min) ? min : 0;
@@ -12147,11 +12271,11 @@ let LinearScale$1 = (_n = class extends LinearScaleBase$1 {
12147
12271
  getValueForPixel(pixel) {
12148
12272
  return this._startValue + this.getDecimalForPixel(pixel) * this._valueRange;
12149
12273
  }
12150
- }, __publicField(_n, "id", "linear"), __publicField(_n, "defaults", {
12274
+ }, __publicField(_o, "id", "linear"), __publicField(_o, "defaults", {
12151
12275
  ticks: {
12152
12276
  callback: Ticks$1.formatters.numeric
12153
12277
  }
12154
- }), _n);
12278
+ }), _o);
12155
12279
  const log10Floor = (v2) => Math.floor(log10$1(v2));
12156
12280
  const changeExponent = (v2, m2) => Math.pow(10, log10Floor(v2) + m2);
12157
12281
  function isMajor$1(tickVal) {
@@ -12213,7 +12337,7 @@ function generateTicks$2(generationOptions, { min, max }) {
12213
12337
  });
12214
12338
  return ticks;
12215
12339
  }
12216
- let LogarithmicScale$1 = (_o = class extends Scale$1 {
12340
+ let LogarithmicScale$1 = (_p = class extends Scale$1 {
12217
12341
  constructor(cfg) {
12218
12342
  super(cfg);
12219
12343
  this.start = void 0;
@@ -12310,14 +12434,14 @@ let LogarithmicScale$1 = (_o = class extends Scale$1 {
12310
12434
  const decimal = this.getDecimalForPixel(pixel);
12311
12435
  return Math.pow(10, this._startValue + decimal * this._valueRange);
12312
12436
  }
12313
- }, __publicField(_o, "id", "logarithmic"), __publicField(_o, "defaults", {
12437
+ }, __publicField(_p, "id", "logarithmic"), __publicField(_p, "defaults", {
12314
12438
  ticks: {
12315
12439
  callback: Ticks$1.formatters.logarithmic,
12316
12440
  major: {
12317
12441
  enabled: true
12318
12442
  }
12319
12443
  }
12320
- }), _o);
12444
+ }), _p);
12321
12445
  const INTERVALS$1 = {
12322
12446
  millisecond: {
12323
12447
  common: true,
@@ -12453,7 +12577,7 @@ function ticksFromTimestamps$1(scale, values2, majorUnit) {
12453
12577
  }
12454
12578
  return ilen === 0 || !majorUnit ? ticks : setMajorTicks$1(scale, ticks, map2, majorUnit);
12455
12579
  }
12456
- let TimeScale$1 = (_p = class extends Scale$1 {
12580
+ let TimeScale$1 = (_q = class extends Scale$1 {
12457
12581
  constructor(props) {
12458
12582
  super(props);
12459
12583
  this._cache = {
@@ -12719,7 +12843,7 @@ let TimeScale$1 = (_p = class extends Scale$1 {
12719
12843
  normalize(values2) {
12720
12844
  return _arrayUnique$1(values2.sort(sorter$1));
12721
12845
  }
12722
- }, __publicField(_p, "id", "time"), __publicField(_p, "defaults", {
12846
+ }, __publicField(_q, "id", "time"), __publicField(_q, "defaults", {
12723
12847
  bounds: "data",
12724
12848
  adapters: {},
12725
12849
  time: {
@@ -12737,7 +12861,7 @@ let TimeScale$1 = (_p = class extends Scale$1 {
12737
12861
  enabled: false
12738
12862
  }
12739
12863
  }
12740
- }), _p);
12864
+ }), _q);
12741
12865
  function interpolate$2(table2, val, reverse) {
12742
12866
  let lo = 0;
12743
12867
  let hi = table2.length - 1;
@@ -12758,7 +12882,7 @@ function interpolate$2(table2, val, reverse) {
12758
12882
  const span = nextSource - prevSource;
12759
12883
  return span ? prevTarget + (nextTarget - prevTarget) * (val - prevSource) / span : prevTarget;
12760
12884
  }
12761
- let TimeSeriesScale$1 = (_q = class extends TimeScale$1 {
12885
+ let TimeSeriesScale$1 = (_r = class extends TimeScale$1 {
12762
12886
  constructor(props) {
12763
12887
  super(props);
12764
12888
  this._table = [];
@@ -12843,7 +12967,7 @@ let TimeSeriesScale$1 = (_q = class extends TimeScale$1 {
12843
12967
  const decimal = this.getDecimalForPixel(pixel) / offsets.factor - offsets.end;
12844
12968
  return interpolate$2(this._table, decimal * this._tableRange + this._minPos, true);
12845
12969
  }
12846
- }, __publicField(_q, "id", "timeseries"), __publicField(_q, "defaults", TimeScale$1.defaults), _q);
12970
+ }, __publicField(_r, "id", "timeseries"), __publicField(_r, "defaults", TimeScale$1.defaults), _r);
12847
12971
  const defaultDatasetIdKey = "label";
12848
12972
  function reforwardRef(ref, value) {
12849
12973
  if (typeof ref === "function") {
@@ -12980,6 +13104,7 @@ function createTypedChart(type, registerables) {
12980
13104
  const Line = /* @__PURE__ */ createTypedChart("line", LineController$1);
12981
13105
  const Bar = /* @__PURE__ */ createTypedChart("bar", BarController$1);
12982
13106
  const Pie = /* @__PURE__ */ createTypedChart("pie", PieController$1);
13107
+ const Scatter = /* @__PURE__ */ createTypedChart("scatter", ScatterController$1);
12983
13108
  function getDefaultExportFromCjs(x2) {
12984
13109
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
12985
13110
  }
@@ -22048,26 +22173,26 @@ class HTML5BackendImpl {
22048
22173
  const HTML5Backend = function createBackend(manager, context, options) {
22049
22174
  return new HTML5BackendImpl(manager, context, options);
22050
22175
  };
22051
- const chart$2 = "_chart_e3qdd_1";
22176
+ const chart$3 = "_chart_e3qdd_1";
22052
22177
  const canvas$1 = "_canvas_e3qdd_11";
22053
- const fixedHeight$2 = "_fixedHeight_e3qdd_20";
22054
- const stretchHeight$2 = "_stretchHeight_e3qdd_26";
22178
+ const fixedHeight$3 = "_fixedHeight_e3qdd_20";
22179
+ const stretchHeight$3 = "_stretchHeight_e3qdd_26";
22055
22180
  const squareAspectRatio = "_squareAspectRatio_e3qdd_32";
22056
- const zoomForm$2 = "_zoomForm_e3qdd_43";
22057
- const zoomReset$2 = "_zoomReset_e3qdd_51";
22058
- const help$2 = "_help_e3qdd_54";
22059
- const autoWeight$2 = "_autoWeight_e3qdd_58";
22181
+ const zoomForm$3 = "_zoomForm_e3qdd_43";
22182
+ const zoomReset$3 = "_zoomReset_e3qdd_51";
22183
+ const help$3 = "_help_e3qdd_54";
22184
+ const autoWeight$3 = "_autoWeight_e3qdd_58";
22060
22185
  const table = "_table_e3qdd_62";
22061
- const styles$4 = {
22062
- chart: chart$2,
22186
+ const styles$5 = {
22187
+ chart: chart$3,
22063
22188
  canvas: canvas$1,
22064
- fixedHeight: fixedHeight$2,
22065
- stretchHeight: stretchHeight$2,
22189
+ fixedHeight: fixedHeight$3,
22190
+ stretchHeight: stretchHeight$3,
22066
22191
  squareAspectRatio,
22067
- zoomForm: zoomForm$2,
22068
- zoomReset: zoomReset$2,
22069
- help: help$2,
22070
- autoWeight: autoWeight$2,
22192
+ zoomForm: zoomForm$3,
22193
+ zoomReset: zoomReset$3,
22194
+ help: help$3,
22195
+ autoWeight: autoWeight$3,
22071
22196
  table
22072
22197
  };
22073
22198
  const TOGGLE_ZOOM = "TOGGLE_ZOOM";
@@ -22191,10 +22316,10 @@ var ScaleType = /* @__PURE__ */ ((ScaleType2) => {
22191
22316
  ScaleType2["Logarithmic"] = "logarithmic";
22192
22317
  return ScaleType2;
22193
22318
  })(ScaleType || {});
22194
- var ChartDirection = /* @__PURE__ */ ((ChartDirection2) => {
22319
+ var ChartDirection$1 = /* @__PURE__ */ ((ChartDirection2) => {
22195
22320
  ChartDirection2["Vertical"] = "vertical";
22196
22321
  return ChartDirection2;
22197
- })(ChartDirection || {});
22322
+ })(ChartDirection$1 || {});
22198
22323
  var TooltipLabel = /* @__PURE__ */ ((TooltipLabel2) => {
22199
22324
  TooltipLabel2["Y"] = "yLabel";
22200
22325
  TooltipLabel2["X"] = "xLabel";
@@ -22413,7 +22538,7 @@ const getTitle = (options) => {
22413
22538
  } : {};
22414
22539
  };
22415
22540
  const isVertical = (direction) => {
22416
- return direction === ChartDirection.Vertical;
22541
+ return direction === ChartDirection$1.Vertical;
22417
22542
  };
22418
22543
  const getAxisPosition = (axisType, i2) => {
22419
22544
  const [positionA, positionB] = axisType === AxisType.Y ? [Position.Left, Position.Right] : [Position.Top, Position.Bottom];
@@ -22757,6 +22882,9 @@ function TbArrowsMove(props) {
22757
22882
  function TbBan(props) {
22758
22883
  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);
22759
22884
  }
22885
+ function TbCircleFilled(props) {
22886
+ 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": "M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z", "strokeWidth": "0", "fill": "currentColor" } }] })(props);
22887
+ }
22760
22888
  function TbHandStop(props) {
22761
22889
  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);
22762
22890
  }
@@ -22865,7 +22993,7 @@ const DragOptions = ({
22865
22993
  };
22866
22994
  const controls = "_controls_gbo9q_1";
22867
22995
  const buttons = "_buttons_gbo9q_7";
22868
- const styles$3 = {
22996
+ const styles$4 = {
22869
22997
  controls,
22870
22998
  buttons
22871
22999
  };
@@ -24324,10 +24452,10 @@ const Controls = ({
24324
24452
  generatedDatasets
24325
24453
  });
24326
24454
  return /* @__PURE__ */ jsxs(Fragment, { children: [
24327
- /* @__PURE__ */ jsxs("div", { className: styles$3.controls, children: [
24455
+ /* @__PURE__ */ jsxs("div", { className: styles$4.controls, children: [
24328
24456
  !!options.title && /* @__PURE__ */ jsx(Text, { bold: true, children: options.title }),
24329
24457
  headerComponent,
24330
- /* @__PURE__ */ jsx(ControlsPortal, { controlsPortalId: controlsPortalId ?? "", children: /* @__PURE__ */ jsxs("div", { className: styles$3.buttons, children: [
24458
+ /* @__PURE__ */ jsx(ControlsPortal, { controlsPortalId: controlsPortalId ?? "", children: /* @__PURE__ */ jsxs("div", { className: styles$4.buttons, children: [
24331
24459
  !showTable && /* @__PURE__ */ jsxs(Fragment, { children: [
24332
24460
  /* @__PURE__ */ jsx(
24333
24461
  AxesOptions,
@@ -24429,11 +24557,11 @@ const defaultAxis = (position) => ({
24429
24557
  }
24430
24558
  }
24431
24559
  });
24432
- const defaultAxes$1 = (axes) => ({
24560
+ const defaultAxes$2 = (axes) => ({
24433
24561
  x: (axes == null ? void 0 : axes.x) || [defaultAxis("bottom")],
24434
24562
  y: (axes == null ? void 0 : axes.y) || [defaultAxis("left")]
24435
24563
  });
24436
- const defaultAdditionalAxesOptions$1 = (options) => ({
24564
+ const defaultAdditionalAxesOptions$2 = (options) => ({
24437
24565
  chartScaleType: (options == null ? void 0 : options.chartScaleType) || "linear",
24438
24566
  reverse: (options == null ? void 0 : options.reverse) || false,
24439
24567
  beginAtZero: (options == null ? void 0 : options.beginAtZero) ?? false,
@@ -24443,7 +24571,7 @@ const defaultAdditionalAxesOptions$1 = (options) => ({
24443
24571
  range: options == null ? void 0 : options.range,
24444
24572
  autoAxisPadding: (options == null ? void 0 : options.autoAxisPadding) ?? false
24445
24573
  });
24446
- const defaultChartStyling$2 = (options) => ({
24574
+ const defaultChartStyling$3 = (options) => ({
24447
24575
  width: options == null ? void 0 : options.width,
24448
24576
  height: options == null ? void 0 : options.height,
24449
24577
  maintainAspectRatio: (options == null ? void 0 : options.maintainAspectRatio) ?? false,
@@ -24457,22 +24585,22 @@ const defaultChartStyling$2 = (options) => ({
24457
24585
  right: 0
24458
24586
  }
24459
24587
  });
24460
- const defaultTooltip$2 = (tooltip) => ({
24588
+ const defaultTooltip$3 = (tooltip) => ({
24461
24589
  tooltips: (tooltip == null ? void 0 : tooltip.tooltips) ?? true,
24462
24590
  showLabelsInTooltips: (tooltip == null ? void 0 : tooltip.showLabelsInTooltips) ?? false,
24463
24591
  hideSimulationName: (tooltip == null ? void 0 : tooltip.hideSimulationName) ?? false,
24464
24592
  scientificNotation: (tooltip == null ? void 0 : tooltip.scientificNotation) ?? true
24465
24593
  });
24466
- const defaultGraph$2 = (graph) => ({
24594
+ const defaultGraph$3 = (graph) => ({
24467
24595
  lineTension: (graph == null ? void 0 : graph.lineTension) ?? 0.01,
24468
24596
  spanGaps: (graph == null ? void 0 : graph.spanGaps) ?? false,
24469
24597
  showDataLabels: (graph == null ? void 0 : graph.showDataLabels) ?? false,
24470
24598
  showMinorGridlines: (graph == null ? void 0 : graph.showMinorGridlines) ?? false
24471
24599
  });
24472
- const defaultAnnotationsData$1 = (annotationsData) => {
24600
+ const defaultAnnotationsData$2 = (annotationsData) => {
24473
24601
  return annotationsData ? annotationsData.map((ann) => ({ ...ann, display: (ann == null ? void 0 : ann.display) ?? true })) : [];
24474
24602
  };
24475
- const defaultAnnotations$1 = (annotations) => {
24603
+ const defaultAnnotations$2 = (annotations) => {
24476
24604
  var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
24477
24605
  return {
24478
24606
  labelAnnotation: {
@@ -24487,10 +24615,10 @@ const defaultAnnotations$1 = (annotations) => {
24487
24615
  },
24488
24616
  showAnnotations: (annotations == null ? void 0 : annotations.showAnnotations) ?? false,
24489
24617
  controlAnnotation: (annotations == null ? void 0 : annotations.controlAnnotation) ?? false,
24490
- annotationsData: defaultAnnotationsData$1(annotations == null ? void 0 : annotations.annotationsData)
24618
+ annotationsData: defaultAnnotationsData$2(annotations == null ? void 0 : annotations.annotationsData)
24491
24619
  };
24492
24620
  };
24493
- const defaultLegend$2 = (legend2) => ({
24621
+ const defaultLegend$3 = (legend2) => ({
24494
24622
  display: (legend2 == null ? void 0 : legend2.display) ?? true,
24495
24623
  position: (legend2 == null ? void 0 : legend2.position) ?? Position.BottomLeft,
24496
24624
  align: (legend2 == null ? void 0 : legend2.align) ?? AlignOptions.Center,
@@ -24500,14 +24628,14 @@ const defaultLegend$2 = (legend2) => ({
24500
24628
  },
24501
24629
  usePointStyle: (legend2 == null ? void 0 : legend2.usePointStyle) ?? true
24502
24630
  });
24503
- const defaultChartOptions$2 = (options) => ({
24631
+ const defaultChartOptions$3 = (options) => ({
24504
24632
  showPoints: (options == null ? void 0 : options.showPoints) ?? true,
24505
24633
  enableZoom: (options == null ? void 0 : options.enableZoom) ?? true,
24506
24634
  enablePan: (options == null ? void 0 : options.enablePan) ?? false,
24507
24635
  showLine: (options == null ? void 0 : options.showLine) ?? true,
24508
24636
  closeOnOutsideClick: (options == null ? void 0 : options.closeOnOutsideClick) ?? false
24509
24637
  });
24510
- const defaultInteractions$2 = (interactions) => ({
24638
+ const defaultInteractions$3 = (interactions) => ({
24511
24639
  onLegendClick: interactions == null ? void 0 : interactions.onLegendClick,
24512
24640
  onHover: interactions == null ? void 0 : interactions.onHover,
24513
24641
  onUnhover: interactions == null ? void 0 : interactions.onUnhover,
@@ -24523,7 +24651,7 @@ const defaultDragData$1 = (dragData) => ({
24523
24651
  onDrag: dragData == null ? void 0 : dragData.onDrag,
24524
24652
  onDragEnd: dragData == null ? void 0 : dragData.onDragEnd
24525
24653
  });
24526
- const getDefaultProps$2 = (props) => {
24654
+ const getDefaultProps$3 = (props) => {
24527
24655
  const chart2 = (props == null ? void 0 : props.chart) || {};
24528
24656
  const options = (chart2 == null ? void 0 : chart2.options) || {};
24529
24657
  return {
@@ -24534,17 +24662,17 @@ const getDefaultProps$2 = (props) => {
24534
24662
  options: {
24535
24663
  title: (options == null ? void 0 : options.title) ?? "",
24536
24664
  scales: (options == null ? void 0 : options.scales) ?? {},
24537
- axes: defaultAxes$1(options == null ? void 0 : options.axes),
24538
- additionalAxesOptions: defaultAdditionalAxesOptions$1(
24665
+ axes: defaultAxes$2(options == null ? void 0 : options.axes),
24666
+ additionalAxesOptions: defaultAdditionalAxesOptions$2(
24539
24667
  options == null ? void 0 : options.additionalAxesOptions
24540
24668
  ),
24541
- chartStyling: defaultChartStyling$2(options == null ? void 0 : options.chartStyling),
24542
- tooltip: defaultTooltip$2(options == null ? void 0 : options.tooltip),
24543
- graph: defaultGraph$2(options == null ? void 0 : options.graph),
24544
- annotations: defaultAnnotations$1(options == null ? void 0 : options.annotations),
24545
- legend: defaultLegend$2(options == null ? void 0 : options.legend),
24546
- chartOptions: defaultChartOptions$2(options == null ? void 0 : options.chartOptions),
24547
- interactions: defaultInteractions$2(options == null ? void 0 : options.interactions),
24669
+ chartStyling: defaultChartStyling$3(options == null ? void 0 : options.chartStyling),
24670
+ tooltip: defaultTooltip$3(options == null ? void 0 : options.tooltip),
24671
+ graph: defaultGraph$3(options == null ? void 0 : options.graph),
24672
+ annotations: defaultAnnotations$2(options == null ? void 0 : options.annotations),
24673
+ legend: defaultLegend$3(options == null ? void 0 : options.legend),
24674
+ chartOptions: defaultChartOptions$3(options == null ? void 0 : options.chartOptions),
24675
+ interactions: defaultInteractions$3(options == null ? void 0 : options.interactions),
24548
24676
  dragData: defaultDragData$1(options == null ? void 0 : options.dragData),
24549
24677
  depthType: (options == null ? void 0 : options.depthType) ?? {}
24550
24678
  }
@@ -24987,7 +25115,7 @@ const getUnitsFromLabel = (label) => {
24987
25115
  const units = matches && (matches == null ? void 0 : matches.length) > 0 ? matches == null ? void 0 : matches[0] : "";
24988
25116
  return units;
24989
25117
  };
24990
- const customFormatNumber = (labelNumber, scientificNotation) => {
25118
+ const customFormatNumber$1 = (labelNumber, scientificNotation) => {
24991
25119
  let roundOptions = {};
24992
25120
  if (!scientificNotation) {
24993
25121
  roundOptions = { scientific: false };
@@ -25023,21 +25151,21 @@ const getLineChartToolTips = (options) => {
25023
25151
  };
25024
25152
  }
25025
25153
  };
25026
- const titleCallback = (tooltipItem) => {
25154
+ const titleCallback2 = (tooltipItem) => {
25027
25155
  const labels = getTooltipLabels(tooltipItem[0].dataset);
25028
25156
  const { titleLabel, titleAxisLabel } = labels ?? {};
25029
25157
  const formattedValue = titleLabel === TooltipLabel.Y ? tooltipItem[0].parsed.y : tooltipItem[0].parsed.x;
25030
- const roundedValue = customFormatNumber(formattedValue, scientificNotation);
25158
+ const roundedValue = customFormatNumber$1(formattedValue, scientificNotation);
25031
25159
  return `${roundedValue} ${titleAxisLabel}`;
25032
25160
  };
25033
- const labelCallback = (tooltipItem) => {
25161
+ const labelCallback2 = (tooltipItem) => {
25034
25162
  const { showLabelsInTooltips } = options.tooltip;
25035
25163
  let label = tooltipItem.dataset.label || "";
25036
25164
  const labels = getTooltipLabels(tooltipItem.dataset);
25037
25165
  const { valueLabel = "", valueAxisLabel = "" } = labels ?? {};
25038
25166
  const getTooltipItemValue = () => {
25039
25167
  const labelNumber = valueLabel === TooltipLabel.X ? tooltipItem.parsed.x : tooltipItem.parsed.y;
25040
- return customFormatNumber(labelNumber, scientificNotation);
25168
+ return customFormatNumber$1(labelNumber, scientificNotation);
25041
25169
  };
25042
25170
  const tooltipItemValue = getTooltipItemValue();
25043
25171
  const units = getUnitsFromLabel(valueAxisLabel);
@@ -25054,8 +25182,8 @@ const getLineChartToolTips = (options) => {
25054
25182
  boxHeight: LEGEND_LABEL_BOX_SIZE,
25055
25183
  boxPadding: TOOLTIP_BOX_PADDING,
25056
25184
  callbacks: {
25057
- title: titleCallback,
25058
- label: labelCallback,
25185
+ title: titleCallback2,
25186
+ label: labelCallback2,
25059
25187
  afterLabel: afterLabelCallback
25060
25188
  }
25061
25189
  };
@@ -25868,7 +25996,7 @@ const bottom = "_bottom_wpro0_161";
25868
25996
  const dropzonePlaceholder = "_dropzonePlaceholder_wpro0_165";
25869
25997
  const isActive = "_isActive_wpro0_173";
25870
25998
  const resizeContainer = "_resizeContainer_wpro0_176";
25871
- const styles$2 = {
25999
+ const styles$3 = {
25872
26000
  legend,
25873
26001
  isDragging,
25874
26002
  legendItems,
@@ -25895,8 +26023,14 @@ var ChartType = /* @__PURE__ */ ((ChartType2) => {
25895
26023
  ChartType2["LINE"] = "line";
25896
26024
  ChartType2["BAR"] = "bar";
25897
26025
  ChartType2["PIE"] = "pie";
26026
+ ChartType2["SCATTER"] = "scatter";
25898
26027
  return ChartType2;
25899
26028
  })(ChartType || {});
26029
+ var ChartDirection = /* @__PURE__ */ ((ChartDirection2) => {
26030
+ ChartDirection2["VERTICAL"] = "vertical";
26031
+ ChartDirection2["HORIZONTAL"] = "horizontal";
26032
+ return ChartDirection2;
26033
+ })(ChartDirection || {});
25900
26034
  const circleSvg = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTIiIGZpbGw9ImN1cnJlbnRDb2xvciIgLz48L3N2Zz4=";
25901
26035
  const rectSvg = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHJlY3QgeD0iMiIgeT0iMiIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiBmaWxsPSJjdXJyZW50Q29sb3IiIC8+PC9zdmc+";
25902
26036
  const rectRotSvg = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHJlY3QgeD0iMyIgeT0iMyIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiBmaWxsPSJjdXJyZW50Q29sb3IiIHRyYW5zZm9ybT0ncm90YXRlKDQ1IDEyIDEyKScgLz48L3N2Zz4=";
@@ -25907,7 +26041,7 @@ const LineItem = ({ dataset }) => {
25907
26041
  const { borderColor, borderDash, borderWidth } = dataset;
25908
26042
  const offset = borderDash.length ? (LEGEND_SYMBOL_SIZE$1 - borderDash[0]) / 2 % (borderDash[0] + borderDash[1]) * -1 : 0;
25909
26043
  const borderDashString = ((_a2 = dataset.borderDash) == null ? void 0 : _a2.join(" ")) || "";
25910
- return /* @__PURE__ */ jsx("span", { className: styles$2.legendItemLine, children: /* @__PURE__ */ jsx(
26044
+ return /* @__PURE__ */ jsx("span", { className: styles$3.legendItemLine, children: /* @__PURE__ */ jsx(
25911
26045
  "svg",
25912
26046
  {
25913
26047
  xmlns: "http://www.w3.org/2000/svg",
@@ -25939,7 +26073,7 @@ const PointItem = ({ dataset }) => {
25939
26073
  rectRot: rectRotSvg,
25940
26074
  rect: rectSvg
25941
26075
  };
25942
- return /* @__PURE__ */ jsx("span", { className: styles$2.legendItemPoint, children: /* @__PURE__ */ jsx(
26076
+ return /* @__PURE__ */ jsx("span", { className: styles$3.legendItemPoint, children: /* @__PURE__ */ jsx(
25943
26077
  Icon,
25944
26078
  {
25945
26079
  icon: icons[pointStyle] || circleSvg,
@@ -25951,7 +26085,7 @@ const PointItem = ({ dataset }) => {
25951
26085
  const BoxItem = ({ dataset }) => {
25952
26086
  const { backgroundColor } = dataset;
25953
26087
  const style = { backgroundColor };
25954
- return /* @__PURE__ */ jsx("span", { className: styles$2.legendItemBox, style });
26088
+ return /* @__PURE__ */ jsx("span", { className: styles$3.legendItemBox, style });
25955
26089
  };
25956
26090
  const LegendItemLine = ({ dataset }) => {
25957
26091
  const { annotationType, showLine } = dataset;
@@ -25974,9 +26108,11 @@ const renderLegendItemSymbol = (dataset, chartType) => {
25974
26108
  case ChartType.LINE:
25975
26109
  return /* @__PURE__ */ jsx(LegendItemLine, { dataset });
25976
26110
  case ChartType.BAR:
25977
- return /* @__PURE__ */ jsx("span", { className: styles$2.legendItemBox, children: /* @__PURE__ */ jsx(TbSquareFilled, { color: dataset.borderColor }) });
26111
+ return /* @__PURE__ */ jsx("span", { className: styles$3.legendItemBox, children: /* @__PURE__ */ jsx(TbSquareFilled, { color: dataset.borderColor }) });
25978
26112
  case ChartType.PIE:
25979
- return /* @__PURE__ */ jsx("span", { className: styles$2.legendItemPoint, children: /* @__PURE__ */ jsx(Icon, { icon: circleSvg }) });
26113
+ return /* @__PURE__ */ jsx("span", { className: styles$3.legendItemPoint, children: /* @__PURE__ */ jsx(Icon, { icon: circleSvg }) });
26114
+ case ChartType.SCATTER:
26115
+ return /* @__PURE__ */ jsx("span", { className: styles$3.legendItemPoint, children: /* @__PURE__ */ jsx(TbCircleFilled, { color: dataset.borderColor }) });
25980
26116
  default:
25981
26117
  return null;
25982
26118
  }
@@ -25990,18 +26126,18 @@ const LegendItem = ({
25990
26126
  return /* @__PURE__ */ jsxs(
25991
26127
  "div",
25992
26128
  {
25993
- className: cx(styles$2.legendItem, hidden && styles$2.isHidden),
26129
+ className: cx(styles$3.legendItem, hidden && styles$3.isHidden),
25994
26130
  onClick: handleClick,
25995
26131
  children: [
25996
26132
  /* @__PURE__ */ jsx(
25997
26133
  "span",
25998
26134
  {
25999
- className: styles$2.legendItemSymbol,
26135
+ className: styles$3.legendItemSymbol,
26000
26136
  style: { width: LEGEND_SYMBOL_SIZE },
26001
26137
  children: renderLegendItemSymbol(dataset, chartType)
26002
26138
  }
26003
26139
  ),
26004
- /* @__PURE__ */ jsx("span", { className: styles$2.legendItemText, children: dataset.label })
26140
+ /* @__PURE__ */ jsx("span", { className: styles$3.legendItemText, children: dataset.label })
26005
26141
  ]
26006
26142
  }
26007
26143
  );
@@ -26068,7 +26204,7 @@ const LegendItems = ({
26068
26204
  datasets,
26069
26205
  legendClick,
26070
26206
  chartType
26071
- }) => /* @__PURE__ */ jsx("div", { className: styles$2.legendItems, children: items.map((item) => {
26207
+ }) => /* @__PURE__ */ jsx("div", { className: styles$3.legendItems, children: items.map((item) => {
26072
26208
  if (datasets[item.datasetIndex].hideLegend) {
26073
26209
  return null;
26074
26210
  }
@@ -26101,13 +26237,13 @@ const LegendPanel = forwardRef(
26101
26237
  {
26102
26238
  ref,
26103
26239
  className: cx(
26104
- styles$2.legend,
26105
- !legendEnabled && styles$2.isHidden,
26106
- isDragging2 && styles$2.isDragging
26240
+ styles$3.legend,
26241
+ !legendEnabled && styles$3.isHidden,
26242
+ isDragging2 && styles$3.isDragging
26107
26243
  ),
26108
26244
  style,
26109
26245
  children: [
26110
- /* @__PURE__ */ jsx("div", { className: styles$2.legendToggle, children: /* @__PURE__ */ jsx(
26246
+ /* @__PURE__ */ jsx("div", { className: styles$3.legendToggle, children: /* @__PURE__ */ jsx(
26111
26247
  Button,
26112
26248
  {
26113
26249
  onClick: () => setLegendEnabled(!legendEnabled),
@@ -26146,17 +26282,17 @@ const LegendDropZone = (legendDropZoneProps) => {
26146
26282
  {
26147
26283
  ref: dropRef,
26148
26284
  className: cx(
26149
- styles$2.dropzone,
26150
- isActive2 && styles$2.isActive,
26151
- position.includes("left") && styles$2.left,
26152
- position.includes("right") && styles$2.right,
26153
- position.includes("top") && styles$2.top,
26154
- position.includes("bottom") && styles$2.bottom
26285
+ styles$3.dropzone,
26286
+ isActive2 && styles$3.isActive,
26287
+ position.includes("left") && styles$3.left,
26288
+ position.includes("right") && styles$3.right,
26289
+ position.includes("top") && styles$3.top,
26290
+ position.includes("bottom") && styles$3.bottom
26155
26291
  ),
26156
26292
  children: /* @__PURE__ */ jsx(
26157
26293
  "div",
26158
26294
  {
26159
- className: styles$2.dropzonePlaceholder,
26295
+ className: styles$3.dropzonePlaceholder,
26160
26296
  style: { ...placeholderSize, margin: LEGEND_MARGIN }
26161
26297
  }
26162
26298
  )
@@ -26175,7 +26311,7 @@ const LegendDropZones = (legendDropZonesProps) => {
26175
26311
  return /* @__PURE__ */ jsx(
26176
26312
  "div",
26177
26313
  {
26178
- className: styles$2.dropzoneContainer,
26314
+ className: styles$3.dropzoneContainer,
26179
26315
  style: {
26180
26316
  top: top2,
26181
26317
  left: left2,
@@ -26217,7 +26353,7 @@ const Legend2 = ({ chartRef, legendConfig }) => {
26217
26353
  })
26218
26354
  }));
26219
26355
  return /* @__PURE__ */ jsxs(Fragment, { children: [
26220
- /* @__PURE__ */ jsx("div", { ref: resizeRef, className: styles$2.resizeContainer }),
26356
+ /* @__PURE__ */ jsx("div", { ref: resizeRef, className: styles$3.resizeContainer }),
26221
26357
  /* @__PURE__ */ jsx(
26222
26358
  LegendPanel,
26223
26359
  {
@@ -26263,7 +26399,7 @@ const LineChart = (props) => {
26263
26399
  const chartRef = useRef(null);
26264
26400
  const { table: table2 } = props;
26265
26401
  const { translations, languageKey } = getConfig();
26266
- const chart2 = getDefaultProps$2(props);
26402
+ const chart2 = getDefaultProps$3(props);
26267
26403
  const {
26268
26404
  data: { datasets } = { datasets: [] },
26269
26405
  options,
@@ -26310,7 +26446,7 @@ const LineChart = (props) => {
26310
26446
  return /* @__PURE__ */ jsxs(
26311
26447
  "div",
26312
26448
  {
26313
- className: getClassName(chartStyling, styles$4),
26449
+ className: getClassName(chartStyling, styles$5),
26314
26450
  style: {
26315
26451
  width: chartStyling.width || AUTO,
26316
26452
  height: chartStyling.height || AUTO
@@ -26333,7 +26469,7 @@ const LineChart = (props) => {
26333
26469
  controlsPortalId
26334
26470
  }
26335
26471
  ),
26336
- table2 && state.showTable ? /* @__PURE__ */ jsx("div", { className: styles$4.table, children: table2 }) : /* @__PURE__ */ jsx(DndProvider, { backend: HTML5Backend, context: window, children: /* @__PURE__ */ jsxs("div", { className: styles$4.canvas, id: "canvas", children: [
26472
+ table2 && state.showTable ? /* @__PURE__ */ jsx("div", { className: styles$5.table, children: table2 }) : /* @__PURE__ */ jsx(DndProvider, { backend: HTML5Backend, context: window, children: /* @__PURE__ */ jsxs("div", { className: styles$5.canvas, id: "canvas", children: [
26337
26473
  /* @__PURE__ */ jsx(
26338
26474
  Line,
26339
26475
  {
@@ -26368,7 +26504,7 @@ const LineChart = (props) => {
26368
26504
  );
26369
26505
  };
26370
26506
  const LineChartWithLegend = (props) => {
26371
- const { options } = getDefaultProps$2(props);
26507
+ const { options } = getDefaultProps$3(props);
26372
26508
  return /* @__PURE__ */ jsx(LegendProvider, { options, children: /* @__PURE__ */ jsx(LineChart, { ...props }) });
26373
26509
  };
26374
26510
  const initializeLineChart = ({ languageKey = "en", ...options }) => {
@@ -26382,73 +26518,73 @@ const initializeLineChart = ({ languageKey = "en", ...options }) => {
26382
26518
  }
26383
26519
  });
26384
26520
  };
26385
- const chart$1 = "_chart_1jdnu_1";
26386
- const fixedHeight$1 = "_fixedHeight_1jdnu_13";
26387
- const stretchHeight$1 = "_stretchHeight_1jdnu_19";
26388
- const zoomForm$1 = "_zoomForm_1jdnu_32";
26389
- const zoomReset$1 = "_zoomReset_1jdnu_40";
26390
- const help$1 = "_help_1jdnu_43";
26391
- const autoWeight$1 = "_autoWeight_1jdnu_47";
26392
- const styles$1 = {
26393
- chart: chart$1,
26394
- fixedHeight: fixedHeight$1,
26395
- stretchHeight: stretchHeight$1,
26396
- zoomForm: zoomForm$1,
26397
- zoomReset: zoomReset$1,
26398
- help: help$1,
26399
- autoWeight: autoWeight$1
26521
+ const chart$2 = "_chart_1jdnu_1";
26522
+ const fixedHeight$2 = "_fixedHeight_1jdnu_13";
26523
+ const stretchHeight$2 = "_stretchHeight_1jdnu_19";
26524
+ const zoomForm$2 = "_zoomForm_1jdnu_32";
26525
+ const zoomReset$2 = "_zoomReset_1jdnu_40";
26526
+ const help$2 = "_help_1jdnu_43";
26527
+ const autoWeight$2 = "_autoWeight_1jdnu_47";
26528
+ const styles$2 = {
26529
+ chart: chart$2,
26530
+ fixedHeight: fixedHeight$2,
26531
+ stretchHeight: stretchHeight$2,
26532
+ zoomForm: zoomForm$2,
26533
+ zoomReset: zoomReset$2,
26534
+ help: help$2,
26535
+ autoWeight: autoWeight$2
26400
26536
  };
26401
- const defaultChartStyling$1 = (styling) => ({
26537
+ const defaultChartStyling$2 = (styling) => ({
26402
26538
  width: styling == null ? void 0 : styling.width,
26403
26539
  height: styling == null ? void 0 : styling.height,
26404
26540
  maintainAspectRatio: (styling == null ? void 0 : styling.maintainAspectRatio) || false,
26405
26541
  staticChartHeight: (styling == null ? void 0 : styling.staticChartHeight) || false,
26406
26542
  performanceMode: (styling == null ? void 0 : styling.performanceMode) ?? true
26407
26543
  });
26408
- const defaultTooltip$1 = (tooltip) => ({
26544
+ const defaultTooltip$2 = (tooltip) => ({
26409
26545
  tooltips: (tooltip == null ? void 0 : tooltip.tooltips) ?? true,
26410
26546
  showLabelsInTooltips: (tooltip == null ? void 0 : tooltip.showLabelsInTooltips) || false
26411
26547
  });
26412
- const defaultGraph$1 = (graph) => ({
26548
+ const defaultGraph$2 = (graph) => ({
26413
26549
  showDataLabels: (graph == null ? void 0 : graph.showDataLabels) || false,
26414
26550
  stacked: (graph == null ? void 0 : graph.stacked) || false,
26415
26551
  cutout: (graph == null ? void 0 : graph.cutout) || 0
26416
26552
  });
26417
- const defaultLegend$1 = (legend2) => ({
26553
+ const defaultLegend$2 = (legend2) => ({
26418
26554
  display: (legend2 == null ? void 0 : legend2.display) ?? true,
26419
26555
  useDataset: (legend2 == null ? void 0 : legend2.useDataset) || false,
26420
26556
  position: (legend2 == null ? void 0 : legend2.position) || Position.Bottom,
26421
26557
  align: (legend2 == null ? void 0 : legend2.align) || AlignOptions.Center
26422
26558
  });
26423
- const defaultChartOptions$1 = (options) => ({
26559
+ const defaultChartOptions$2 = (options) => ({
26424
26560
  enableZoom: (options == null ? void 0 : options.enableZoom) || false,
26425
26561
  enablePan: (options == null ? void 0 : options.enablePan) || false
26426
26562
  });
26427
- const defaultInteractions$1 = (interactions) => ({
26563
+ const defaultInteractions$2 = (interactions) => ({
26428
26564
  onLegendClick: interactions == null ? void 0 : interactions.onLegendClick,
26429
26565
  onHover: interactions == null ? void 0 : interactions.onHover,
26430
26566
  onUnhover: interactions == null ? void 0 : interactions.onUnhover
26431
26567
  });
26432
- const defaultChartData = (data) => {
26568
+ const defaultChartData$1 = (data) => {
26433
26569
  return {
26434
26570
  labels: (data == null ? void 0 : data.labels) || [],
26435
26571
  datasets: (data == null ? void 0 : data.datasets) || []
26436
26572
  };
26437
26573
  };
26438
- const getDefaultProps$1 = (props) => {
26574
+ const getDefaultProps$2 = (props) => {
26439
26575
  const chart2 = (props == null ? void 0 : props.chart) || {};
26440
26576
  const options = (chart2 == null ? void 0 : chart2.options) || {};
26441
26577
  return {
26442
26578
  testId: (chart2 == null ? void 0 : chart2.testId) ?? null,
26443
- data: defaultChartData(chart2 == null ? void 0 : chart2.data),
26579
+ data: defaultChartData$1(chart2 == null ? void 0 : chart2.data),
26444
26580
  options: {
26445
26581
  title: (options == null ? void 0 : options.title) || "",
26446
- chartStyling: defaultChartStyling$1(options == null ? void 0 : options.chartStyling),
26447
- tooltip: defaultTooltip$1(options == null ? void 0 : options.tooltip),
26448
- graph: defaultGraph$1(options == null ? void 0 : options.graph),
26449
- legend: defaultLegend$1(options == null ? void 0 : options.legend),
26450
- chartOptions: defaultChartOptions$1(options == null ? void 0 : options.chartOptions),
26451
- interactions: defaultInteractions$1(options == null ? void 0 : options.interactions)
26582
+ chartStyling: defaultChartStyling$2(options == null ? void 0 : options.chartStyling),
26583
+ tooltip: defaultTooltip$2(options == null ? void 0 : options.tooltip),
26584
+ graph: defaultGraph$2(options == null ? void 0 : options.graph),
26585
+ legend: defaultLegend$2(options == null ? void 0 : options.legend),
26586
+ chartOptions: defaultChartOptions$2(options == null ? void 0 : options.chartOptions),
26587
+ interactions: defaultInteractions$2(options == null ? void 0 : options.interactions)
26452
26588
  }
26453
26589
  };
26454
26590
  };
@@ -26462,7 +26598,7 @@ const usePieChartConfig = (chart2) => {
26462
26598
  const generatedDataset = {
26463
26599
  label: ((_a2 = copyDataset == null ? void 0 : copyDataset[0]) == null ? void 0 : _a2.label) ?? "",
26464
26600
  backgroundColor: [],
26465
- borderColor: [],
26601
+ borderColor: "",
26466
26602
  borderWidth: Number(copyDataset[0].borderWidth) || 1,
26467
26603
  data: [],
26468
26604
  borderDash: []
@@ -26475,20 +26611,18 @@ const usePieChartConfig = (chart2) => {
26475
26611
  generatedDataset.backgroundColor.push(
26476
26612
  (Array.isArray(backgroundColor) ? backgroundColor[labelIndex % ((borderColor == null ? void 0 : borderColor.length) || 1)] : backgroundColor) || COLORS[labelIndex] + `${99 - 10 * arcIndex}`
26477
26613
  );
26478
- generatedDataset.borderColor.push(
26479
- (Array.isArray(borderColor) ? borderColor[labelIndex % borderColor.length] : borderColor) || COLORS[labelIndex]
26480
- );
26614
+ generatedDataset.borderColor = borderColor ?? "";
26481
26615
  });
26482
26616
  });
26483
26617
  return [generatedDataset];
26484
26618
  }
26485
26619
  const generatedDatasets2 = copyDataset.map(
26486
26620
  (pieDataset, index2) => {
26487
- const { borderWidth: inputBorderWidth = "1", data: data2 = [] } = pieDataset ?? {};
26621
+ const { borderWidth: inputBorderWidth = "1" } = pieDataset ?? {};
26488
26622
  const borderWidth = parseFloat(String(inputBorderWidth)) || 1;
26489
- const color2 = data2.map((_2, i2) => COLORS[i2]) || generateRandomColor(COLORS);
26623
+ const color2 = COLORS[index2];
26490
26624
  const borderColor = pieDataset.borderColor || color2;
26491
- const backgroundColor = pieDataset.backgroundColor || color2.map((col) => col + `${99 - 11 * index2}`);
26625
+ const backgroundColor = pieDataset.backgroundColor || generateRandomColor(COLORS);
26492
26626
  return {
26493
26627
  ...pieDataset,
26494
26628
  borderWidth,
@@ -26638,7 +26772,7 @@ Chart$2.register(
26638
26772
  );
26639
26773
  const PieChart = (props) => {
26640
26774
  setDefaultTheme();
26641
- const chart2 = getDefaultProps$1(props);
26775
+ const chart2 = getDefaultProps$2(props);
26642
26776
  const chartRef = useRef(null);
26643
26777
  const { data, options, testId } = chart2;
26644
26778
  const {
@@ -26654,8 +26788,8 @@ const PieChart = (props) => {
26654
26788
  "div",
26655
26789
  {
26656
26790
  className: cx(
26657
- styles$1.chart,
26658
- !options.chartStyling.width || !options.chartStyling.height ? options.chartStyling.staticChartHeight ? styles$1.fixedHeight : styles$1.stretchHeight : ""
26791
+ styles$2.chart,
26792
+ !options.chartStyling.width || !options.chartStyling.height ? options.chartStyling.staticChartHeight ? styles$2.fixedHeight : styles$2.stretchHeight : ""
26659
26793
  ),
26660
26794
  style: {
26661
26795
  width: options.chartStyling.width || "auto",
@@ -26699,7 +26833,7 @@ const PieChart = (props) => {
26699
26833
  );
26700
26834
  };
26701
26835
  const PieChartWithLegend = (props) => {
26702
- const { options } = getDefaultProps$1(props);
26836
+ const { options } = getDefaultProps$2(props);
26703
26837
  return /* @__PURE__ */ jsx(LegendProvider, { options, children: /* @__PURE__ */ jsx(PieChart, { ...props }) });
26704
26838
  };
26705
26839
  /*!
@@ -39288,7 +39422,7 @@ const getBarChartToolTips = (options) => {
39288
39422
  valueUnit: (yAxis == null ? void 0 : yAxis.unit) || ""
39289
39423
  };
39290
39424
  };
39291
- const titleCallback = (tooltipItems, _data) => {
39425
+ const titleCallback2 = (tooltipItems, _data) => {
39292
39426
  var _a3, _b2;
39293
39427
  const barLabel = ((_a3 = tooltipItems == null ? void 0 : tooltipItems[0]) == null ? void 0 : _a3.label) || "";
39294
39428
  const labels = getTooltipLabels((_b2 = tooltipItems == null ? void 0 : tooltipItems[0]) == null ? void 0 : _b2.dataset);
@@ -39303,7 +39437,7 @@ const getBarChartToolTips = (options) => {
39303
39437
  }
39304
39438
  return displayNumber(roundByMagnitude(labelNumber), roundOptions);
39305
39439
  };
39306
- const labelCallback = (tooltipItem) => {
39440
+ const labelCallback2 = (tooltipItem) => {
39307
39441
  var _a3;
39308
39442
  const { showLabelsInTooltips = false } = (options == null ? void 0 : options.tooltip) || {};
39309
39443
  let label = ((_a3 = tooltipItem.dataset) == null ? void 0 : _a3.label) || "";
@@ -39345,8 +39479,8 @@ const getBarChartToolTips = (options) => {
39345
39479
  boxHeight: LEGEND_LABEL_BOX_SIZE,
39346
39480
  boxPadding: TOOLTIP_BOX_PADDING,
39347
39481
  callbacks: {
39348
- title: titleCallback,
39349
- label: labelCallback,
39482
+ title: titleCallback2,
39483
+ label: labelCallback2,
39350
39484
  afterLabel: afterLabelCallback
39351
39485
  }
39352
39486
  };
@@ -39389,31 +39523,31 @@ const useBarChartOptions = ({
39389
39523
  }
39390
39524
  };
39391
39525
  };
39392
- const chart = "_chart_x1sru_1";
39526
+ const chart$1 = "_chart_x1sru_1";
39393
39527
  const canvas = "_canvas_x1sru_10";
39394
- const fixedHeight = "_fixedHeight_x1sru_19";
39395
- const stretchHeight = "_stretchHeight_x1sru_25";
39396
- const zoomForm = "_zoomForm_x1sru_38";
39397
- const zoomReset = "_zoomReset_x1sru_46";
39398
- const help = "_help_x1sru_49";
39399
- const autoWeight = "_autoWeight_x1sru_53";
39528
+ const fixedHeight$1 = "_fixedHeight_x1sru_19";
39529
+ const stretchHeight$1 = "_stretchHeight_x1sru_25";
39530
+ const zoomForm$1 = "_zoomForm_x1sru_38";
39531
+ const zoomReset$1 = "_zoomReset_x1sru_46";
39532
+ const help$1 = "_help_x1sru_49";
39533
+ const autoWeight$1 = "_autoWeight_x1sru_53";
39400
39534
  const actions = "_actions_x1sru_57";
39401
- const styles = {
39402
- chart,
39535
+ const styles$1 = {
39536
+ chart: chart$1,
39403
39537
  canvas,
39404
- fixedHeight,
39405
- stretchHeight,
39406
- zoomForm,
39407
- zoomReset,
39408
- help,
39409
- autoWeight,
39538
+ fixedHeight: fixedHeight$1,
39539
+ stretchHeight: stretchHeight$1,
39540
+ zoomForm: zoomForm$1,
39541
+ zoomReset: zoomReset$1,
39542
+ help: help$1,
39543
+ autoWeight: autoWeight$1,
39410
39544
  actions
39411
39545
  };
39412
- const defaultAxes = (axes) => ({
39546
+ const defaultAxes$1 = (axes) => ({
39413
39547
  x: (axes == null ? void 0 : axes.x) || [{}],
39414
39548
  y: (axes == null ? void 0 : axes.y) || [{}]
39415
39549
  });
39416
- const defaultAdditionalAxesOptions = (options) => ({
39550
+ const defaultAdditionalAxesOptions$1 = (options) => ({
39417
39551
  chartScaleType: (options == null ? void 0 : options.chartScaleType) || "linear",
39418
39552
  reverse: (options == null ? void 0 : options.reverse) || false,
39419
39553
  stacked: (options == null ? void 0 : options.stacked) || false,
@@ -39424,30 +39558,30 @@ const defaultAdditionalAxesOptions = (options) => ({
39424
39558
  min: options == null ? void 0 : options.min,
39425
39559
  max: options == null ? void 0 : options.max
39426
39560
  });
39427
- const defaultChartStyling = (styling) => ({
39561
+ const defaultChartStyling$1 = (styling) => ({
39428
39562
  width: styling == null ? void 0 : styling.width,
39429
39563
  height: styling == null ? void 0 : styling.height,
39430
39564
  maintainAspectRatio: (styling == null ? void 0 : styling.maintainAspectRatio) || false,
39431
39565
  staticChartHeight: (styling == null ? void 0 : styling.staticChartHeight) || false,
39432
39566
  performanceMode: (styling == null ? void 0 : styling.performanceMode) ?? true
39433
39567
  });
39434
- const defaultTooltip = (tooltip) => ({
39568
+ const defaultTooltip$1 = (tooltip) => ({
39435
39569
  tooltips: (tooltip == null ? void 0 : tooltip.tooltips) ?? true,
39436
39570
  showLabelsInTooltips: (tooltip == null ? void 0 : tooltip.showLabelsInTooltips) || false
39437
39571
  });
39438
- const defaultGraph = (graph) => ({
39572
+ const defaultGraph$1 = (graph) => ({
39439
39573
  showDataLabels: (graph == null ? void 0 : graph.showDataLabels) || false,
39440
39574
  showMinorGridlines: (graph == null ? void 0 : graph.showMinorGridlines) || false
39441
39575
  });
39442
- const defaultAnnotationsData = (annotationsData) => {
39576
+ const defaultAnnotationsData$1 = (annotationsData) => {
39443
39577
  return annotationsData ? annotationsData.map((ann) => ({ ...ann, display: (ann == null ? void 0 : ann.display) ?? true })) : [];
39444
39578
  };
39445
- const defaultAnnotations = (annotations) => ({
39579
+ const defaultAnnotations$1 = (annotations) => ({
39446
39580
  showAnnotations: (annotations == null ? void 0 : annotations.showAnnotations) ?? true,
39447
39581
  controlAnnotation: (annotations == null ? void 0 : annotations.controlAnnotation) || false,
39448
- annotationsData: defaultAnnotationsData(annotations == null ? void 0 : annotations.annotationsData)
39582
+ annotationsData: defaultAnnotationsData$1(annotations == null ? void 0 : annotations.annotationsData)
39449
39583
  });
39450
- const defaultLegend = (legend2) => ({
39584
+ const defaultLegend$1 = (legend2) => ({
39451
39585
  display: (legend2 == null ? void 0 : legend2.display) ?? true,
39452
39586
  position: (legend2 == null ? void 0 : legend2.position) || Position.TopLeft,
39453
39587
  align: (legend2 == null ? void 0 : legend2.align) || AlignOptions.Center,
@@ -39456,11 +39590,11 @@ const defaultLegend = (legend2) => ({
39456
39590
  customLegendContainerID: ""
39457
39591
  }
39458
39592
  });
39459
- const defaultChartOptions = (options) => ({
39593
+ const defaultChartOptions$1 = (options) => ({
39460
39594
  enableZoom: (options == null ? void 0 : options.enableZoom) || false,
39461
39595
  enablePan: (options == null ? void 0 : options.enablePan) || false
39462
39596
  });
39463
- const defaultInteractions = (interactions) => ({
39597
+ const defaultInteractions$1 = (interactions) => ({
39464
39598
  onLegendClick: interactions == null ? void 0 : interactions.onLegendClick,
39465
39599
  onHover: interactions == null ? void 0 : interactions.onHover,
39466
39600
  onUnhover: interactions == null ? void 0 : interactions.onUnhover
@@ -39475,7 +39609,7 @@ const defaultDragData = (dragData) => ({
39475
39609
  onDrag: dragData == null ? void 0 : dragData.onDrag,
39476
39610
  onDragEnd: dragData == null ? void 0 : dragData.onDragEnd
39477
39611
  });
39478
- const getDefaultProps = (props) => {
39612
+ const getDefaultProps$1 = (props) => {
39479
39613
  const chart2 = (props == null ? void 0 : props.chart) || {};
39480
39614
  const options = (chart2 == null ? void 0 : chart2.options) || {};
39481
39615
  return {
@@ -39484,17 +39618,17 @@ const getDefaultProps = (props) => {
39484
39618
  options: {
39485
39619
  title: (options == null ? void 0 : options.title) || "",
39486
39620
  direction: (options == null ? void 0 : options.direction) || "vertical",
39487
- axes: defaultAxes(options == null ? void 0 : options.axes),
39488
- additionalAxesOptions: defaultAdditionalAxesOptions(
39621
+ axes: defaultAxes$1(options == null ? void 0 : options.axes),
39622
+ additionalAxesOptions: defaultAdditionalAxesOptions$1(
39489
39623
  options == null ? void 0 : options.additionalAxesOptions
39490
39624
  ),
39491
- chartStyling: defaultChartStyling(options == null ? void 0 : options.chartStyling),
39492
- tooltip: defaultTooltip(options == null ? void 0 : options.tooltip),
39493
- graph: defaultGraph(options == null ? void 0 : options.graph),
39494
- annotations: defaultAnnotations(options == null ? void 0 : options.annotations),
39495
- legend: defaultLegend(options == null ? void 0 : options.legend),
39496
- chartOptions: defaultChartOptions(options == null ? void 0 : options.chartOptions),
39497
- interactions: defaultInteractions(options == null ? void 0 : options.interactions),
39625
+ chartStyling: defaultChartStyling$1(options == null ? void 0 : options.chartStyling),
39626
+ tooltip: defaultTooltip$1(options == null ? void 0 : options.tooltip),
39627
+ graph: defaultGraph$1(options == null ? void 0 : options.graph),
39628
+ annotations: defaultAnnotations$1(options == null ? void 0 : options.annotations),
39629
+ legend: defaultLegend$1(options == null ? void 0 : options.legend),
39630
+ chartOptions: defaultChartOptions$1(options == null ? void 0 : options.chartOptions),
39631
+ interactions: defaultInteractions$1(options == null ? void 0 : options.interactions),
39498
39632
  dragData: defaultDragData(options == null ? void 0 : options.dragData)
39499
39633
  }
39500
39634
  };
@@ -39517,7 +39651,7 @@ const BarChart = (props) => {
39517
39651
  var _a2, _b2, _c2, _d2;
39518
39652
  setDefaultTheme();
39519
39653
  const chartRef = useRef(null);
39520
- const chart2 = getDefaultProps(props);
39654
+ const chart2 = getDefaultProps$1(props);
39521
39655
  const { translations, languageKey } = getConfig();
39522
39656
  const { options, testId } = chart2;
39523
39657
  const { chartStyling, graph } = options;
@@ -39527,14 +39661,14 @@ const BarChart = (props) => {
39527
39661
  return /* @__PURE__ */ jsxs(
39528
39662
  "div",
39529
39663
  {
39530
- className: getClassName(chartStyling, styles),
39664
+ className: getClassName(chartStyling, styles$1),
39531
39665
  style: {
39532
39666
  width: chartStyling.width || AUTO,
39533
39667
  height: chartStyling.height || AUTO
39534
39668
  },
39535
39669
  "data-testid": testId,
39536
39670
  children: [
39537
- /* @__PURE__ */ jsx("div", { className: styles.actions, children: /* @__PURE__ */ jsx(Tooltip$2, { text: translations.downloadAsPNG, placement: "bottom-end", children: /* @__PURE__ */ jsx(
39671
+ /* @__PURE__ */ jsx("div", { className: styles$1.actions, children: /* @__PURE__ */ jsx(Tooltip$2, { text: translations.downloadAsPNG, placement: "bottom-end", children: /* @__PURE__ */ jsx(
39538
39672
  Button,
39539
39673
  {
39540
39674
  small: true,
@@ -39545,7 +39679,7 @@ const BarChart = (props) => {
39545
39679
  onClick: () => downloadPgn(chartRef)
39546
39680
  }
39547
39681
  ) }) }),
39548
- /* @__PURE__ */ jsx(DndProvider, { backend: HTML5Backend, context: window, children: /* @__PURE__ */ jsxs("div", { className: styles.canvas, id: "canvas", children: [
39682
+ /* @__PURE__ */ jsx(DndProvider, { backend: HTML5Backend, context: window, children: /* @__PURE__ */ jsxs("div", { className: styles$1.canvas, id: "canvas", children: [
39549
39683
  /* @__PURE__ */ jsx(
39550
39684
  Bar,
39551
39685
  {
@@ -39576,13 +39710,342 @@ const BarChart = (props) => {
39576
39710
  );
39577
39711
  };
39578
39712
  const BarChartWithLegend = (props) => {
39579
- const { options } = getDefaultProps(props);
39713
+ const { options } = getDefaultProps$1(props);
39580
39714
  return /* @__PURE__ */ jsx(LegendProvider, { options, children: /* @__PURE__ */ jsx(BarChart, { ...props }) });
39581
39715
  };
39716
+ const customFormatNumber = (labelNumber) => {
39717
+ let roundOptions = {};
39718
+ if (Math.abs(labelNumber) < DISPLAY_SCIENTIFIC_LOWER_BOUND || Math.abs(labelNumber) > DISPLAY_SCIENTIFIC_UPPER_BOUND) {
39719
+ roundOptions = { roundScientificCoefficient: 3 };
39720
+ }
39721
+ return displayNumber(roundByMagnitude(labelNumber), roundOptions);
39722
+ };
39723
+ const titleCallback = (tooltipItems, options) => {
39724
+ var _a2;
39725
+ if ((_a2 = options == null ? void 0 : options.tooltip) == null ? void 0 : _a2.showLabelsInTooltips) {
39726
+ const item = tooltipItems[0];
39727
+ const { label } = (item == null ? void 0 : item.dataset) ?? {};
39728
+ return label;
39729
+ }
39730
+ };
39731
+ const labelCallback = (tooltipItem) => {
39732
+ const { raw, dataset } = tooltipItem ?? {};
39733
+ return `${dataset == null ? void 0 : dataset.label} ( x: ${customFormatNumber(
39734
+ raw == null ? void 0 : raw.x
39735
+ )} , y: ${customFormatNumber(raw == null ? void 0 : raw.y)} )`;
39736
+ };
39737
+ const getTooltipsConfig = (options) => {
39738
+ var _a2, _b2, _c2;
39739
+ return {
39740
+ enabled: (_a2 = options == null ? void 0 : options.tooltip) == null ? void 0 : _a2.enabled,
39741
+ callbacks: {
39742
+ title: (tooltipItems) => titleCallback(tooltipItems, options),
39743
+ label: labelCallback
39744
+ },
39745
+ backgroundColor: (_b2 = options == null ? void 0 : options.tooltip) == null ? void 0 : _b2.backgroundColor,
39746
+ displayColors: (_c2 = options == null ? void 0 : options.tooltip) == null ? void 0 : _c2.displayColors,
39747
+ padding: 7
39748
+ };
39749
+ };
39750
+ const getScatterChartAxis = ({
39751
+ options,
39752
+ axisType = AxisType.X,
39753
+ currentScale
39754
+ }) => {
39755
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2;
39756
+ const isDirectionVertical = isVertical(options.direction);
39757
+ const axisData = currentScale || ((_b2 = (_a2 = options == null ? void 0 : options.axes) == null ? void 0 : _a2[axisType]) == null ? void 0 : _b2[0]);
39758
+ const isDirectionCompatibleWithAxisType = isDirectionVertical && axisType === AxisType.Y || !isDirectionVertical && axisType === AxisType.X;
39759
+ const grid = (axisData == null ? void 0 : axisData.gridLines) || {};
39760
+ const getReverse = () => {
39761
+ var _a3;
39762
+ const axisWithReverse = isDirectionVertical ? AxisType.Y : AxisType.X;
39763
+ return axisType === axisWithReverse ? (_a3 = options == null ? void 0 : options.additionalAxesOptions) == null ? void 0 : _a3.reverse : false;
39764
+ };
39765
+ const getTicks = () => {
39766
+ const additionalAxesOptions = options == null ? void 0 : options.additionalAxesOptions;
39767
+ const stepSize = {
39768
+ stepSize: (axisData == null ? void 0 : axisData.stepSize) ?? (axisType === AxisType.Y ? additionalAxesOptions == null ? void 0 : additionalAxesOptions.stepSize : void 0)
39769
+ };
39770
+ return {
39771
+ ...stepSize,
39772
+ includeBounds: false,
39773
+ //OW-10088 disable irregular axis ticks
39774
+ font: {
39775
+ size: DEFAULT_FONT_SIZE
39776
+ }
39777
+ };
39778
+ };
39779
+ return {
39780
+ type: ScaleType.Linear,
39781
+ position: axisData == null ? void 0 : axisData.position,
39782
+ beginAtZero: (_c2 = options == null ? void 0 : options.additionalAxesOptions) == null ? void 0 : _c2.beginAtZero,
39783
+ reverse: getReverse(),
39784
+ suggestedMax: (_d2 = options == null ? void 0 : options.additionalAxesOptions) == null ? void 0 : _d2.suggestedMax,
39785
+ suggestedMin: (_e2 = options == null ? void 0 : options.additionalAxesOptions) == null ? void 0 : _e2.suggestedMin,
39786
+ min: isDirectionCompatibleWithAxisType ? (_f2 = options == null ? void 0 : options.additionalAxesOptions) == null ? void 0 : _f2.min : void 0,
39787
+ max: isDirectionCompatibleWithAxisType ? (_g2 = options == null ? void 0 : options.additionalAxesOptions) == null ? void 0 : _g2.max : void 0,
39788
+ title: {
39789
+ display: !!((_h2 = axisData == null ? void 0 : axisData.label) == null ? void 0 : _h2.length) || !!((_i2 = axisData == null ? void 0 : axisData.unit) == null ? void 0 : _i2.length),
39790
+ text: (axisData == null ? void 0 : axisData.label) || (axisData == null ? void 0 : axisData.unit),
39791
+ padding: 0
39792
+ },
39793
+ ticks: getTicks(),
39794
+ grid: {
39795
+ ...grid
39796
+ }
39797
+ };
39798
+ };
39799
+ const getScatterChartScales = (options) => {
39800
+ const xAxis = getScatterChartAxis({ options, axisType: AxisType.X });
39801
+ const yAxis = getScatterChartAxis({ options, axisType: AxisType.Y });
39802
+ return {
39803
+ x: xAxis,
39804
+ y: yAxis
39805
+ };
39806
+ };
39807
+ const useScatterChartConfig = (chart2, chartRef) => {
39808
+ const { data, options: defaultOptions } = chart2;
39809
+ const { interactions, chartStyling } = defaultOptions;
39810
+ const [pointHover, setPointHover] = useState(false);
39811
+ const { legend: legend2, customLegendPlugin, legendClick } = useLegendState({
39812
+ chartRef,
39813
+ options: defaultOptions
39814
+ });
39815
+ const { state: legendState } = useLegend();
39816
+ const { annotation: annotation2 } = legendState;
39817
+ const generateDatasets = (datasets) => {
39818
+ return datasets.map(
39819
+ (scatterDataset, index2) => {
39820
+ const { borderWidth: inputBorderWidth = DEFAULT_BORDER_WIDTH } = scatterDataset ?? {};
39821
+ const borderWidth = parseFloat(String(inputBorderWidth)) || 1;
39822
+ const color2 = COLORS[index2];
39823
+ const borderColor = scatterDataset.borderColor ?? color2;
39824
+ const backgroundColor = scatterDataset.backgroundColor ?? color2;
39825
+ return {
39826
+ ...scatterDataset,
39827
+ borderWidth,
39828
+ borderColor,
39829
+ backgroundColor
39830
+ };
39831
+ }
39832
+ );
39833
+ };
39834
+ const generatedDatasets = generateDatasets(
39835
+ data.datasets
39836
+ );
39837
+ const onClick = (_evt, _elements, chartInstance) => {
39838
+ chartInstance.resetZoom();
39839
+ };
39840
+ const onHover = (evt, hoveredItems) => {
39841
+ if (pointHover && !(hoveredItems == null ? void 0 : hoveredItems.length)) {
39842
+ setPointHover(false);
39843
+ if (interactions.onUnhover) {
39844
+ interactions.onUnhover(evt);
39845
+ }
39846
+ }
39847
+ if (!pointHover && (hoveredItems == null ? void 0 : hoveredItems.length)) {
39848
+ setPointHover(true);
39849
+ if (interactions.onHover) {
39850
+ const { index: index2, datasetIndex } = hoveredItems[0];
39851
+ interactions.onHover(evt, datasetIndex, index2, generatedDatasets);
39852
+ }
39853
+ }
39854
+ };
39855
+ const scatterOptions = {
39856
+ onClick,
39857
+ onHover,
39858
+ chartStyling,
39859
+ interactions: {
39860
+ onLegendClick: legendClick,
39861
+ onHover
39862
+ },
39863
+ scales: getScatterChartScales(chart2 == null ? void 0 : chart2.options),
39864
+ plugins: {
39865
+ legend: { ...legend2, display: false },
39866
+ // hide default legend
39867
+ customLegendPlugin,
39868
+ title: getTitle(defaultOptions),
39869
+ annotation: toAnnotationObject(annotation2),
39870
+ chartAreaBorder: {
39871
+ borderColor: BORDER_COLOR
39872
+ },
39873
+ datalabels: {
39874
+ display: defaultOptions.graph.showDataLabels
39875
+ },
39876
+ tooltip: getTooltipsConfig(defaultOptions)
39877
+ }
39878
+ };
39879
+ return {
39880
+ generatedDatasets,
39881
+ scatterOptions
39882
+ };
39883
+ };
39884
+ const defaultChartStyling = (styling) => ({
39885
+ width: (styling == null ? void 0 : styling.width) ?? AUTO,
39886
+ height: (styling == null ? void 0 : styling.height) ?? AUTO,
39887
+ maintainAspectRatio: (styling == null ? void 0 : styling.maintainAspectRatio) || false,
39888
+ staticChartHeight: (styling == null ? void 0 : styling.staticChartHeight) || false,
39889
+ performanceMode: (styling == null ? void 0 : styling.performanceMode) ?? true
39890
+ });
39891
+ const defaultTooltip = (tooltip) => ({
39892
+ enabled: (tooltip == null ? void 0 : tooltip.enabled) ?? true,
39893
+ tooltips: (tooltip == null ? void 0 : tooltip.tooltips) ?? true,
39894
+ showLabelsInTooltips: (tooltip == null ? void 0 : tooltip.showLabelsInTooltips) || false,
39895
+ backgroundColor: (tooltip == null ? void 0 : tooltip.backgroundColor) || "#333",
39896
+ displayColors: (tooltip == null ? void 0 : tooltip.displayColors) || false
39897
+ });
39898
+ const defaultGraph = (graph) => ({
39899
+ showMinorGridlines: (graph == null ? void 0 : graph.showMinorGridlines) ?? false,
39900
+ showDataLabels: (graph == null ? void 0 : graph.showDataLabels) ?? false
39901
+ });
39902
+ const defaultLegend = (legend2) => ({
39903
+ display: (legend2 == null ? void 0 : legend2.display) ?? true,
39904
+ useDataset: (legend2 == null ? void 0 : legend2.useDataset) || false,
39905
+ position: (legend2 == null ? void 0 : legend2.position) || Position.BottomLeft,
39906
+ align: (legend2 == null ? void 0 : legend2.align) || AlignOptions.Center
39907
+ });
39908
+ const defaultChartOptions = (options) => ({
39909
+ enableZoom: (options == null ? void 0 : options.enableZoom) || false,
39910
+ enablePan: (options == null ? void 0 : options.enablePan) || false
39911
+ });
39912
+ const defaultInteractions = (interactions) => ({
39913
+ onLegendClick: interactions == null ? void 0 : interactions.onLegendClick,
39914
+ onHover: interactions == null ? void 0 : interactions.onHover,
39915
+ onUnhover: interactions == null ? void 0 : interactions.onUnhover
39916
+ });
39917
+ const defaultChartData = (data) => {
39918
+ return {
39919
+ labels: (data == null ? void 0 : data.labels) || [],
39920
+ datasets: (data == null ? void 0 : data.datasets) || []
39921
+ };
39922
+ };
39923
+ const defaultAnnotationsData = (annotationsData) => {
39924
+ return annotationsData ? annotationsData.map((ann) => ({ ...ann, display: (ann == null ? void 0 : ann.display) ?? true })) : [];
39925
+ };
39926
+ const defaultAnnotations = (annotations) => ({
39927
+ showAnnotations: (annotations == null ? void 0 : annotations.showAnnotations) ?? true,
39928
+ controlAnnotation: (annotations == null ? void 0 : annotations.controlAnnotation) || false,
39929
+ annotationsData: defaultAnnotationsData(annotations == null ? void 0 : annotations.annotationsData)
39930
+ });
39931
+ const defaultAxes = (axes) => ({
39932
+ x: (axes == null ? void 0 : axes.x) || [{}],
39933
+ y: (axes == null ? void 0 : axes.y) || [{}]
39934
+ });
39935
+ const defaultAdditionalAxesOptions = (options) => ({
39936
+ reverse: (options == null ? void 0 : options.reverse) || false,
39937
+ stacked: (options == null ? void 0 : options.stacked) || false,
39938
+ beginAtZero: (options == null ? void 0 : options.beginAtZero) ?? true,
39939
+ stepSize: options == null ? void 0 : options.stepSize,
39940
+ suggestedMin: options == null ? void 0 : options.suggestedMin,
39941
+ suggestedMax: options == null ? void 0 : options.suggestedMax,
39942
+ min: options == null ? void 0 : options.min,
39943
+ max: options == null ? void 0 : options.max
39944
+ });
39945
+ const getDefaultProps = (props) => {
39946
+ const chart2 = (props == null ? void 0 : props.chart) || {};
39947
+ const options = (chart2 == null ? void 0 : chart2.options) || {};
39948
+ return {
39949
+ testId: (chart2 == null ? void 0 : chart2.testId) ?? null,
39950
+ data: defaultChartData(chart2 == null ? void 0 : chart2.data),
39951
+ options: {
39952
+ title: (options == null ? void 0 : options.title) || "",
39953
+ axes: defaultAxes(options == null ? void 0 : options.axes),
39954
+ additionalAxesOptions: defaultAdditionalAxesOptions(
39955
+ options == null ? void 0 : options.additionalAxesOptions
39956
+ ),
39957
+ direction: (options == null ? void 0 : options.direction) || ChartDirection.VERTICAL,
39958
+ chartStyling: defaultChartStyling(options == null ? void 0 : options.chartStyling),
39959
+ tooltip: defaultTooltip(options == null ? void 0 : options.tooltip),
39960
+ graph: defaultGraph(options == null ? void 0 : options.graph),
39961
+ legend: defaultLegend(options == null ? void 0 : options.legend),
39962
+ annotations: defaultAnnotations(options == null ? void 0 : options.annotations),
39963
+ chartOptions: defaultChartOptions(options == null ? void 0 : options.chartOptions),
39964
+ interactions: defaultInteractions(options == null ? void 0 : options.interactions)
39965
+ }
39966
+ };
39967
+ };
39968
+ const chart = "_chart_1jdnu_1";
39969
+ const fixedHeight = "_fixedHeight_1jdnu_13";
39970
+ const stretchHeight = "_stretchHeight_1jdnu_19";
39971
+ const zoomForm = "_zoomForm_1jdnu_32";
39972
+ const zoomReset = "_zoomReset_1jdnu_40";
39973
+ const help = "_help_1jdnu_43";
39974
+ const autoWeight = "_autoWeight_1jdnu_47";
39975
+ const styles = {
39976
+ chart,
39977
+ fixedHeight,
39978
+ stretchHeight,
39979
+ zoomForm,
39980
+ zoomReset,
39981
+ help,
39982
+ autoWeight
39983
+ };
39984
+ Chart$2.register(
39985
+ LinearScale$1,
39986
+ PointElement$1,
39987
+ CategoryScale$1,
39988
+ plugin_legend,
39989
+ plugin_tooltip,
39990
+ plugin_title,
39991
+ plugin$1,
39992
+ plugin,
39993
+ annotation
39994
+ );
39995
+ const ScatterChart = (props) => {
39996
+ setDefaultTheme();
39997
+ const chartRef = useRef(null);
39998
+ const chart2 = getDefaultProps(props);
39999
+ const { options, testId } = chart2;
40000
+ const { scatterOptions, generatedDatasets } = useScatterChartConfig(
40001
+ chart2,
40002
+ chartRef
40003
+ );
40004
+ return /* @__PURE__ */ jsx(
40005
+ "div",
40006
+ {
40007
+ className: getClassName(options.chartStyling, styles),
40008
+ style: {
40009
+ width: options.chartStyling.width,
40010
+ height: options.chartStyling.height
40011
+ },
40012
+ "data-testid": testId,
40013
+ children: /* @__PURE__ */ jsx(DndProvider, { backend: HTML5Backend, context: window, children: /* @__PURE__ */ jsxs("div", { className: styles.canvas, id: "canvas", children: [
40014
+ /* @__PURE__ */ jsx(
40015
+ Scatter,
40016
+ {
40017
+ ref: chartRef,
40018
+ data: {
40019
+ datasets: generatedDatasets
40020
+ },
40021
+ options: scatterOptions,
40022
+ plugins: getPlugins(options.graph, options.legend)
40023
+ }
40024
+ ),
40025
+ !!generatedDatasets.length && /* @__PURE__ */ jsx(
40026
+ Legend2,
40027
+ {
40028
+ chartRef,
40029
+ legendConfig: {
40030
+ options,
40031
+ generatedDatasets,
40032
+ chartType: ChartType.SCATTER
40033
+ }
40034
+ }
40035
+ )
40036
+ ] }) })
40037
+ }
40038
+ );
40039
+ };
40040
+ const ScatterChartWithLegend = (props) => {
40041
+ const { options } = getDefaultProps(props);
40042
+ return /* @__PURE__ */ jsx(LegendProvider, { options, children: /* @__PURE__ */ jsx(ScatterChart, { ...props }) });
40043
+ };
39582
40044
  export {
39583
40045
  BarChartWithLegend as BarChart,
39584
40046
  LineChartWithLegend as LineChart,
39585
40047
  PieChartWithLegend as PieChart,
40048
+ ScatterChartWithLegend as ScatterChart,
39586
40049
  initializeLineChart
39587
40050
  };
39588
40051
  //# sourceMappingURL=index.js.map
@@ -39591,7 +40054,7 @@ export {
39591
40054
  try {
39592
40055
  if (typeof document != "undefined") {
39593
40056
  var elementStyle = document.createElement("style");
39594
- 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_x1sru_1 canvas {\n filter: invert(1) hue-rotate(180deg);\n}\n._chart_x1sru_1 {\n border: 1px solid rgba(255, 255, 255, 0);\n position: relative;\n display: flex;\n flex-direction: column;\n}\n._chart_x1sru_1 ._canvas_x1sru_10 {\n flex-grow: 1;\n min-height: 0;\n position: relative;\n}\n._chart_x1sru_1 ._canvas_x1sru_10 canvas {\n width: 100% !important;\n height: 100% !important;\n}\n._chart_x1sru_1._fixedHeight_x1sru_19 {\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n height: auto;\n}\n._chart_x1sru_1._stretchHeight_x1sru_25 {\n display: flex;\n align-items: stretch;\n justify-content: stretch;\n height: 100%;\n}\n._chart_x1sru_1:focus {\n border: 1px solid #85b7d9;\n outline: none;\n}\n._chart_x1sru_1::-moz-focus-inner {\n border: 0;\n}\n._zoomForm_x1sru_38 {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n right: 0;\n}\n._zoomForm_x1sru_38 ._zoomReset_x1sru_46 {\n margin-left: 10px;\n}\n._zoomForm_x1sru_38 ._help_x1sru_49 {\n margin-left: 5px;\n line-height: 0;\n}\n._autoWeight_x1sru_53 {\n width: auto;\n height: auto;\n}\n._actions_x1sru_57 {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n}"));
40057
+ 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_x1sru_1 canvas {\n filter: invert(1) hue-rotate(180deg);\n}\n._chart_x1sru_1 {\n border: 1px solid rgba(255, 255, 255, 0);\n position: relative;\n display: flex;\n flex-direction: column;\n}\n._chart_x1sru_1 ._canvas_x1sru_10 {\n flex-grow: 1;\n min-height: 0;\n position: relative;\n}\n._chart_x1sru_1 ._canvas_x1sru_10 canvas {\n width: 100% !important;\n height: 100% !important;\n}\n._chart_x1sru_1._fixedHeight_x1sru_19 {\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n height: auto;\n}\n._chart_x1sru_1._stretchHeight_x1sru_25 {\n display: flex;\n align-items: stretch;\n justify-content: stretch;\n height: 100%;\n}\n._chart_x1sru_1:focus {\n border: 1px solid #85b7d9;\n outline: none;\n}\n._chart_x1sru_1::-moz-focus-inner {\n border: 0;\n}\n._zoomForm_x1sru_38 {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n right: 0;\n}\n._zoomForm_x1sru_38 ._zoomReset_x1sru_46 {\n margin-left: 10px;\n}\n._zoomForm_x1sru_38 ._help_x1sru_49 {\n margin-left: 5px;\n line-height: 0;\n}\n._autoWeight_x1sru_53 {\n width: auto;\n height: auto;\n}\n._actions_x1sru_57 {\n display: flex;\n align-items: center;\n justify-content: flex-end;\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}"));
39595
40058
  document.head.appendChild(elementStyle);
39596
40059
  }
39597
40060
  } catch (e) {