@carbon/charts 1.27.14 → 1.27.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.
package/dist/index.mjs CHANGED
@@ -1,14 +1,14 @@
1
- import { t as Y, g as l, m as a, o as r, c as J, a as V } from "./color-scale-utils-C4KU2jNr.mjs";
2
- import { T as Dt, e as yt, f as Lt, Z as Ft, h as Pt, j as Mt, l as kt, n as Bt, V as It, p as Ht, q as Gt, r as Vt, a3 as Nt, I as Ut, d as Zt, W as _t, P as zt, s as Wt, a0 as jt, a1 as $t, J as Kt, K as Jt, U as Xt, a2 as qt, L as Qt, Q as Yt, M as eo, _ as so, N as to, S as oo, R as no, u as io, v as ro, O as ao, w as ho, x as co, y as mo, $ as lo, z as po, A as uo, B as Co, C as vo, D as go, G as wo, E as Eo, F as Ro, X as To, Y as bo, H as Oo } from "./color-scale-utils-C4KU2jNr.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-C1aV7-HR.mjs";
2
+ import { T as Dt, e as yt, f as Lt, Z as Ft, h as Pt, j as Mt, l as kt, n as Bt, V as It, p as Ht, q as Gt, r as Vt, a3 as Nt, I as Ut, d as Zt, W as _t, P as zt, s as Wt, a0 as jt, a1 as $t, J as Kt, K as Jt, U as Xt, a2 as qt, L as Qt, Q as Yt, M as eo, _ as so, N as to, S as oo, R as no, u as io, v as ro, O as ao, w as ho, x as co, y as mo, $ as lo, z as po, A as uo, B as Co, C as vo, D as go, G as wo, E as Eo, F as Ro, X as To, Y as bo, H as Oo } from "./color-scale-utils-C1aV7-HR.mjs";
3
3
  import { i as So } from "./index-CLdAL6df.mjs";
4
4
  import { ChartModel as Re, ChartModelCartesian as Te, AlluvialChartModel as be, BoxplotChartModel as Oe, BulletChartModel as fe, ChoroplethModel as Se, CirclePackChartModel as Ae, PieChartModel as xe, GaugeChartModel as De, HeatmapModel as ye, 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 { a0 as j, r as i, L as Z, q as h, z as A, u as N, e as $, S as Ie, v as K, H as p, l as R } from "./axis-scales-CFRGPXH8.mjs";
6
6
  import { A as xo, a as Do, b as yo, c as Lo, d as Fo, f as Po, B as Mo, g as ko, C as Bo, h as Io, i as Ho, j as Go, k as Vo, m as No, n as Uo, D as Zo, o as _o, G as zo, p as Wo, s as jo, t as $o, w as Ko, M as Jo, x as Xo, P as qo, y as Qo, R as Yo, F as en, I as sn, T as tn, J as on, K as nn, N as rn, O as an, Q as hn, U as cn, V as mn, W as ln, X as pn, Y as dn, Z as un, _ as Cn, $ as vn } from "./axis-scales-CFRGPXH8.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 u, 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 Xe, D as qe, 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-Bn8eKXA6.mjs";
8
- import { X as wn, a8 as En, a9 as Rn, a7 as Tn, Y as bn, _ as On, $ as fn, a0 as Sn, a1 as An, a2 as xn, a3 as Dn, a4 as yn, a5 as Ln, a6 as Fn } from "./choropleth-Bn8eKXA6.mjs";
9
- import { b as ms, T as ls, F as ps, E as ds, C as us, Z as Cs, a as vs, c as gs, f as ws } from "./index-CHbrPDmO.mjs";
10
- import { G as Es, D as Rs } from "./angle-utils-Dy0Gf7Eb.mjs";
11
- import { S as Mn, d as kn, a as Bn, p as In, b as Hn, r as Gn } from "./angle-utils-Dy0Gf7Eb.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 u, 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 Xe, D as qe, 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-oyaTm15Q.mjs";
8
+ import { X as wn, a8 as En, a9 as Rn, a7 as Tn, Y as bn, _ as On, $ as fn, a0 as Sn, a1 as An, a2 as xn, a3 as Dn, a4 as yn, a5 as Ln, a6 as Fn } from "./choropleth-oyaTm15Q.mjs";
9
+ import { b as ms, T as ls, F as ps, E as ds, C as us, Z as Cs, a as vs, c as gs, f as ws } from "./index-ZmGceN3D.mjs";
10
+ import { G as Es, D as Rs } from "./angle-utils-DQX11pHz.mjs";
11
+ import { S as Mn, d as kn, a as Bn, p as In, b as Hn, r as Gn } from "./angle-utils-DQX11pHz.mjs";
12
12
  import { R as Nn } from "./a11y-ePqvrObQ.mjs";
13
13
  function Ts(t, s, e) {
14
14
  var o = t.length;
@@ -426,6 +426,14 @@ export interface RadarChartOptions extends BaseChartOptions {
426
426
  value: string;
427
427
  };
428
428
  alignment?: Alignments | string;
429
+ /**
430
+ * Optional custom maximum value for the radar chart scale.
431
+ * If not provided, the maximum will be calculated from the data.
432
+ * Note: If the provided maxValue is less than the actual data maximum,
433
+ * the actual data maximum will be used instead to prevent data clipping,
434
+ * and a warning will be logged to the console.
435
+ */
436
+ maxValue?: number;
429
437
  };
430
438
  }
431
439
  /**
@@ -509,6 +517,22 @@ export interface HeatmapChartOptions extends AxisChartOptions {
509
517
  title?: string;
510
518
  type?: ColorLegendType | string;
511
519
  };
520
+ /**
521
+ * Optional explicit domain for the color scale.
522
+ * When not specified, the domain is automatically calculated from the data values.
523
+ */
524
+ colorDomain?: {
525
+ /**
526
+ * Explicit minimum value for the color scale.
527
+ * Values below this will use the minimum color.
528
+ */
529
+ min?: number;
530
+ /**
531
+ * Explicit maximum value for the color scale.
532
+ * Values above this will use the maximum color.
533
+ */
534
+ max?: number;
535
+ };
512
536
  };
513
537
  }
514
538
  /**
@@ -1,5 +1,6 @@
1
1
  import { AxisFlavor } from '../interfaces/enums';
2
2
  import { ChartModelCartesian } from './cartesian-charts';
3
+ import { ColorDomainOptions } from '../services/color-scale-utils';
3
4
  /** The gauge chart model layer */
4
5
  export declare class HeatmapModel extends ChartModelCartesian {
5
6
  axisFlavor: AxisFlavor;
@@ -8,9 +9,14 @@ export declare class HeatmapModel extends ChartModelCartesian {
8
9
  private _ranges;
9
10
  private _matrix;
10
11
  constructor(services: any);
12
+ /**
13
+ * Get the custom color domain options from chart configuration
14
+ * @returns ColorDomainOptions or undefined
15
+ */
16
+ getColorDomainOptions(): ColorDomainOptions | undefined;
11
17
  /**
12
18
  * Get min and maximum value of the display data
13
- * @returns Array consisting of smallest and largest values in data
19
+ * @returns Array consisting of smallest and largest values in data
14
20
  */
15
21
  getValueDomain(): number[];
16
22
  /**