@carbon/charts 0.41.73 → 0.41.77

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 (64) hide show
  1. package/CHANGELOG.md +37 -4
  2. package/build/demo/data/bullet.d.ts +0 -6
  3. package/build/demo/data/circle-pack.d.ts +15 -0
  4. package/build/src/components/graphs/circle-pack.d.ts +1 -1
  5. package/build/src/configuration-non-customizable.d.ts +8 -1
  6. package/build/src/interfaces/charts.d.ts +1 -0
  7. package/build/src/interfaces/enums.d.ts +1 -1
  8. package/build/src/model-circle-pack.d.ts +2 -2
  9. package/bundle.js +1 -1
  10. package/components/essentials/legend.js +15 -15
  11. package/components/essentials/legend.js.map +1 -1
  12. package/components/graphs/circle-pack.d.ts +1 -1
  13. package/components/graphs/circle-pack.js +14 -4
  14. package/components/graphs/circle-pack.js.map +1 -1
  15. package/components/graphs/pie.js +3 -3
  16. package/components/graphs/pie.js.map +1 -1
  17. package/configuration-non-customizable.d.ts +8 -1
  18. package/configuration-non-customizable.js +26 -1
  19. package/configuration-non-customizable.js.map +1 -1
  20. package/configuration.js +23 -2
  21. package/configuration.js.map +1 -1
  22. package/demo/data/bullet.d.ts +0 -6
  23. package/demo/data/bullet.js +0 -20
  24. package/demo/data/bullet.js.map +1 -1
  25. package/demo/data/bundle.js +1 -1
  26. package/demo/data/circle-pack.d.ts +15 -0
  27. package/demo/data/circle-pack.js +15 -0
  28. package/demo/data/circle-pack.js.map +1 -1
  29. package/demo/data/index.js +5 -0
  30. package/demo/data/index.js.map +1 -1
  31. package/demo/styles.css +2 -12
  32. package/demo/styles.css.map +1 -1
  33. package/demo/styles.min.css +1 -1
  34. package/demo/styles.min.css.map +1 -1
  35. package/demo/tsconfig.tsbuildinfo +5 -5
  36. package/interfaces/charts.d.ts +1 -0
  37. package/interfaces/charts.js.map +1 -1
  38. package/interfaces/enums.d.ts +1 -1
  39. package/interfaces/enums.js +10 -10
  40. package/interfaces/enums.js.map +1 -1
  41. package/model-circle-pack.d.ts +2 -2
  42. package/model-circle-pack.js +2 -2
  43. package/model-circle-pack.js.map +1 -1
  44. package/package.json +1 -1
  45. package/styles/graphs/_circle-pack.scss +0 -4
  46. package/styles-g10.css +0 -3
  47. package/styles-g10.css.map +1 -1
  48. package/styles-g10.min.css +1 -1
  49. package/styles-g10.min.css.map +1 -1
  50. package/styles-g100.css +0 -3
  51. package/styles-g100.css.map +1 -1
  52. package/styles-g100.min.css +1 -1
  53. package/styles-g100.min.css.map +1 -1
  54. package/styles-g90.css +0 -3
  55. package/styles-g90.css.map +1 -1
  56. package/styles-g90.min.css +1 -1
  57. package/styles-g90.min.css.map +1 -1
  58. package/styles.css +0 -3
  59. package/styles.css.map +1 -1
  60. package/styles.min.css +1 -1
  61. package/styles.min.css.map +1 -1
  62. package/tools.js +8 -8
  63. package/tools.js.map +1 -1
  64. package/tsconfig.tsbuildinfo +29 -28
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
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.73](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.72...v0.41.73) (2021-06-24)
6
+ ## [0.41.77](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.76...v0.41.77) (2021-06-25)
7
7
 
8
8
  **Note:** Version bump only for package @carbon/charts
9
9
 
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- ## [0.41.72](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.71...v0.41.72) (2021-06-23)
14
+ ## [0.41.76](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.75...v0.41.76) (2021-06-24)
15
15
 
16
16
  **Note:** Version bump only for package @carbon/charts
17
17
 
@@ -19,7 +19,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
19
19
 
20
20
 
21
21
 
22
- ## [0.41.71](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.70...v0.41.71) (2021-06-21)
22
+ # Change Log
23
+
24
+ All notable changes to this project will be documented in this file. See
25
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
26
+
27
+ ## [0.41.75](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.74...v0.41.75) (2021-06-24)
23
28
 
24
29
  **Note:** Version bump only for package @carbon/charts
25
30
 
@@ -27,7 +32,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
27
32
 
28
33
 
29
34
 
30
- ## [0.41.70](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.69...v0.41.70) (2021-06-21)
35
+ ## [0.41.74](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.73...v0.41.74) (2021-06-24)
31
36
 
