@carbon/charts 0.42.0 → 0.44.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 (52) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +2 -2
  3. package/build/demo/data/bar.d.ts +20 -0
  4. package/build/src/model/model.d.ts +2 -1
  5. package/bundle.js +1 -1
  6. package/charts/bar-stacked.js +2 -1
  7. package/charts/bar-stacked.js.map +1 -1
  8. package/charts/line.js +2 -1
  9. package/charts/line.js.map +1 -1
  10. package/components/graphs/bar-stacked.js +19 -5
  11. package/components/graphs/bar-stacked.js.map +1 -1
  12. package/demo/data/bar.d.ts +20 -0
  13. package/demo/data/bar.js +25 -0
  14. package/demo/data/bar.js.map +1 -1
  15. package/demo/data/bundle.js +1 -1
  16. package/demo/data/histogram.js +1 -1
  17. package/demo/data/histogram.js.map +1 -1
  18. package/demo/data/index.js +5 -0
  19. package/demo/data/index.js.map +1 -1
  20. package/demo/data/line.js +6 -6
  21. package/demo/data/line.js.map +1 -1
  22. package/demo/styles.css +12 -4
  23. package/demo/styles.css.map +1 -1
  24. package/demo/styles.min.css +1 -1
  25. package/demo/styles.min.css.map +1 -1
  26. package/demo/tsconfig.tsbuildinfo +5 -5
  27. package/model/model.d.ts +2 -1
  28. package/model/model.js +6 -3
  29. package/model/model.js.map +1 -1
  30. package/package.json +1 -1
  31. package/services/essentials/dom-utils.js +18 -0
  32. package/services/essentials/dom-utils.js.map +1 -1
  33. package/services/scales-cartesian.js +14 -4
  34. package/services/scales-cartesian.js.map +1 -1
  35. package/styles/_chart-holder.scss +5 -2
  36. package/styles-g10.css +3 -1
  37. package/styles-g10.css.map +1 -1
  38. package/styles-g10.min.css +1 -1
  39. package/styles-g10.min.css.map +1 -1
  40. package/styles-g100.css +3 -1
  41. package/styles-g100.css.map +1 -1
  42. package/styles-g100.min.css +1 -1
  43. package/styles-g100.min.css.map +1 -1
  44. package/styles-g90.css +3 -1
  45. package/styles-g90.css.map +1 -1
  46. package/styles-g90.min.css +1 -1
  47. package/styles-g90.min.css.map +1 -1
  48. package/styles.css +3 -1
  49. package/styles.css.map +1 -1
  50. package/styles.min.css +1 -1
  51. package/styles.min.css.map +1 -1
  52. package/tsconfig.tsbuildinfo +7 -7
package/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
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.44.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.44.0...v0.44.1) (2021-08-19)
7
+
8
+ **Note:** Version bump only for package @carbon/charts
9
+
10
+
11
+
12
+
13
+
14
+ # [0.44.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.43.0...v0.44.0) (2021-08-18)
15
+
16
+
17
+ ### Features
18
+
19
+ * **core:** support negative values in stacked bar ([#1121](https://github.com/carbon-design-system/carbon-charts/issues/1121)) ([b71cc79](https://github.com/carbon-design-system/carbon-charts/commit/b71cc79876fe56b49cbb08441f41e17ee37fbcff))
20
+
21
+
22
+
23
+
24
+
25
+ # [0.43.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.42.1...v0.43.0) (2021-08-17)
26
+
27
+
28
+ ### Features
29
+
30
+ * **core:** remove backgrounds on chart holder & wrapper ([#1120](https://github.com/carbon-design-system/carbon-charts/issues/1120)) ([8044c99](https://github.com/carbon-design-system/carbon-charts/commit/8044c99cd4c307147a164d3e60bbb23d2a0a2dc4))
31
+
32
+
33
+
34
+
35
+
36
+ ## [0.42.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.42.0...v0.42.1) (2021-08-13)
37
+
38
+ **Note:** Version bump only for package @carbon/charts
39
+
40
+
41
+
42
+
43
+
6
44
  # [0.42.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.103...v0.42.0) (2021-08-13)
7
45
 
8
46
 
package/README.md CHANGED
@@ -7,14 +7,14 @@
7
7
  Run the following command using [npm](https://www.npmjs.com/):
8
8
 
9
9
  ```bash
10
- npm install -S @carbon/charts d3@5.x
10
+ npm install -S @carbon/charts d3
11
11
  ```
12
12
 
13
13
  If you prefer [Yarn](https://yarnpkg.com/en/), use the following command
14
14
  instead:
15
15
 
16
16
  ```bash
17
- yarn add @carbon/charts d3@5.x
17
+ yarn add @carbon/charts d3
18
18
  ```
19
19
 
20
20
  **Note:** you'd also need to install `carbon-components` if you're not using a
@@ -352,6 +352,26 @@ export declare const stackedBarOptions: {
352
352
  };
353
353
  };
354
354
  };
355
+ export declare const stackedBarNegativeData: {
356
+ group: string;
357
+ key: string;
358
+ value: number;
359
+ }[];
360
+ export declare const stackedBarNegativeOptions: {
361
+ title: string;
362
+ axes: {
363
+ left: {
364
+ mapsTo: string;
365
+ stacked: boolean;
366
+ };
367
+ bottom: {
368
+ mapsTo: string;
369
+ scaleType: string;
370
+ };
371
+ };
372
+ } & {
373
+ title: string;
374
+ };
355
375
  export declare const stackedHorizontalBarData: {
356
376
  group: string;
357
377
  key: string;
@@ -47,9 +47,10 @@ export declare class ChartModel {
47
47
  bins?: any;
48
48
  groups?: any;
49
49
  }): any;
50
- getStackedData({ percentage, groups }: {
50
+ getStackedData({ percentage, groups, divergent }: {
51
51
  percentage?: boolean;
52
52
  groups?: any;
53
+ divergent?: boolean;
53
54
  }): any[][];
54
55
  /**
55
56
  * @return {Object} The chart's options