@carbon/charts 1.3.2 → 1.4.0

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 CHANGED
@@ -3,6 +3,17 @@
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
+ # [1.4.0](https://github.com/carbon-design-system/carbon-charts/compare/v1.3.2...v1.4.0) (2022-07-21)
7
+
8
+
9
+ ### Features
10
+
11
+ * **core:** allow theme to be set via options prop ([#1412](https://github.com/carbon-design-system/carbon-charts/issues/1412)) ([6288548](https://github.com/carbon-design-system/carbon-charts/commit/62885487a700e2222d51f70aea790eddd5d6d086)), closes [#1411](https://github.com/carbon-design-system/carbon-charts/issues/1411)
12
+
13
+
14
+
15
+
16
+
6
17
  ## [1.3.2](https://github.com/carbon-design-system/carbon-charts/compare/v1.3.1...v1.3.2) (2022-06-30)
7
18
 
8
19
 
@@ -1,4 +1,4 @@
1
- import { GaugeTypes, Statuses, ArrowDirections, Alignments, ChartTypes, TreeTypes, DividerStatus, ColorLegendType } from './enums';
1
+ import { GaugeTypes, Statuses, ArrowDirections, Alignments, ChartTypes, TreeTypes, DividerStatus, ColorLegendType, ChartTheme } from './enums';
2
2
  import { LegendOptions, TooltipOptions, GridOptions, AxesOptions, ZoomBarsOptions } from './index';
3
3
  import { BarOptions, StackedBarOptions, ToolbarOptions } from './components';
4
4
  import { AxisOptions, BinnedAxisOptions, TimeScaleOptions } from './axis-scales';
@@ -26,6 +26,10 @@ export interface BaseChartOptions {
26
26
  * Optionally specify a height for the chart
27
27
  */
28
28
  height?: string;
29
+ /**
30
+ * Optionally specify a theme for the chart
31
+ */
32
+ theme?: ChartTheme;
29
33
  /**
30
34
  * tooltip configuration
31
35
  */
@@ -8,7 +8,7 @@ export declare enum RenderTypes {
8
8
  * enum of all supported chart themes
9
9
  */
10
10
  export declare enum ChartTheme {
11
- DEFAULT = "default",
11
+ WHITE = "white",
12
12
  G100 = "g100",
13
13
  G90 = "g90",
14
14
  G10 = "g10"