@carbon/charts 1.15.5 → 1.15.7
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/CHANGELOG.md +22 -0
- package/dist/axis-chart.d.ts +6 -6
- package/dist/chart.d.ts +6 -6
- package/dist/charts/alluvial.d.ts +4 -4
- package/dist/charts/area-stacked.d.ts +3 -3
- package/dist/charts/area.d.ts +3 -3
- package/dist/charts/bar-grouped.d.ts +3 -3
- package/dist/charts/bar-simple.d.ts +3 -3
- package/dist/charts/bar-stacked.d.ts +3 -3
- package/dist/charts/boxplot.d.ts +4 -4
- package/dist/charts/bubble.d.ts +3 -3
- package/dist/charts/bullet.d.ts +4 -4
- package/dist/charts/choropleth.d.ts +7 -7
- package/dist/charts/circle-pack.d.ts +4 -4
- package/dist/charts/combo.d.ts +3 -3
- package/dist/charts/donut.d.ts +3 -3
- package/dist/charts/gauge.d.ts +4 -4
- package/dist/charts/heatmap.d.ts +7 -7
- package/dist/charts/histogram.d.ts +4 -4
- package/dist/charts/index.d.ts +24 -24
- package/dist/charts/line.d.ts +3 -3
- package/dist/charts/lollipop.d.ts +3 -3
- package/dist/charts/meter.d.ts +4 -4
- package/dist/charts/pie.d.ts +4 -4
- package/dist/charts/radar.d.ts +4 -4
- package/dist/charts/scatter.d.ts +3 -3
- package/dist/charts/tree.d.ts +4 -4
- package/dist/charts/treemap.d.ts +4 -4
- package/dist/charts/wordcloud.d.ts +4 -4
- package/dist/{choropleth-C_tUN7Ur.mjs → choropleth-BjSHC_bZ.mjs} +1274 -1274
- package/dist/choropleth-BjSHC_bZ.mjs.map +1 -0
- package/dist/components/axes/axis.d.ts +5 -5
- package/dist/components/axes/chart-clip.d.ts +2 -2
- package/dist/components/axes/grid-brush.d.ts +1 -1
- package/dist/components/axes/grid.d.ts +2 -2
- package/dist/components/axes/hover-axis.d.ts +1 -1
- package/dist/components/axes/ruler-binned.d.ts +1 -1
- package/dist/components/axes/ruler.d.ts +2 -2
- package/dist/components/axes/toolbar.d.ts +1 -1
- package/dist/components/axes/two-dimensional-axes.d.ts +2 -2
- package/dist/components/axes/zero-line.d.ts +1 -1
- package/dist/components/axes/zoom-bar.d.ts +3 -3
- package/dist/components/component.d.ts +3 -3
- package/dist/components/essentials/color-scale-legend.d.ts +2 -2
- package/dist/components/essentials/geo-projection.d.ts +1 -1
- package/dist/components/essentials/highlights.d.ts +3 -3
- package/dist/components/essentials/legend.d.ts +1 -1
- package/dist/components/essentials/modal.d.ts +1 -1
- package/dist/components/essentials/threshold.d.ts +3 -3
- package/dist/components/essentials/title-meter.d.ts +1 -1
- package/dist/components/essentials/title.d.ts +1 -1
- package/dist/components/essentials/tooltip.d.ts +3 -3
- package/dist/components/graphs/alluvial.d.ts +1 -1
- package/dist/components/graphs/area-stacked.d.ts +1 -1
- package/dist/components/graphs/area.d.ts +1 -1
- package/dist/components/graphs/bar-grouped.d.ts +2 -2
- package/dist/components/graphs/bar-simple.d.ts +1 -1
- package/dist/components/graphs/bar-stacked.d.ts +1 -1
- package/dist/components/graphs/boxplot.d.ts +1 -1
- package/dist/components/graphs/bubble.d.ts +3 -3
- package/dist/components/graphs/bullet.d.ts +1 -1
- package/dist/components/graphs/circle-pack.d.ts +1 -1
- package/dist/components/graphs/donut.d.ts +1 -1
- package/dist/components/graphs/gauge.d.ts +1 -1
- package/dist/components/graphs/heatmap.d.ts +1 -1
- package/dist/components/graphs/histogram.d.ts +1 -1
- package/dist/components/graphs/line.d.ts +1 -1
- package/dist/components/graphs/lollipop.d.ts +1 -1
- package/dist/components/graphs/meter.d.ts +1 -1
- package/dist/components/graphs/pie.d.ts +1 -1
- package/dist/components/graphs/radar.d.ts +1 -1
- package/dist/components/graphs/scatter-stacked.d.ts +1 -1
- package/dist/components/graphs/scatter.d.ts +2 -2
- package/dist/components/graphs/skeleton-lines.d.ts +1 -1
- package/dist/components/graphs/skeleton.d.ts +1 -1
- package/dist/components/graphs/tree.d.ts +1 -1
- package/dist/components/graphs/treemap.d.ts +1 -1
- package/dist/components/graphs/wordcloud.d.ts +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/components/layout/layout.d.ts +3 -3
- package/dist/configuration-non-customizable.d.ts +1 -1
- package/dist/configuration.d.ts +2 -2
- package/dist/demo/charts/index.d.ts +2 -2
- package/dist/demo/charts/step.d.ts +8 -8
- package/dist/demo/index.mjs +38 -38
- package/dist/demo/styles.css +585 -135
- package/dist/demo/styles.css.map +1 -1
- package/dist/demo/utils/stackblitz/angular.d.ts +1 -1
- package/dist/demo/utils/stackblitz/react.d.ts +1 -1
- package/dist/demo/utils/stackblitz/svelte.d.ts +1 -1
- package/dist/demo/utils/stackblitz/vanilla-js.d.ts +1 -1
- package/dist/demo/utils/stackblitz/vue.d.ts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/interfaces/axis-scales.d.ts +4 -4
- package/dist/interfaces/charts.d.ts +2 -2
- package/dist/interfaces/components.d.ts +2 -2
- package/dist/interfaces/services.d.ts +8 -8
- package/dist/model/cartesian-charts.d.ts +1 -1
- package/dist/model/circle-pack.d.ts +1 -1
- package/dist/model/heatmap.d.ts +1 -1
- package/dist/model/model.d.ts +3 -3
- package/dist/services/color-scale-utils.d.ts +1 -1
- package/dist/services/curves.d.ts +18 -18
- package/dist/services/essentials/dom-utils.d.ts +2 -2
- package/dist/services/essentials/files.d.ts +1 -1
- package/dist/services/essentials/transitions.d.ts +1 -1
- package/dist/services/scales-cartesian.d.ts +3 -3
- package/dist/services/service.d.ts +1 -1
- package/dist/services/time-series.d.ts +1 -1
- package/dist/services/zoom.d.ts +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/umd/bundle.umd.js +15 -15
- package/dist/umd/bundle.umd.js.map +1 -1
- package/package.json +13 -13
- package/dist/choropleth-C_tUN7Ur.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import { i as ho } from "./index-zSuueE1Q.mjs";
|
|
|
4
4
|
import { C as Re, c as Te, A as be, B as Oe, a as fe, d as Se, e as Ae, P as xe, G as ye, H as De, b as Le, M as Fe, R as Pe, T as Me, f as ke, W as Be } from "./wordcloud-DNFY5X97.mjs";
|
|
5
5
|
import { _ as j, r as i, q as c, L as Z, y as A, t as U, e as $, S as Ie, u as K, F as p, l as R } from "./enums-DwsxZqjR.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 fo, n as So, 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 Uo, J as No, K as Zo, N as _o, O as zo, Q as Wo, U as jo, V as $o, W as Ko, Z as Jo, X as Xo, Y as qo } from "./enums-DwsxZqjR.mjs";
|
|
7
|
-
import { a9 as He, L as ee, l as Ge, r as _, T as z, a6 as g, a7 as L, u as se, p as W, C as Ve, a as Ue, q as Ne, o as Ze, c as _e, k as te, v as ze, b as d, G as w, R as B, P as k, w as oe, X as M, _ as C, y as We, Z as I, z as je, D as $e, m as ne, E as Ke, F as Je, a0 as ie, a2 as re, S as N, Y as ae, K as he, a1 as ce, V as Xe, I as qe, J as Qe, N as Ye, B as es, O as ss, $ as ts, Q as os, M as ns, U as is, W as rs, a3 as as, a4 as hs, a5 as cs } from "./choropleth-
|
|
8
|
-
import { A as Yo, x as en, a8 as sn, n as tn, H as on, d as nn, e as rn, f as an, g as hn, h as cn, i as mn, j as ln, s as pn, t as dn } from "./choropleth-
|
|
7
|
+
import { a9 as He, L as ee, l as Ge, r as _, T as z, a6 as g, a7 as L, u as se, p as W, C as Ve, a as Ue, q as Ne, o as Ze, c as _e, k as te, v as ze, b as d, G as w, R as B, P as k, w as oe, X as M, _ as C, y as We, Z as I, z as je, D as $e, m as ne, E as Ke, F as Je, a0 as ie, a2 as re, S as N, Y as ae, K as he, a1 as ce, V as Xe, I as qe, J as Qe, N as Ye, B as es, O as ss, $ as ts, Q as os, M as ns, U as is, W as rs, a3 as as, a4 as hs, a5 as cs } from "./choropleth-BjSHC_bZ.mjs";
|
|
8
|
+
import { A as Yo, x as en, a8 as sn, n as tn, H as on, d as nn, e as rn, f as an, g as hn, h as cn, i as mn, j as ln, s as pn, t as dn } from "./choropleth-BjSHC_bZ.mjs";
|
|
9
9
|
import { C as ms, E as ls, F as ps, T as ds, b as Cs, a as us, Z as vs, f as gs } from "./zoom-DlSAWtwE.mjs";
|
|
10
10
|
import { D as ws, G as Es } from "./angle-utils-CGNQcrjg.mjs";
|
|
11
11
|
import { S as un, d as vn, a as gn, p as wn, b as En, r as Rn } from "./angle-utils-CGNQcrjg.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AxisDomain } from 'd3';
|
|
2
|
-
import { Locale } from 'date-fns/locale';
|
|
3
|
-
import { AxisTitleOrientations, ScaleTypes, TickRotations } from './enums';
|
|
4
|
-
import { ThresholdOptions } from './components';
|
|
5
1
|
import { TruncationOptions } from './truncation';
|
|
2
|
+
import { ThresholdOptions } from './components';
|
|
3
|
+
import { AxisTitleOrientations, ScaleTypes, TickRotations } from './enums';
|
|
4
|
+
import { Locale } from 'date-fns/locale';
|
|
5
|
+
import { AxisDomain } from 'd3';
|
|
6
6
|
export interface BasedAxisOptions {
|
|
7
7
|
/**
|
|
8
8
|
* type of the scale used on axis
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Alignments, ArrowDirections, ChartTheme, ChartTypes, ColorLegendType, DividerStatus, GaugeTypes, Projection, Statuses, TreeTypes } from './enums';
|
|
2
|
-
import { BarOptions, GridOptions, LegendOptions, StackedBarOptions, ToolbarOptions, TooltipOptions, ZoomBarsOptions, Locale, TabularRepCustomizationOptions } from './components';
|
|
3
1
|
import { AxesOptions, AxisOptions, BinnedAxisOptions, ComboChartAxisOptions, TimeScaleOptions } from './axis-scales';
|
|
2
|
+
import { BarOptions, GridOptions, LegendOptions, StackedBarOptions, ToolbarOptions, TooltipOptions, ZoomBarsOptions, Locale, TabularRepCustomizationOptions } from './components';
|
|
3
|
+
import { Alignments, ArrowDirections, ChartTheme, ChartTypes, ColorLegendType, DividerStatus, GaugeTypes, Projection, Statuses, TreeTypes } from './enums';
|
|
4
4
|
/**
|
|
5
5
|
* Base chart options common to any chart
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LayoutGrowth, LegendPositions, Alignments, ToolbarControlTypes, ZoomBarTypes } from './enums';
|
|
2
|
-
import { Component } from '../components';
|
|
3
1
|
import { TruncationOptions } from './truncation';
|
|
2
|
+
import { Component } from '../components';
|
|
3
|
+
import { LayoutGrowth, LegendPositions, Alignments, ToolbarControlTypes, ZoomBarTypes } from './enums';
|
|
4
4
|
/**
|
|
5
5
|
*Locale Options Interface
|
|
6
6
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Transitions } from '../services/essentials/transitions';
|
|
2
|
-
import { DOMUtils } from '../services/essentials/dom-utils';
|
|
3
|
-
import { CartesianScales } from '../services/scales-cartesian';
|
|
4
|
-
import { CanvasZoom } from '../services/canvas-zoom';
|
|
5
|
-
import { Curves } from '../services/curves';
|
|
6
|
-
import { Events } from '../services/essentials/events';
|
|
7
|
-
import { Files } from '../services/essentials/files';
|
|
8
|
-
import { GradientUtils } from '../services/essentials/gradient-utils';
|
|
9
1
|
import { Zoom } from '../services/zoom';
|
|
2
|
+
import { GradientUtils } from '../services/essentials/gradient-utils';
|
|
3
|
+
import { Files } from '../services/essentials/files';
|
|
4
|
+
import { Events } from '../services/essentials/events';
|
|
5
|
+
import { Curves } from '../services/curves';
|
|
6
|
+
import { CanvasZoom } from '../services/canvas-zoom';
|
|
7
|
+
import { CartesianScales } from '../services/scales-cartesian';
|
|
8
|
+
import { DOMUtils } from '../services/essentials/dom-utils';
|
|
9
|
+
import { Transitions } from '../services/essentials/transitions';
|
|
10
10
|
export interface Services {
|
|
11
11
|
canvasZoom?: CanvasZoom;
|
|
12
12
|
cartesianScales?: CartesianScales;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChartModel } from './model';
|
|
2
1
|
import { LegendItemType } from '../interfaces/enums';
|
|
2
|
+
import { ChartModel } from './model';
|
|
3
3
|
/** The charting model layer which includes mainly the chart data and options,
|
|
4
4
|
* as well as some misc. information to be shared among components */
|
|
5
5
|
export declare class CirclePackChartModel extends ChartModel {
|
package/dist/model/heatmap.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AxisFlavor } from '../interfaces/enums';
|
|
2
1
|
import { ChartModelCartesian } from './cartesian-charts';
|
|
2
|
+
import { AxisFlavor } from '../interfaces/enums';
|
|
3
3
|
/** The gauge chart model layer */
|
|
4
4
|
export declare class HeatmapModel extends ChartModelCartesian {
|
|
5
5
|
axisFlavor: AxisFlavor;
|
package/dist/model/model.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ColorClassNameTypes } from '../interfaces/enums';
|
|
2
1
|
import { ChartTabularData } from '../interfaces/model';
|
|
2
|
+
import { ColorClassNameTypes } from '../interfaces/enums';
|
|
3
3
|
export type StackKeysParams = {
|
|
4
4
|
bins?: any;
|
|
5
5
|
groups?: any;
|
|
@@ -42,10 +42,10 @@ export declare class ChartModel {
|
|
|
42
42
|
getActiveDataGroupNames(groups?: any): any;
|
|
43
43
|
private aggregateBinDataByGroup;
|
|
44
44
|
getBinConfigurations(): {
|
|
45
|
-
bins: import(
|
|
45
|
+
bins: import('d3-array').Bin<number, number>[];
|
|
46
46
|
binsDomain: any[];
|
|
47
47
|
};
|
|
48
|
-
getBinnedStackedData(): import(
|
|
48
|
+
getBinnedStackedData(): import('d3').SeriesPoint<{
|
|
49
49
|
[key: string]: number;
|
|
50
50
|
}>[][];
|
|
51
51
|
getGroupedData(groups?: any): {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function getDomain(data: any): number[];
|
|
2
|
-
export declare function getColorScale(displayData: any, colorOptions: any): import(
|
|
2
|
+
export declare function getColorScale(displayData: any, colorOptions: any): import('d3-scale').ScaleQuantize<number, never>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { Service } from './service';
|
|
2
2
|
export declare class Curves extends Service {
|
|
3
3
|
curveTypes: {
|
|
4
|
-
curveLinear: import(
|
|
5
|
-
curveLinearClosed: import(
|
|
6
|
-
curveBasis: import(
|
|
7
|
-
curveBasisClosed: import(
|
|
8
|
-
curveBasisOpen: import(
|
|
9
|
-
curveBundle: import(
|
|
10
|
-
curveCardinal: import(
|
|
11
|
-
curveCardinalClosed: import(
|
|
12
|
-
curveCardinalOpen: import(
|
|
13
|
-
curveCatmullRom: import(
|
|
14
|
-
curveCatmullRomClosed: import(
|
|
15
|
-
curveCatmullRomOpen: import(
|
|
16
|
-
curveMonotoneX: import(
|
|
17
|
-
curveMonotoneY: import(
|
|
18
|
-
curveNatural: import(
|
|
19
|
-
curveStep: import(
|
|
20
|
-
curveStepAfter: import(
|
|
21
|
-
curveStepBefore: import(
|
|
4
|
+
curveLinear: import('d3').CurveFactory;
|
|
5
|
+
curveLinearClosed: import('d3').CurveFactory;
|
|
6
|
+
curveBasis: import('d3').CurveFactory;
|
|
7
|
+
curveBasisClosed: import('d3').CurveFactory;
|
|
8
|
+
curveBasisOpen: import('d3').CurveFactory;
|
|
9
|
+
curveBundle: import('d3').CurveBundleFactory;
|
|
10
|
+
curveCardinal: import('d3').CurveCardinalFactory;
|
|
11
|
+
curveCardinalClosed: import('d3').CurveCardinalFactory;
|
|
12
|
+
curveCardinalOpen: import('d3').CurveCardinalFactory;
|
|
13
|
+
curveCatmullRom: import('d3').CurveCatmullRomFactory;
|
|
14
|
+
curveCatmullRomClosed: import('d3').CurveCatmullRomFactory;
|
|
15
|
+
curveCatmullRomOpen: import('d3').CurveCatmullRomFactory;
|
|
16
|
+
curveMonotoneX: import('d3').CurveFactory;
|
|
17
|
+
curveMonotoneY: import('d3').CurveFactory;
|
|
18
|
+
curveNatural: import('d3').CurveFactory;
|
|
19
|
+
curveStep: import('d3').CurveFactory;
|
|
20
|
+
curveStepAfter: import('d3').CurveFactory;
|
|
21
|
+
curveStepBefore: import('d3').CurveFactory;
|
|
22
22
|
};
|
|
23
23
|
getD3Curve(): any;
|
|
24
24
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Selection } from 'd3';
|
|
2
|
-
import { ChartModel } from '../../model/model';
|
|
3
1
|
import { Service } from '../service';
|
|
2
|
+
import { ChartModel } from '../../model/model';
|
|
3
|
+
import { Selection } from 'd3';
|
|
4
4
|
export interface Dimensions {
|
|
5
5
|
height: number;
|
|
6
6
|
width: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Service } from '../service';
|
|
2
1
|
import { ChartModel } from '../../model/model';
|
|
2
|
+
import { Service } from '../service';
|
|
3
3
|
export declare class Files extends Service {
|
|
4
4
|
constructor(model: ChartModel, services: any);
|
|
5
5
|
downloadCSV(content: any, filename: string): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ScaleTime, ScaleBand, ScaleLinear } from 'd3';
|
|
2
|
-
import { Service } from './service';
|
|
3
|
-
import { AxisPositions, CartesianOrientations, ScaleTypes } from '../interfaces/enums';
|
|
4
1
|
import { ThresholdOptions } from '../interfaces/components';
|
|
2
|
+
import { AxisPositions, CartesianOrientations, ScaleTypes } from '../interfaces/enums';
|
|
3
|
+
import { Service } from './service';
|
|
4
|
+
import { ScaleTime, ScaleBand, ScaleLinear } from 'd3';
|
|
5
5
|
export type ScaleFunction = ScaleTime<number, number, never> | ScaleBand<string> | ScaleLinear<number, number, never>;
|
|
6
6
|
export declare class CartesianScales extends Service {
|
|
7
7
|
protected scaleTypes: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Locale } from '../interfaces/components';
|
|
2
1
|
import { TimeIntervalFormats, TimeScaleOptions } from '../interfaces/axis-scales';
|
|
2
|
+
import { Locale } from '../interfaces/components';
|
|
3
3
|
export declare const TIME_INTERVALS: (string | number)[][];
|
|
4
4
|
export declare function isTickPrimary(tick: number, i: number, allTicks: Array<number>, interval: string, showDayName: boolean): boolean;
|
|
5
5
|
export declare function formatTick(tick: number, i: number, allTicks: Array<number>, interval: string, timeScaleOptions: TimeScaleOptions, localeOptions?: Locale): string;
|
package/dist/services/zoom.d.ts
CHANGED
package/dist/tools.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Numeric } from 'd3';
|
|
2
1
|
import { CartesianOrientations } from './interfaces/enums';
|
|
2
|
+
import { Numeric } from 'd3';
|
|
3
3
|
export declare function debounceWithD3MousePosition(fn: any, delay: number, holder: any): (...args: any) => void;
|
|
4
4
|
/**
|
|
5
5
|
* Returns default chart options merged with provided options,
|