@carbon/charts 1.23.14 → 1.23.16

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/a11y-ePqvrObQ.mjs.map +1 -1
  3. package/dist/{angle-utils-Re7uVv7K.mjs → angle-utils-BWFhuTnR.mjs} +49 -54
  4. package/dist/{angle-utils-Re7uVv7K.mjs.map → angle-utils-BWFhuTnR.mjs.map} +1 -1
  5. package/dist/{array-CLq6Q40W.mjs → array-4CiuhqlQ.mjs} +2 -2
  6. package/dist/{array-CLq6Q40W.mjs.map → array-4CiuhqlQ.mjs.map} +1 -1
  7. package/dist/axis-scales-CPuwbFQf.mjs.map +1 -1
  8. package/dist/{choropleth-PBjldW-E.mjs → choropleth-Bst0hbTL.mjs} +483 -506
  9. package/dist/choropleth-Bst0hbTL.mjs.map +1 -0
  10. package/dist/{color-scale-utils-BPsvYA85.mjs → color-scale-utils-DCBFJmbg.mjs} +1152 -1161
  11. package/dist/{color-scale-utils-BPsvYA85.mjs.map → color-scale-utils-DCBFJmbg.mjs.map} +1 -1
  12. package/dist/components/index.mjs +1 -1
  13. package/dist/{index-Ciju2yyn.mjs → index-BILVb6NZ.mjs} +442 -447
  14. package/dist/{index-Ciju2yyn.mjs.map → index-BILVb6NZ.mjs.map} +1 -1
  15. package/dist/index.d.cts +21 -0
  16. package/dist/index.mjs +62 -63
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/model/index.mjs +22 -22
  19. package/dist/model/index.mjs.map +1 -1
  20. package/dist/services/index.mjs +3 -3
  21. package/dist/styles.css +96 -0
  22. package/dist/styles.css.map +1 -1
  23. package/dist/styles.min.css +1 -1
  24. package/dist/styles.min.css.map +1 -1
  25. package/dist/umd/bundle.umd.cjs +14 -14
  26. package/dist/umd/bundle.umd.cjs.map +1 -1
  27. package/dist/umd/bundle.umd.js +14 -14
  28. package/package.json +24 -25
  29. package/styles.css +96 -0
  30. package/styles.min.css +1 -1
  31. package/dist/choropleth-PBjldW-E.mjs.map +0 -1
