@carbon/charts 0.41.98-d3v5-latest.0 → 0.41.101
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 +32 -0
- package/build/src/components/axes/toolbar.d.ts +2 -2
- package/build/src/components/axes/zoom-bar.d.ts +1 -1
- package/build/src/components/essentials/threshold.d.ts +4 -1
- package/build/src/components/graphs/area-stacked.d.ts +0 -1
- package/build/src/interfaces/axis-scales.d.ts +2 -2
- package/build/src/model.d.ts +1 -4
- package/build/src/services/essentials/transitions.d.ts +8 -1
- package/build/src/tools.d.ts +2 -2
- package/bundle.js +1 -1
- package/components/axes/axis.js +28 -7
- package/components/axes/axis.js.map +1 -1
- package/components/axes/grid-brush.js +9 -5
- package/components/axes/grid-brush.js.map +1 -1
- package/components/axes/grid.js +20 -4
- package/components/axes/grid.js.map +1 -1
- package/components/axes/ruler.js +11 -14
- package/components/axes/ruler.js.map +1 -1
- package/components/axes/toolbar.d.ts +2 -2
- package/components/axes/toolbar.js +5 -5
- package/components/axes/toolbar.js.map +1 -1
- package/components/axes/zero-line.js +9 -1
- package/components/axes/zero-line.js.map +1 -1
- package/components/axes/zoom-bar.d.ts +1 -1
- package/components/axes/zoom-bar.js +4 -5
- package/components/axes/zoom-bar.js.map +1 -1
- package/components/essentials/legend.js +11 -7
- package/components/essentials/legend.js.map +1 -1
- package/components/essentials/threshold.d.ts +4 -1
- package/components/essentials/threshold.js +30 -9
- package/components/essentials/threshold.js.map +1 -1
- package/components/essentials/title.js +12 -6
- package/components/essentials/title.js.map +1 -1
- package/components/essentials/tooltip.js +5 -2
- package/components/essentials/tooltip.js.map +1 -1
- package/components/graphs/area-stacked.d.ts +0 -1
- package/components/graphs/area-stacked.js +8 -9
- package/components/graphs/area-stacked.js.map +1 -1
- package/components/graphs/area.js +8 -6
- package/components/graphs/area.js.map +1 -1
- package/components/graphs/bar-grouped.js +33 -10
- package/components/graphs/bar-grouped.js.map +1 -1
- package/components/graphs/bar-simple.js +20 -7
- package/components/graphs/bar-simple.js.map +1 -1
- package/components/graphs/bar-stacked.js +20 -6
- package/components/graphs/bar-stacked.js.map +1 -1
- package/components/graphs/boxplot.js +80 -17
- package/components/graphs/boxplot.js.map +1 -1
- package/components/graphs/bubble.js +8 -1
- package/components/graphs/bubble.js.map +1 -1
- package/components/graphs/bullet.js +45 -10
- package/components/graphs/bullet.js.map +1 -1
- package/components/graphs/circle-pack.js +13 -6
- package/components/graphs/circle-pack.js.map +1 -1
- package/components/graphs/donut.js +9 -1
- package/components/graphs/donut.js.map +1 -1
- package/components/graphs/gauge.js +8 -4
- package/components/graphs/gauge.js.map +1 -1
- package/components/graphs/line.js +9 -7
- package/components/graphs/line.js.map +1 -1
- package/components/graphs/lollipop.js +8 -6
- package/components/graphs/lollipop.js.map +1 -1
- package/components/graphs/meter.js +16 -2
- package/components/graphs/meter.js.map +1 -1
- package/components/graphs/pie.js +23 -8
- package/components/graphs/pie.js.map +1 -1
- package/components/graphs/radar.js +12 -5
- package/components/graphs/radar.js.map +1 -1
- package/components/graphs/scatter.js +20 -6
- package/components/graphs/scatter.js.map +1 -1
- package/components/graphs/treemap.js +28 -7
- package/components/graphs/treemap.js.map +1 -1
- package/components/graphs/wordcloud.js +11 -5
- package/components/graphs/wordcloud.js.map +1 -1
- package/demo/create-codesandbox.js +1 -1
- package/demo/create-codesandbox.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/line.js +1 -1
- package/demo/data/line.js.map +1 -1
- package/demo/tsconfig.tsbuildinfo +271 -2350
- package/interfaces/axis-scales.d.ts +2 -2
- package/interfaces/axis-scales.js.map +1 -1
- package/model.d.ts +1 -4
- package/model.js +4 -5
- package/model.js.map +1 -1
- package/package.json +4 -4
- package/services/essentials/transitions.d.ts +8 -1
- package/services/essentials/transitions.js +13 -1
- package/services/essentials/transitions.js.map +1 -1
- package/services/scales-cartesian.js +2 -3
- package/services/scales-cartesian.js.map +1 -1
- package/tools.d.ts +2 -2
- package/tools.js +11 -5
- package/tools.js.map +1 -1
- package/tsconfig.tsbuildinfo +203 -636
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/LICENSE +0 -201
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/README.md +0 -154
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/es/index.js +0 -287
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/lib/index.js +0 -410
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/package.json +0 -51
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/scss/colors.scss +0 -12
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/scss/index.scss +0 -12
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/scss/mixins.scss +0 -646
- package/styles/vendor/@carbon/themes/node_modules/@carbon/colors/umd/index.js +0 -416
- package/styles/vendor/carbon-components/src/components/.DS_Store +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.41.101](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.100...v0.41.101) (2021-08-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @carbon/charts
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.41.100](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.99...v0.41.100) (2021-08-04)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @carbon/charts
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [0.41.99](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.98...v0.41.99) (2021-08-04)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @carbon/charts
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [0.41.98](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.97...v0.41.98) (2021-08-04)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @carbon/charts
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
## [0.41.97](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.96...v0.41.97) (2021-08-04)
|
|
7
39
|
|
|
8
40
|
**Note:** Version bump only for package @carbon/charts
|
|
@@ -12,7 +12,7 @@ export declare class Toolbar extends Component {
|
|
|
12
12
|
updateOverflowMenu(show: boolean): void;
|
|
13
13
|
focusOnPreviousEnabledMenuItem(currentItemIndex: any): void;
|
|
14
14
|
focusOnNextEnabledMenuItem(currentItemIndex: any): void;
|
|
15
|
-
toggleOverflowMenu(): void;
|
|
15
|
+
toggleOverflowMenu(event: any): void;
|
|
16
16
|
getControlConfigs(): {
|
|
17
17
|
buttonList: any[];
|
|
18
18
|
overflowMenuItemList?: undefined;
|
|
@@ -25,7 +25,7 @@ export declare class Toolbar extends Component {
|
|
|
25
25
|
id: string;
|
|
26
26
|
shouldBeDisabled: () => boolean;
|
|
27
27
|
iconSVGContent: string;
|
|
28
|
-
clickFunction: () => void;
|
|
28
|
+
clickFunction: (event: any) => void;
|
|
29
29
|
};
|
|
30
30
|
getControlConfigByType(controlType: ToolbarControlTypes): any;
|
|
31
31
|
getControlIconByType(controlType: ToolbarControlTypes): "<polygon points=\"19 13 15 13 15 9 13 9 13 13 9 13 9 15 13 15 13 19 15 19 15 15 19 15 19 13\"/>\n\t\t\t\t\t\t<path d=\"M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z\"/>" | "<rect x=\"9\" y=\"13\" width=\"10\" height=\"2\"/>\n\t\t\t\t\t\t<path d=\"M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z\"/>" | "<path d=\"M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z\"/>" | "<polygon points=\"21 2 21 4 26.59 4 17 13.58 18.41 15 28 5.41 28 11 30 11 30 2 21 2\"/><polygon points=\"15 18.42 13.59 17 4 26.59 4 21 2 21 2 30 11 30 11 28 5.41 28 15 18.42\"/>" | "<rect x=\"4\" y=\"6\" width=\"18\" height=\"2\"/><rect x=\"4\" y=\"12\" width=\"18\" height=\"2\"/><rect x=\"4\" y=\"18\" width=\"18\" height=\"2\"/><rect x=\"4\" y=\"24\" width=\"18\" height=\"2\"/><rect x=\"26\" y=\"6\" width=\"2\" height=\"2\"/><rect x=\"26\" y=\"12\" width=\"2\" height=\"2\"/><rect x=\"26\" y=\"18\" width=\"2\" height=\"2\"/><rect x=\"26\" y=\"24\" width=\"2\" height=\"2\"/>";
|
|
@@ -15,7 +15,7 @@ export declare class ZoomBar extends Component {
|
|
|
15
15
|
init(): void;
|
|
16
16
|
render(animate?: boolean): void;
|
|
17
17
|
addBrushEventListener(zoomDomain: any, axesLeftMargin: any, width: any): void;
|
|
18
|
-
handleBrushedEvent(zoomDomain: any, scale: any, selection: any): void;
|
|
18
|
+
handleBrushedEvent(event: any, zoomDomain: any, scale: any, selection: any): void;
|
|
19
19
|
updateBrushHandle(svg: any, selection: any, domain: any): void;
|
|
20
20
|
updateSliderSelectedArea(selection: any): void;
|
|
21
21
|
renderZoomBarArea(container: any, querySelector: any, data: any, clipId: any): void;
|
|
@@ -11,6 +11,9 @@ export declare class Threshold extends Component {
|
|
|
11
11
|
render(animate?: boolean): void;
|
|
12
12
|
getFormattedValue(datum: any): any;
|
|
13
13
|
appendThresholdLabel(): void;
|
|
14
|
-
setThresholdLabelPosition(datum
|
|
14
|
+
setThresholdLabelPosition({ event, datum }: {
|
|
15
|
+
event: any;
|
|
16
|
+
datum: any;
|
|
17
|
+
}): void;
|
|
15
18
|
addEventListeners(): void;
|
|
16
19
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ScaleTypes, TickRotations, AxisTitleOrientations } from './enums';
|
|
2
|
-
import { AxisDomain } from 'd3';
|
|
3
|
-
import { Locale } from 'date-fns';
|
|
4
2
|
import { ThresholdOptions } from './components';
|
|
5
3
|
import { TruncationOptions } from './truncation';
|
|
4
|
+
import { AxisDomain } from 'd3-axis';
|
|
5
|
+
import { Locale } from 'date-fns';
|
|
6
6
|
/**
|
|
7
7
|
* options to configure a scale. not all options are used by all scales
|
|
8
8
|
*/
|
package/build/src/model.d.ts
CHANGED
|
@@ -85,10 +85,7 @@ export declare class ChartModel {
|
|
|
85
85
|
protected getTabularData(data: any): any[];
|
|
86
86
|
protected sanitize(data: any): any;
|
|
87
87
|
protected updateAllDataGroups(): void;
|
|
88
|
-
protected generateDataGroups(data: any):
|
|
89
|
-
name: string;
|
|
90
|
-
status: number;
|
|
91
|
-
}[];
|
|
88
|
+
protected generateDataGroups(data: any): any;
|
|
92
89
|
protected setCustomColorScale(): void;
|
|
93
90
|
protected setColorClassNames(): void;
|
|
94
91
|
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { Service } from '../service';
|
|
2
2
|
import { Transition } from 'd3-transition';
|
|
3
|
+
interface setupTransitionConfigs {
|
|
4
|
+
transition?: any;
|
|
5
|
+
name?: string;
|
|
6
|
+
animate?: boolean;
|
|
7
|
+
}
|
|
3
8
|
export declare class Transitions extends Service {
|
|
4
9
|
pendingTransitions: {};
|
|
5
10
|
init(): void;
|
|
6
|
-
getTransition(name
|
|
11
|
+
getTransition(name: string, animate?: boolean): Transition<any, any, any, any>;
|
|
7
12
|
getInstantTransition(name?: string): Transition<any, any, any, any>;
|
|
13
|
+
setupTransition({ transition: t, name, animate }: setupTransitionConfigs): any;
|
|
8
14
|
getPendingTransitions(): {};
|
|
9
15
|
}
|
|
16
|
+
export {};
|
package/build/src/tools.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CartesianOrientations } from './interfaces';
|
|
2
|
-
import { Numeric } from 'd3';
|
|
2
|
+
import { Numeric } from 'd3-array';
|
|
3
3
|
export declare namespace Tools {
|
|
4
4
|
export const debounce: any;
|
|
5
5
|
export const clone: any;
|
|
@@ -15,7 +15,7 @@ export declare namespace Tools {
|
|
|
15
15
|
export const kebabCase: any;
|
|
16
16
|
export const fromPairs: any;
|
|
17
17
|
export const some: any;
|
|
18
|
-
export function debounceWithD3MousePosition(fn: any, delay: any,
|
|
18
|
+
export function debounceWithD3MousePosition(fn: any, delay: any, holder: any): () => void;
|
|
19
19
|
/**
|
|
20
20
|
* Returns default chart options merged with provided options,
|
|
21
21
|
* with special cases for axes.
|