32
37
  **Note:** Version bump only for package @carbon/charts
33
38
 
@@ -35,6 +40,34 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
35
40
 
36
41
 
37
42
 
43
+ ## [0.41.73](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.72...v0.41.73) (2021-06-24)
44
+
45
+ **Note:** Version bump only for package @carbon/charts
46
+
47
+
48
+
49
+
50
+
51
+ ## [0.41.72](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.71...v0.41.72) (2021-06-23)
52
+
53
+ **Note:** Version bump only for package @carbon/charts
54
+
55
+
56
+
57
+
58
+
59
+ ## [0.41.71](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.70...v0.41.71) (2021-06-21)
60
+
61
+ **Note:** Version bump only for package @carbon/charts
62
+
63
+
64
+
65
+
66
+
67
+ ## [0.41.70](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.69...v0.41.70) (2021-06-21)
68
+
69
+ **Note:** Version bump only for package @carbon/charts
70
+
38
71
  # Change Log
39
72
 
40
73
  All notable changes to this project will be documented in this file. See
@@ -21,10 +21,4 @@ export declare const basicBulletOptions: {
21
21
  mapsTo: string;
22
22
  };
23
23
  };
24
- legend: {
25
- additionalItems: {
26
- type: string;
27
- name: string;
28
- }[];
29
- };
30
24
  };
@@ -12,6 +12,21 @@ export declare const circlePackTwoLevelOptions: {
12
12
  enabled: boolean;
13
13
  };
14
14
  };
15
+ export declare const circlePackTwoLevelCustomColorsOptions: {
16
+ experimental: string;
17
+ title: string;
18
+ canvasZoom: {
19
+ enabled: boolean;
20
+ };
21
+ color: {
22
+ scale: {
23
+ 'Asia': string;
24
+ 'South America': string;
25
+ 'North America': string;
26
+ 'Europe': string;
27
+ };
28
+ };
29
+ };
15
30
  export declare const circlePackSingleOptions: {
16
31
  experimental: string;
17
32
  title: string;
@@ -4,7 +4,7 @@ export declare class CirclePack extends Component {
4
4
  focal: any;
5
5
  render(animate?: boolean): void;
6
6
  unhighlightChildren(childData: any): void;
7
- highlightChildren(childData: any, classname?: any): void;
7
+ highlightChildren(childData: any): void;
8
8
  getZoomClass(node: any): "focal" | "non-focal";
9
9
  addLegendListeners(): void;
10
10
  removeBackgroundListeners(): void;
@@ -1,4 +1,4 @@
1
- import { ZoomBarTypes } from './interfaces';
1
+ import { ZoomBarTypes, LegendItemTypes } from './interfaces';
2
2
  import { easeCubicInOut } from 'd3-ease';
3
3
  export declare const area: {
4
4
  opacity: {
@@ -27,6 +27,9 @@ export declare const canvasZoomSettings: {
27
27
  export declare const circlePack: {
28
28
  circles: {
29
29
  fillOpacity: number;
30
+ hover: {
31
+ stroke: string;
32
+ };
30
33
  };
31
34
  padding: {
32
35
  mainGroup: number;
@@ -219,3 +222,7 @@ export declare const zoomBar: {
219
222
  handleBarWidth: number;
220
223
  handleBarHeight: number;
221
224
  };
225
+ export declare const defaultLegendAdditionalItems: {
226
+ type: LegendItemTypes;
227
+ name: string;
228
+ }[];
@@ -265,6 +265,7 @@ export interface PieChartOptions extends BaseChartOptions {
265
265
  enabled?: Boolean;
266
266
  };
267
267
  alignment?: Alignments;
268
+ sortFunction?: (a: any, b: any) => number;
268
269
  };
269
270
  }
270
271
  /**
@@ -192,7 +192,7 @@ export declare enum AxisTitleOrientations {
192
192
  /**
193
193
  * enum of legend item type
194
194
  */
195
- export declare enum LegendItemType {
195
+ export declare enum LegendItemTypes {
196
196
  CHECKBOX = "checkbox",
197
197
  RADIUS = "radius",
198
198
  AREA = "area",
@@ -1,5 +1,5 @@
1
1
  import { ChartModel } from './model';
2
- import { LegendItemType } from './interfaces/enums';
2
+ import { LegendItemTypes } from './interfaces/enums';
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 {
@@ -12,7 +12,7 @@ export declare class CirclePackChartModel extends ChartModel {
12
12
  } | {
13
13
  legend: {
14
14
  additionalItems: {
15
- type: LegendItemType;
15
+ type: LegendItemTypes;
16
16
  name: string;
17
17
  }[];
18
18
  };