@@ -0,0 +1,21 @@
1
+ import * as configurations_1 from './configuration';
2
+ export { configurations_1 as configurations };
3
+ import * as interfaces_1 from './interfaces';
4
+ export { interfaces_1 as interfaces };
5
+ export { AxisChart } from './axis-chart';
6
+ export { Chart } from './chart';
7
+ export { AlluvialChart, AreaChart, BoxplotChart, BubbleChart, BulletChart, Charts,
8
+ /**
9
+ * @deprecated Use `ChoroplethChart` instead.
10
+ */
11
+ ChoroplethChart as ExperimentalChoroplethChart, ChoroplethChart, CirclePackChart, ComboChart, DonutChart, GaugeChart, GroupedBarChart, HeatmapChart, HistogramChart, LineChart, LollipopChart, MeterChart, PieChart, RadarChart, ScatterChart, SimpleBarChart, StackedAreaChart, StackedBarChart, TreeChart, TreemapChart, WordCloudChart } from './charts';
12
+ export { ChartConfig, ChartData, ChartOptions, ChartTabularData, DataSet, LayoutConfigs, AlluvialChartOptions, AreaChartOptions, AxisChartOptions, BarChartOptions, BaseChartOptions, BinnedAxisChartOptions, BoxplotChartOptions, BubbleChartOptions, BulletChartOptions, ChoroplethChartOptions, CirclePackChartOptions, ComboChartOptions, DonutChartOptions, GaugeChartOptions, HeatmapChartOptions, HistogramChartOptions, LineChartOptions, LollipopChartOptions, MeterChartOptions, PieChartOptions, ProportionalMeterChartOptions, RadarChartOptions, ScatterChartOptions, StackedAreaChartOptions, StackedBarChartOptions, ThematicChartOptions, TreeChartOptions, TreemapChartOptions, WordCloudChartOptions,
13
+ /**
14
+ * @deprecated Use `WordCloudChartOptions` instead.
15
+ */
16
+ WordCloudChartOptions as WorldCloudChartOptions, AxesOptions, AxisOptions, BarOptions, BasedAxisOptions, BinnedAxisOptions, ComboChartAxisOptions, GridOptions, LegendOptions, Locale, LocaleTimeScaleOptions, RulerOptions, StackedBarOptions, TimeScaleOptions, ThresholdOptions, ToolbarOptions, TooltipOptions, TruncationOptions, WordCloudChartTooltipOptions, ZoomBarOptions, ZoomBarsOptions, TabularRepCustomizationOptions, TickFormats, TimeIntervalFormats, Coordinates, LegendItem, LayoutComponentChild, Services, ToolbarControl } from './interfaces';
17
+ export { Alignments, AreaEvent, ArrowDirections, AxisEvent, AxisFlavor, AxisPositions, AxisTitleOrientations, BarEvent, BoxplotEvent, CalloutDirections, CanvasZoomEvent, CartesianOrientations, ChartEvent, ChartTheme, ChartTypes, ColorClassNameTypes, ColorLegendType, DividerStatus, DominantBaseline, GaugeEvent, GaugeTypes, LayoutAlignItems, LayoutDirection, LayoutGrowth, LegendItemType, LegendOrientations, LegendPositions, LineEvent, ModalEvent, ModelEvent, PieEvent, Projection, RadarEvent, RenderTypes, ScaleTypes, ScatterEvent, Skeletons, Statuses, TextAnchor, ThresholdEvent, TickRotations, TimeIntervalNames, ToolbarControlTypes, TooltipEvent, TruncationTypes, TreeEvent, TreemapEvent, TreeTypes, WordCloudEvent, ZoombarEvent, ZoomDomainEvent, ZoomBarTypes } from './interfaces';
18
+ export { alluvial, area, axis, baseTooltip, boxplot, canvasZoomSettings, carbonPrefix, circlePack, color, defaultLegendAdditionalItems, grid, histogram, legend, lines, meter, options, pie, radar, ruler, spacers, timeScale, tooltips, transitions, toolbar, zoomBar } from './configuration';
19
+ export { Axis, BinnedRuler, ChartClip, ChartBrush, GenericSvgSelection, Grid, HoverAxis, Ruler, StackedRuler, Toolbar, TwoDimensionalAxes, ZeroLine, ZoomBar, arrowLeft, arrowRight, buildBezierPathString, buildElbowPathString, buildStraightPathString, circle, diamond, square, tee, AxisChartsTooltip, CanvasChartClip, ColorScaleLegend, GeoProjection, Highlight, Legend, MeterTitle, Modal, Threshold, Title, Tooltip, Alluvial, Area, Bar, Boxplot, Bubble, Bullet, Choropleth, CirclePack, Donut, Gauge, GroupedBar, Heatmap, Histogram, Line, Lollipop, Meter, Pie, Radar, Scatter, SimpleBar, Skeleton, SkeletonLines, StackedArea, StackedBar, StackedScatter, Tree, Treemap, WordCloud, LayoutComponent, Spacer, Component } from './components';
20
+ export { AlluvialChartModel, BoxplotChartModel, BulletChartModel, ChartModel, ChartModelBinned, ChartModelCartesian, ChoroplethModel, CirclePackChartModel, GaugeChartModel, HeatmapModel, MeterChartModel, PieChartModel, RadarChartModel, StackKeysParams, TreeChartModel, TreemapChartModel, WordCloudModel } from './model';
21
+ export { Angle, CanvasZoom, CartesianScales, computeTimeIntervalName, Curves, degToRad, Dimensions, distanceBetweenPointOnCircAndVerticalDiameter, DOMUtils, Events, Files, formatDateTillMilliSeconds, formatTick, getColorScale, getDomain, getTimeformats, isTickPrimary, getSVGElementSizeOptions, GradientUtils, LabelAlignment, Point, polarToCartesianCoords, radialLabelPlacement, radToDeg, ScaleFunction, Service, setupTransitionConfigs, TIME_INTERVALS, Transitions, Zoom } from './services';
package/dist/index.mjs CHANGED
@@ -1,17 +1,17 @@
1
- import { t as Y, g as l, m as a, o as r, c as J, a as V } from "./color-scale-utils-BPsvYA85.mjs";
2
- import { T as yt, e as Dt, f as Lt, h as Ft, j as Pt, l as Mt, n as kt, p as Bt, q as It, r as Ht, I as Gt, d as Vt, s as Nt, J as Ut, K as Zt, L as _t, M as zt, N as Wt, u as jt, v as $t, O as Kt, w as Jt, x as qt, y as Xt, z as Qt, A as Yt, B as eo, C as so, D as to, G as oo, E as no, F as io, H as ro } from "./color-scale-utils-BPsvYA85.mjs";
1
+ import { t as Y, g as l, m as a, o as r, c as J, a as V } from "./color-scale-utils-DCBFJmbg.mjs";
2
+ import { T as yt, e as Dt, f as Lt, h as Ft, j as Pt, l as Mt, n as kt, p as Bt, q as It, r as Ht, I as Gt, d as Vt, s as Nt, J as Ut, K as Zt, L as _t, M as zt, N as Wt, u as jt, v as $t, O as Kt, w as Jt, x as qt, y as Xt, z as Qt, A as Yt, B as eo, C as so, D as to, G as oo, E as no, F as io, H as ro } from "./color-scale-utils-DCBFJmbg.mjs";
3
3
  import { i as ho } from "./index-DwV8lNnO.mjs";
