@carbon/charts 1.6.14 → 1.7.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.7.0](https://github.com/carbon-design-system/carbon-charts/compare/v1.6.14...v1.7.0) (2023-04-19)
7
+
8
+
9
+ ### Features
10
+
11
+ * **exports:** custom fileDownload.fileName function ([#1536](https://github.com/carbon-design-system/carbon-charts/issues/1536)) ([fc658e0](https://github.com/carbon-design-system/carbon-charts/commit/fc658e03e188884a27ed60e95ded3f41db5d50ba))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [1.6.14](https://github.com/carbon-design-system/carbon-charts/compare/v1.6.13...v1.6.14) (2023-03-07)
7
18
 
8
19
  **Note:** Version bump only for package @carbon/charts
@@ -113,6 +113,12 @@ export interface BaseChartOptions {
113
113
  colors?: Array<String>;
114
114
  };
115
115
  };
116
+ fileDownload?: {
117
+ /**
118
+ * the number of color variants in the palette (defaults to using the number of data groups in the given data)
119
+ */
120
+ fileName?: (type: 'png' | 'jpg' | 'csv') => string;
121
+ };
116
122
  }
117
123
  /**
118
124
  * Options common to any chart with an axis
@@ -58,7 +58,7 @@ export declare class CartesianScales extends Service {
58
58
  getMainYScaleType(): any;
59
59
  getDomainIdentifier(datum?: any): any;
60
60
  getRangeIdentifier(datum?: any): any;
61
- extendsDomain(axisPosition: AxisPositions, domain: any): Date[] | number[];
61
+ extendsDomain(axisPosition: AxisPositions, domain: any): number[] | Date[];
62
62
  protected findVerticalAxesPositions(): {
63
63
  primary: AxisPositions;
64
64
  secondary: AxisPositions;