@carbon/charts 0.41.0 → 0.41.1

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 (74) hide show
  1. package/CHANGELOG.md +16 -20
  2. package/build/demo/data/index.d.ts +6 -0
  3. package/build/demo/data/treemap.d.ts +15 -0
  4. package/build/src/charts/index.d.ts +1 -0
  5. package/build/src/charts/treemap.d.ts +6 -0
  6. package/build/src/components/graphs/treemap.d.ts +9 -0
  7. package/build/src/components/index.d.ts +1 -0
  8. package/build/src/configuration.d.ts +2 -1
  9. package/build/src/interfaces/charts.d.ts +5 -0
  10. package/build/src/interfaces/events.d.ts +9 -0
  11. package/bundle.js +1 -1
  12. package/charts/index.d.ts +1 -0
  13. package/charts/index.js +1 -0
  14. package/charts/index.js.map +1 -1
  15. package/charts/treemap.d.ts +6 -0
  16. package/charts/treemap.js +41 -0
  17. package/charts/treemap.js.map +1 -0
  18. package/components/axes/two-dimensional-axes.js +4 -0
  19. package/components/axes/two-dimensional-axes.js.map +1 -1
  20. package/components/essentials/legend.js +2 -6
  21. package/components/essentials/legend.js.map +1 -1
  22. package/components/essentials/tooltip.js +7 -4
  23. package/components/essentials/tooltip.js.map +1 -1
  24. package/components/graphs/gauge.js.map +1 -1
  25. package/components/graphs/radar.js.map +1 -1
  26. package/components/graphs/treemap.d.ts +9 -0
  27. package/components/graphs/treemap.js +291 -0
  28. package/components/graphs/treemap.js.map +1 -0
  29. package/components/index.d.ts +1 -0
  30. package/components/index.js +1 -0
  31. package/components/index.js.map +1 -1
  32. package/configuration.d.ts +2 -1
  33. package/configuration.js +10 -1
  34. package/configuration.js.map +1 -1
  35. package/demo/data/bundle.js +1 -1
  36. package/demo/data/index.d.ts +6 -0
  37. package/demo/data/index.js +17 -0
  38. package/demo/data/index.js.map +1 -1
  39. package/demo/data/treemap.d.ts +15 -0
  40. package/demo/data/treemap.js +93 -0
  41. package/demo/data/treemap.js.map +1 -0
  42. package/demo/styles.css +19 -6
  43. package/demo/styles.css.map +1 -1
  44. package/demo/styles.min.css +1 -1
  45. package/demo/styles.min.css.map +1 -1
  46. package/demo/tsconfig.tsbuildinfo +21 -7
  47. package/interfaces/charts.d.ts +5 -0
  48. package/interfaces/charts.js.map +1 -1
  49. package/interfaces/events.d.ts +9 -0
  50. package/interfaces/events.js +10 -0
  51. package/interfaces/events.js.map +1 -1
  52. package/model-gauge.js.map +1 -1
  53. package/package.json +2 -2
  54. package/services/essentials/dom-utils.js +2 -1
  55. package/services/essentials/dom-utils.js.map +1 -1
  56. package/styles/graphs/_treemap.scss +7 -0
  57. package/styles/graphs/index.scss +1 -0
  58. package/styles-g10.css +4 -0
  59. package/styles-g10.css.map +1 -1
  60. package/styles-g10.min.css +1 -1
  61. package/styles-g10.min.css.map +1 -1
  62. package/styles-g100.css +4 -0
  63. package/styles-g100.css.map +1 -1
  64. package/styles-g100.min.css +1 -1
  65. package/styles-g100.min.css.map +1 -1
  66. package/styles-g90.css +4 -0
  67. package/styles-g90.css.map +1 -1
  68. package/styles-g90.min.css +1 -1
  69. package/styles-g90.min.css.map +1 -1
  70. package/styles.css +4 -0
  71. package/styles.css.map +1 -1
  72. package/styles.min.css +1 -1
  73. package/styles.min.css.map +1 -1
  74. package/tsconfig.tsbuildinfo +68 -20
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.0...v0.41.1) (2020-11-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **core:** correct axis title paddings in y-axes ([#873](https://github.com/carbon-design-system/carbon-charts/issues/873)) ([8a27a5f](https://github.com/carbon-design-system/carbon-charts/commit/8a27a5f65cbc55a878e603c9aa96c6f38d6ea10d)), closes [#859](https://github.com/carbon-design-system/carbon-charts/issues/859)
12
+
13
+
14
+
15
+
16
+
17
+ # Change Log
18
+
19
+ All notable changes to this project will be documented in this file. See
20
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
21
+
6
22
  # [0.41.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.40.14...v0.41.0) (2020-11-10)
7
23
 
8
24
 
@@ -35,42 +51,22 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
35
51
 
36
52
  **Note:** Version bump only for package @carbon/charts
37
53
 
38
-
39
-
40
-
41
-
42
54
  ## [0.40.12](https://github.com/carbon-design-system/carbon-charts/compare/v0.40.11...v0.40.12) (2020-11-06)
43
55
 
44
56
  **Note:** Version bump only for package @carbon/charts
45
57
 
46
-
47
-
48
-
49
-
50
58
  ## [0.40.11](https://github.com/carbon-design-system/carbon-charts/compare/v0.40.10...v0.40.11) (2020-11-03)
51
59
 
52
60
  **Note:** Version bump only for package @carbon/charts
53
61
 
54
-
55
-
56
-
57
-
58
62
  ## [0.40.10](https://github.com/carbon-design-system/carbon-charts/compare/v0.40.9...v0.40.10) (2020-11-03)
59
63
 
60
64
  **Note:** Version bump only for package @carbon/charts
61
65
 
62
-
63
-
64
-
65
-
66
66
  ## [0.40.9](https://github.com/carbon-design-system/carbon-charts/compare/v0.40.8...v0.40.9) (2020-11-03)
67
67
 
68
68
  **Note:** Version bump only for package @carbon/charts
69
69
 
70
-
71
-
72
-
73
-
74
70
  # Change Log
75
71
 
76
72
  All notable changes to this project will be documented in this file. See
@@ -9,6 +9,7 @@ export * from "./gauge";
9
9
  export * from "./scatter";
10
10
  export * from "./step";
11
11
  export * from "./radar";
12
+ export * from "./treemap";
12
13
  export declare const chartTypes: {
13
14
  AreaChart: {
14
15
  vanilla: string;
@@ -75,6 +76,11 @@ export declare const chartTypes: {
75
76
  angular: string;
76
77
  vue: string;
77
78
  };
79
+ TreemapChart: {
80
+ vanilla: string;
81
+ angular: string;
82
+ vue: string;
83
+ };
78
84
  };
79
85
  export declare const storybookDemoGroups: any;
80
86
  export declare const demoGroups: any;
@@ -0,0 +1,15 @@
1
+ export declare const treemapData: {
2
+ name: string;
3
+ children: ({
4
+ name: string;
5
+ value: number;
6
+ showLabel: boolean;
7
+ } | {
8
+ name: string;
9
+ value: number;
10
+ showLabel?: undefined;
11
+ })[];
12
+ }[];
13
+ export declare const treemapOptions: {
14
+ title: string;
15
+ };
@@ -11,3 +11,4 @@ export * from "./donut";
11
11
  export * from "./meter";
12
12
  export * from "./radar";
13
13
  export * from "./gauge";
14
+ export * from "./treemap";
@@ -0,0 +1,6 @@
1
+ import { Chart } from "../chart";
2
+ import { ChartConfig, TreemapChartOptions } from "../interfaces/index";
3
+ export declare class TreemapChart extends Chart {
4
+ constructor(holder: Element, chartConfigs: ChartConfig<TreemapChartOptions>);
5
+ getComponents(): any[];
6
+ }
@@ -0,0 +1,9 @@
1
+ import { Component } from "../component";
2
+ export declare class Treemap extends Component {
3
+ type: string;
4
+ init(): void;
5
+ render(animate?: boolean): void;
6
+ addEventListeners(): void;
7
+ handleLegendOnHover: (event: CustomEvent<any>) => void;
8
+ handleLegendMouseOut: (event: CustomEvent<any>) => void;
9
+ }
@@ -19,6 +19,7 @@ export * from "./graphs/gauge";
19
19
  export * from "./graphs/donut";
20
20
  export * from "./graphs/skeleton";
21
21
  export * from "./graphs/skeleton-lines";
22
+ export * from "./graphs/treemap";
22
23
  export * from "./layout/spacer";
23
24
  export * from "./layout/layout";
24
25
  export * from "./axes/two-dimensional-axes";
@@ -1,4 +1,4 @@
1
- import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, AreaChartOptions, PieChartOptions, GaugeChartOptions, DonutChartOptions, BubbleChartOptions, RadarChartOptions, GridOptions, RulerOptions, TimeScaleOptions, TooltipOptions, MeterChartOptions } from "./interfaces";
1
+ import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, AreaChartOptions, PieChartOptions, GaugeChartOptions, DonutChartOptions, BubbleChartOptions, RadarChartOptions, TreemapChartOptions, GridOptions, RulerOptions, TimeScaleOptions, TooltipOptions, MeterChartOptions } from "./interfaces";
2
2
  /**
3
3
  * Grid options
4
4
  */
@@ -28,5 +28,6 @@ export declare const options: {
28
28
  meterChart: MeterChartOptions;
29
29
  radarChart: RadarChartOptions;
30
30
  gaugeChart: GaugeChartOptions;
31
+ treemapChart: TreemapChartOptions;
31
32
  };
32
33
  export * from "./configuration-non-customizable";
@@ -270,3 +270,8 @@ export interface RadarChartOptions extends BaseChartOptions {
270
270
  alignment?: Alignments;
271
271
  };
272
272
  }
273
+ /**
274
+ * options specific to treemap charts
275
+ */
276
+ export interface TreemapChartOptions extends BaseChartOptions {
277
+ }
@@ -107,6 +107,15 @@ export declare enum Radar {
107
107
  X_AXIS_CLICK = "radar-x-axis-click",
108
108
  X_AXIS_MOUSEOUT = "radar-x-axis-mouseout"
109
109
  }
110
+ /**
111
+ * enum of all treemap graph events
112
+ */
113
+ export declare enum Treemap {
114
+ LEAF_MOUSEOVER = "leaf-mouseover",
115
+ LEAF_MOUSEMOVE = "leaf-mousemove",
116
+ LEAF_CLICK = "leaf-click",
117
+ LEAF_MOUSEOUT = "leaf-mouseout"
118
+ }
110
119
  /**
111
120
  * enum of all tooltip events
112
121
  */