@carbon/charts 1.15.6 → 1.15.8
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/{_baseEach-BxXSF0fB.mjs → _baseEach-Ch85zB0O.mjs} +2 -2
- package/dist/{_baseEach-BxXSF0fB.mjs.map → _baseEach-Ch85zB0O.mjs.map} +1 -1
- package/dist/{angle-utils-CGNQcrjg.mjs → angle-utils-GQFx3vKM.mjs} +2 -2
- package/dist/{angle-utils-CGNQcrjg.mjs.map → angle-utils-GQFx3vKM.mjs.map} +1 -1
- 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-DgRtqF2B.mjs → choropleth-DdBUe80H.mjs} +1273 -1273
- package/dist/choropleth-DdBUe80H.mjs.map +1 -0
- package/dist/{color-scale-utils-CbAVUUep.mjs → color-scale-utils-CiW9fERh.mjs} +55 -45
- package/dist/{color-scale-utils-CbAVUUep.mjs.map → color-scale-utils-CiW9fERh.mjs.map} +1 -1
- 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 +42 -42
- package/dist/demo/index.mjs.map +1 -1
- 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 +259 -266
- package/dist/index.mjs.map +1 -1
- 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/index.mjs +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/index.mjs +3 -3
- 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 +20 -20
- package/dist/umd/bundle.umd.js.map +1 -1
- package/dist/{wordcloud-DNFY5X97.mjs → wordcloud-DQKXuKDM.mjs} +3 -3
- package/dist/{wordcloud-DNFY5X97.mjs.map → wordcloud-DQKXuKDM.mjs.map} +1 -1
- package/dist/{zoom-DlSAWtwE.mjs → zoom-DyHfBf_y.mjs} +224 -192
- package/dist/zoom-DyHfBf_y.mjs.map +1 -0
- package/package.json +13 -13
- package/dist/choropleth-DgRtqF2B.mjs.map +0 -1
- package/dist/zoom-DlSAWtwE.mjs.map +0 -1
|
@@ -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/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as l, B as o, a as r, C as d, b as t, c as C, d as M, e as s, G as h, H as i, M as p, P as u, R as B, T as c, f as m, W as n } from "../wordcloud-
|
|
1
|
+
import { A as l, B as o, a as r, C as d, b as t, c as C, d as M, e as s, G as h, H as i, M as p, P as u, R as B, T as c, f as m, W as n } from "../wordcloud-DQKXuKDM.mjs";
|
|
2
2
|
export {
|
|
3
3
|
l as AlluvialChartModel,
|
|
4
4
|
o as BoxplotChartModel,
|
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;
|
package/dist/services/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as e, c as r, f as i, b as o, g as t, a as l, d as m, i as n } from "../color-scale-utils-
|
|
2
|
-
import { D as c, G as d, S as C, d as f, a as g, p, b as D, r as S } from "../angle-utils-
|
|
3
|
-
import { C as b, b as E, a as x, E as I, F as M, T as P, Z } from "../zoom-
|
|
1
|
+
import { T as e, c as r, f as i, b as o, g as t, a as l, d as m, i as n } from "../color-scale-utils-CiW9fERh.mjs";
|
|
2
|
+
import { D as c, G as d, S as C, d as f, a as g, p, b as D, r as S } from "../angle-utils-GQFx3vKM.mjs";
|
|
3
|
+
import { C as b, b as E, a as x, E as I, F as M, T as P, Z } from "../zoom-DyHfBf_y.mjs";
|
|
4
4
|
export {
|
|
5
5
|
b as CanvasZoom,
|
|
6
6
|
E as CartesianScales,
|
|
@@ -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,
|