4
4
  import { ChartModel as Re, ChartModelCartesian as Te, AlluvialChartModel as be, BoxplotChartModel as Oe, BulletChartModel as Se, ChoroplethModel as fe, CirclePackChartModel as Ae, PieChartModel as xe, GaugeChartModel as ye, HeatmapModel as De, ChartModelBinned as Le, MeterChartModel as Fe, RadarChartModel as Pe, TreeChartModel as Me, TreemapChartModel as ke, WordCloudModel as Be } from "./model/index.mjs";
5
5
  import { $ as j, r as i, L as Z, q as h, y as A, t as N, e as $, S as Ie, u as K, F as p, l as R } from "./axis-scales-CPuwbFQf.mjs";
6
6
  import { A as mo, a as lo, b as po, c as Co, d as uo, f as vo, B as go, g as wo, C as Eo, h as Ro, i as To, j as bo, k as Oo, m as So, n as fo, D as Ao, o as xo, G as yo, p as Do, s as Lo, v as Fo, M as Po, w as Mo, P as ko, x as Bo, R as Io, z as Ho, H as Go, T as Vo, I as No, J as Uo, K as Zo, N as _o, O as zo, Q as Wo, U as jo, V as $o, W as Ko, X as Jo, Z as qo, Y as Xo, _ as Qo } from "./axis-scales-CPuwbFQf.mjs";
7
- import { c as He, L as ee, C as Ge, T as _, a as z, b as g, S as L, d as se, M as W, e as Ve, f as Ne, g as Ue, H as Ze, Z as _e, A as te, h as ze, i as d, G as w, R as B, j as k, k as oe, l as M, m as C, B as We, n as I, o as je, p as $e, q as ne, r as Ke, s as Je, t as ie, u as U, v as re, w as ae, x as he, y as ce, P as qe, D as Xe, z as Qe, E as Ye, F as es, I as ss, J as ts, K as os, N as ns, O as is, Q as rs, U as as, V as hs, W as cs } from "./choropleth-PBjldW-E.mjs";
8
- import { X as en, a8 as sn, a9 as tn, a7 as on, Y as nn, _ as rn, $ as an, a0 as hn, a1 as cn, a2 as mn, a3 as ln, a4 as pn, a5 as dn, a6 as Cn } from "./choropleth-PBjldW-E.mjs";
9
- import { b as ms, T as ls, F as ps, E as ds, C as Cs, Z as us, a as vs, c as gs, f as ws } from "./index-Ciju2yyn.mjs";
10
- import { G as Es, D as Rs } from "./angle-utils-Re7uVv7K.mjs";
11
- import { S as vn, d as gn, a as wn, p as En, b as Rn, r as Tn } from "./angle-utils-Re7uVv7K.mjs";
7
+ import { c as He, L as ee, C as Ge, T as _, a as z, b as g, S as L, d as se, M as W, e as Ve, f as Ne, g as Ue, H as Ze, Z as _e, A as te, h as ze, i as d, G as w, R as B, j as k, k as oe, l as M, m as C, B as We, n as I, o as je, p as $e, q as ne, r as Ke, s as Je, t as ie, u as U, v as re, w as ae, x as he, y as ce, P as qe, D as Xe, z as Qe, E as Ye, F as es, I as ss, J as ts, K as os, N as ns, O as is, Q as rs, U as as, V as hs, W as cs } from "./choropleth-Bst0hbTL.mjs";
8
+ import { X as en, a8 as sn, a9 as tn, a7 as on, Y as nn, _ as rn, $ as an, a0 as hn, a1 as cn, a2 as mn, a3 as ln, a4 as pn, a5 as dn, a6 as Cn } from "./choropleth-Bst0hbTL.mjs";
9
+ import { b as ms, T as ls, F as ps, E as ds, C as Cs, Z as us, a as vs, c as gs, f as ws } from "./index-BILVb6NZ.mjs";
10
+ import { G as Es, D as Rs } from "./angle-utils-BWFhuTnR.mjs";
11
+ import { S as vn, d as gn, a as wn, p as En, b as Rn, r as Tn } from "./angle-utils-BWFhuTnR.mjs";
12
12
  function Ts(t, s, e) {
13
- var n = t.length;
14
- return e = e === void 0 ? n : e, ms(t, s, e);
13
+ var o = t.length;
14
+ return e = e === void 0 ? o : e, !s && e >= o ? t : ms(t, s, e);
15
15
  }
16
16
  var bs = "\\ud800-\\udfff", Os = "\\u0300-\\u036f", Ss = "\\ufe20-\\ufe2f", fs = "\\u20d0-\\u20ff", As = Os + Ss + fs, xs = "\\ufe0e\\ufe0f", ys = "\\u200d", Ds = RegExp("[" + ys + bs + As + xs + "]");
17
17
  function me(t) {
@@ -30,8 +30,8 @@ function zs(t) {
30
30
  function Ws(t) {
31
31
  return function(s) {
32
32
  s = Y(s);
33
- var e = me(s) ? zs(s) : void 0, n = e ? e[0] : s.charAt(0), o = e ? Ts(e, 1).join("") : s.slice(1);
34
- return n[t]() + o;
33
+ var e = me(s) ? zs(s) : void 0, o = e ? e[0] : s.charAt(0), n = e ? Ts(e, 1).join("") : s.slice(1);
34
+ return o[t]() + n;
35
35
  };
36
36
  }
37
37
  var js = Ws("toUpperCase");
@@ -57,12 +57,12 @@ class T {
57
57
  }
58
58
  // Contains the code that uses properties that are overridable by the super-class
59
59
  init(s, e) {
60
- this.model.set({ holder: s }, { skipUpdate: !0 }), Object.keys(this.services).forEach((n) => {
61
- const o = this.services[n];
62
- this.services[n] = new o(this.model, this.services);
63
- }), this.services.events.addEventListener(j.Model.UPDATE, (n) => {
64
- const o = !!l(n, "detail", "animate");
65
- this.update(o);
60
+ this.model.set({ holder: s }, { skipUpdate: !0 }), Object.keys(this.services).forEach((o) => {
61
+ const n = this.services[o];
62
+ this.services[o] = new n(this.model, this.services);
63
+ }), this.services.events.addEventListener(j.Model.UPDATE, (o) => {
64
+ const n = !!l(o, "detail", "animate");
65
+ this.update(n);
66
66
  }), this.model.setData(e.data), this.services.events.addEventListener(j.Chart.RESIZE, () => {
67
67
  this.update(!1);
68
68
  }), this.components = this.getComponents(), this.update();
@@ -78,11 +78,11 @@ class T {
78
78
  update(s = !0) {
79
79
  if (!this.components)
80
80
  return;
81
- Object.keys(this.services).forEach((o) => {
82
- this.services[o].update();
83
- }), this.components.forEach((o) => o.render(s));
84
- const e = this.services.transitions.getPendingTransitions(), n = Object.keys(e).map((o) => e[o].end().catch((m) => m));
85
- Promise.all(n).then(
81
+ Object.keys(this.services).forEach((n) => {
82
+ this.services[n].update();
83
+ }), this.components.forEach((n) => n.render(s));
84
+ const e = this.services.transitions.getPendingTransitions(), o = Object.keys(e).map((n) => e[n].end().catch((m) => m));
85
+ Promise.all(o).then(
86
86
  () => this.services.events.dispatchEvent(j.Chart.RENDER_FINISHED)
87
87
  );
88
88
  }
@@ -90,11 +90,11 @@ class T {
90
90
  this.components.forEach((s) => s.destroy()), this.services.domUtils.getHolder().remove(), this.model.set({ destroyed: !0 }, { skipUpdate: !0 });
91
91
  }
92
92
  getChartComponents(s, e) {
93
- const n = this.model.getOptions(), o = l(n, "toolbar", "enabled"), c = {
93
+ const o = this.model.getOptions(), n = l(o, "toolbar", "enabled"), c = {
94
94
  id: "legend",
95
95
  components: [new ee(this.model, this.services)],
96
96
  growth: i.PREFERRED
97
- }, m = l(n, "canvasZoom", "enabled");
97
+ }, m = l(o, "canvasZoom", "enabled");
98
98
  m && m === !0 && s.push(new Ge(this.model, this.services));
99
99
  const b = !!this.model.getOptions().title, O = {
100
100
  id: "title",
@@ -113,7 +113,7 @@ class T {
113
113
  [
114
114
  // always add title to keep layout correct
115
115
  O,
116
- ...o ? [x] : []
116
+ ...n ? [x] : []
117
117
  ],
118
118
  {
119
119
  direction: h.ROW,
@@ -127,11 +127,11 @@ class T {
127
127
  components: s,
128
128
  growth: i.STRETCH,
129
129
  renderType: l(e, "graphFrameRenderType") || A.SVG
130
- }, D = l(e, "excludeLegend") !== !0 && n.legend.enabled !== !1;
130
+ }, D = l(e, "excludeLegend") !== !0 && o.legend.enabled !== !1;
131
131
  let S = h.COLUMN;
132
132
  if (D) {
133
- const f = l(n, "legend", "position");
134
- f === "left" ? (S = h.ROW, n.legend.orientation || (n.legend.orientation = N.VERTICAL)) : f === "right" ? (S = h.ROW_REVERSE, n.legend.orientation || (n.legend.orientation = N.VERTICAL)) : f === "bottom" && (S = h.COLUMN_REVERSE);
133
+ const f = l(o, "legend", "position");
134
+ f === "left" ? (S = h.ROW, o.legend.orientation || (o.legend.orientation = N.VERTICAL)) : f === "right" ? (S = h.ROW_REVERSE, o.legend.orientation || (o.legend.orientation = N.VERTICAL)) : f === "bottom" && (S = h.COLUMN_REVERSE);
135
135
  }
136
136
  const P = {
137
137
  id: "spacer",
@@ -155,12 +155,12 @@ class T {
155
155
  ],
156
156
  growth: i.STRETCH
157
157
  }, E = [];
158
- if (b || o) {
158
+ if (b || n) {
159
159
  E.push(F);
160
160
  const f = {
161
161
  id: "spacer",
162
162
  components: [
163
- new L(this.model, this.services, o ? { size: 15 } : void 0)
163
+ new L(this.model, this.services, n ? { size: 15 } : void 0)
164
164
  ],
165
165
  growth: i.PREFERRED
166
166
  };
@@ -184,9 +184,9 @@ class u extends T {
184
184
  }), this.model = new Te(this.services);
185
185
  }
186
186
  getAxisChartComponents(s, e) {
187
- const n = this.model.getOptions(), o = l(n, "zoomBar", $.TOP, "enabled"), c = l(n, "toolbar", "enabled");
187
+ const o = this.model.getOptions(), n = l(o, "zoomBar", $.TOP, "enabled"), c = l(o, "toolbar", "enabled");
188
188
  this.services.cartesianScales.determineAxisDuality(), this.services.cartesianScales.findDomainAndRangeAxes(), this.services.cartesianScales.determineOrientation();
189
- const m = this.services.cartesianScales.getMainXAxisPosition(), b = l(n, "axes", m, "scaleType"), O = o && m === $.BOTTOM && b === Ie.TIME, x = this.services.zoom.isZoomBarLocked($.TOP), F = !!this.model.getOptions().title, y = {
189
+ const m = this.services.cartesianScales.getMainXAxisPosition(), b = l(o, "axes", m, "scaleType"), O = n && m === $.BOTTOM && b === Ie.TIME, x = this.services.zoom.isZoomBarLocked($.TOP), F = !!this.model.getOptions().title, y = {
190
190
  id: "title",
191
191
  components: [new _(this.model, this.services)],
192
192
  growth: i.STRETCH
@@ -402,7 +402,7 @@ class at extends T {
402
402
  // Custom getChartComponents - Implements getChartComponents
403
403
  // Removes zoombar support and additional `features` that are not supported in heatmap
404
404
  getChartComponents(s, e) {
405
- const n = this.model.getOptions(), o = l(n, "toolbar", "enabled"), c = !!this.model.getOptions().title, m = {
405
+ const o = this.model.getOptions(), n = l(o, "toolbar", "enabled"), c = !!this.model.getOptions().title, m = {
406
406
  id: "title",
407
407
  components: [new _(this.model, this.services)],
408
408
  growth: i.STRETCH
@@ -419,7 +419,7 @@ class at extends T {
419
419
  [
420
420
  // always add title to keep layout correct
421
421
  m,
422
- ...o ? [b] : []
422
+ ...n ? [b] : []
423
423
  ],
424
424
  {
425
425
  direction: h.ROW,
@@ -464,12 +464,12 @@ class at extends T {
464
464
  ],
465
465
  growth: i.STRETCH
466
466
  }, v = [];
467
- if (c || o) {
467
+ if (c || n) {
468
468
  v.push(O);
469
469
  const E = {
470
470
  id: "spacer",
471
471
  components: [
472
- new L(this.model, this.services, o ? { size: 15 } : void 0)
472
+ new L(this.model, this.services, n ? { size: 15 } : void 0)
473
473
  ],
474
474
  growth: i.PREFERRED
475
475
  };
@@ -519,38 +519,38 @@ const Q = {
519
519
  class ct extends u {
520
520
  constructor(s, e) {
521
521
  super(s, e);
522
- const n = a(r.comboChart, e.options);
523
- e.options.comboChartTypes || (console.error("No comboChartTypes defined for the Combo Chart!"), n.comboChartTypes = [{ type: R.LINE, correspondingDatasets: [] }]), this.model.setOptions(n), this.init(s, e);
522
+ const o = a(r.comboChart, e.options);
523
+ e.options.comboChartTypes || (console.error("No comboChartTypes defined for the Combo Chart!"), o.comboChartTypes = [{ type: R.LINE, correspondingDatasets: [] }]), this.model.setOptions(o), this.init(s, e);
524
524
  }
525
525
  getGraphComponents() {
526
526
  const { comboChartTypes: s } = this.model.getOptions();
527
527
  let e = 0;
528
- const n = s.map((o) => {
529
- const c = o.type;
528
+ const o = s.map((n) => {
529
+ const c = n.type;
530
530
  let m;
531
- if (typeof o.type == "string") {
532
- if (!Object.keys(Q).includes(o.type))
531
+ if (typeof n.type == "string") {
532
+ if (!Object.keys(Q).includes(n.type))
533
533
  return console.error(
534
- `Invalid chart type "${o.type}" specified for combo chart. Please refer to the ComboChart tutorial for more guidance.`
534
+ `Invalid chart type "${n.type}" specified for combo chart. Please refer to the ComboChart tutorial for more guidance.`
535
535
  ), null;
536
536
  let b = !1;
537
- const O = `${Ks(o.type)}Chart`;
538
- return m = V({}, r[O], this.model.getOptions(), o.options), o.type === R.STACKED_AREA && (b = !0), Q[o.type].map(
537
+ const O = `${Ks(n.type)}Chart`;
538
+ return m = V({}, r[O], this.model.getOptions(), n.options), n.type === R.STACKED_AREA && (b = !0), Q[n.type].map(
539
539
  (x) => new x(this.model, this.services, {
540
- groups: o.correspondingDatasets,
540
+ groups: n.correspondingDatasets,
541
541
  id: e++,
542
542
  options: m,
543
543
  stacked: b
544
544
  })
545
545
  );
546
546
  } else
547
- return m = V({}, this.model.getOptions(), o.options), new c(this.model, this.services, {
548
- groups: o.correspondingDatasets,
547
+ return m = V({}, this.model.getOptions(), n.options), new c(this.model, this.services, {
548
+ groups: n.correspondingDatasets,
549
549
  id: e++,
550
550
  options: m
551
551
  });
552
- }).filter((o) => o !== null);
553
- return ws(n);
552
+ }).filter((n) => n !== null);
553
+ return ws(o);
554
554
  }
555
555
  /**
556
556
  * Retrieves the components to be rendered inside the graph frame.
@@ -560,7 +560,7 @@ class ct extends u {
560
560
  getComponents() {
561
561
  const { comboChartTypes: s } = this.model.getOptions(), e = s.some(
562
562
  (c) => c.type === R.STACKED_BAR || c.type === R.STACKED_AREA
563
- ), n = [
563
+ ), o = [
564
564
  new d(this.model, this.services),
565
565
  new w(this.model, this.services),
566
566
  new C(this.model, this.services, {
@@ -569,13 +569,13 @@ class ct extends u {
569
569
  ...e ? [] : [new B(this.model, this.services)],
570
570
  ...this.getGraphComponents()
571
571
  ];
572
- return this.getAxisChartComponents(n);
572
+ return this.getAxisChartComponents(o);
573
573
  }
574
574
  }
575
575
  class Js extends T {
576
576
  // TODO - Optimize the use of "extending"
577
- constructor(s, e, n = !1) {
578
- super(s, e), this.model = new xe(this.services), !n && (this.model.setOptions(a(r.pieChart, e.options)), this.init(s, e));
577
+ constructor(s, e, o = !1) {
578
+ super(s, e), this.model = new xe(this.services), !o && (this.model.setOptions(a(r.pieChart, e.options)), this.init(s, e));
579
579
  }
580
580
  /**
581
581
  * Retrieves the components to be rendered inside the graph frame.
@@ -656,7 +656,7 @@ class dt extends u {
656
656
  // Custom getChartComponents - Implements getChartComponents
657
657
  // Removes zoombar support and additional `features` that are not supported in heatmap
658
658
  getAxisChartComponents(s, e) {
659
- const n = this.model.getOptions(), o = l(n, "toolbar", "enabled");
659
+ const o = this.model.getOptions(), n = l(o, "toolbar", "enabled");
660
660
  this.services.cartesianScales.determineAxisDuality(), this.services.cartesianScales.findDomainAndRangeAxes(), this.services.cartesianScales.determineOrientation();
661
661
  const c = !!this.model.getOptions().title, m = {
662
662
  id: "title",
@@ -675,7 +675,7 @@ class dt extends u {
675
675
  [
676
676
  // always add title to keep layout correct
677
677
  m,
678
- ...o ? [b] : []
678
+ ...n ? [b] : []
679
679
  ],
680
680
  {
681
681
  direction: h.ROW,
@@ -720,12 +720,12 @@ class dt extends u {
720
720
  ],
721
721
  growth: i.STRETCH
722
722
  }, v = [];
723
- if (c || o) {
723
+ if (c || n) {
724
724
  v.push(O);
725
725
  const E = {
726
726
  id: "spacer",
727
727
  components: [
728
- new L(this.model, this.services, o ? { size: 15 } : void 0)
728
+ new L(this.model, this.services, n ? { size: 15 } : void 0)
729
729
  ],
730
730
  growth: i.PREFERRED
731
731
  };
@@ -818,10 +818,9 @@ class vt extends u {
818
818
  }
819
819
  class gt extends T {
820
820
  constructor(s, e) {
821
- var o;
822
821
  super(s, e), this.model = new Fe(this.services);
823
- const n = (o = e.options.meter) != null && o.proportional ? V(J(r.proportionalMeterChart), e.options) : V(J(r.meterChart), e.options);
824
- this.model.setOptions(n), this.init(s, e);
822
+ const o = e.options.meter?.proportional ? V(J(r.proportionalMeterChart), e.options) : V(J(r.meterChart), e.options);
823
+ this.model.setOptions(o), this.init(s, e);
825
824
  }
826
825
  /**
827
826
  * Retrieves the components to be rendered inside the graph frame.
@@ -856,12 +855,12 @@ class gt extends T {
856
855
  growth: i.STRETCH,
857
856
  renderType: A.SVG
858
857
  }
859
- ], n = [
858
+ ], o = [
860
859
  new g(this.model, this.services, e, {
861
860
  direction: h.COLUMN
862
861
  })
863
862
  ];
864
- return this.getChartComponents(n, {
863
+ return this.getChartComponents(o, {
865
864
  graphFrameRenderType: A.HTML
866
865
  });
867
866
  }