@carbon/charts 0.37.1 → 0.38.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
+ # [0.38.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.37.1...v0.38.0) (2020-09-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **core:** enable or disable ruler ([#765](https://github.com/carbon-design-system/carbon-charts/issues/765)) ([bef6daf](https://github.com/carbon-design-system/carbon-charts/commit/bef6daf53e2c7c825d39daa160e9f721ddec0b29))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.37.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.37.0...v0.37.1) (2020-09-14)
7
18
 
8
19
  **Note:** Version bump only for package @carbon/charts
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
10
+ npm install -S @carbon/charts d3@5.x
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
17
+ yarn add @carbon/charts d3@5.x
18
18
  ```
19
19
 
20
20
  **Note:** you'd also need to install `carbon-components` if you're not using a
@@ -11,7 +11,9 @@ export declare class Ruler extends Component {
11
11
  }[];
12
12
  isXGridEnabled: any;
13
13
  isYGridEnabled: any;
14
+ isEventListenerAdded: boolean;
14
15
  render(): void;
16
+ removeBackdropEventListeners(): void;
15
17
  formatTooltipData(tooltipData: any): any;
16
18
  showRuler([x, y]: [number, number]): any;
17
19
  hideRuler(): void;
@@ -1,8 +1,12 @@
1
- import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, AreaChartOptions, PieChartOptions, GaugeChartOptions, DonutChartOptions, BubbleChartOptions, RadarChartOptions, GridOptions, TimeScaleOptions, TooltipOptions, MeterChartOptions } from "./interfaces";
1
+ import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, AreaChartOptions, PieChartOptions, GaugeChartOptions, DonutChartOptions, BubbleChartOptions, RadarChartOptions, GridOptions, RulerOptions, TimeScaleOptions, TooltipOptions, MeterChartOptions } from "./interfaces";
2
2
  /**
3
3
  * Grid options
4
4
  */
5
5
  export declare const grid: GridOptions;
6
+ /**
7
+ * Ruler options
8
+ */
9
+ export declare const ruler: RulerOptions;
6
10
  /**
7
11
  * Tooltip options
8
12
  */
@@ -87,6 +87,10 @@ export interface AxisOptions {
87
87
  values?: any[];
88
88
  };
89
89
  truncation?: TruncationOptions;
90
+ /**
91
+ * is axis visible or not
92
+ */
93
+ visible?: boolean;
90
94
  }
91
95
  /**
92
96
  * customize time series scales
@@ -83,6 +83,12 @@ export interface GridOptions {
83
83
  numberOfTicks?: number;
84
84
  };
85
85
  }
86
+ /**
87
+ * Ruler options
88
+ */
89
+ export interface RulerOptions {
90
+ enabled?: boolean;
91
+ }
86
92
  export interface BarOptions {
87
93
  width?: number;
88
94
  maxWidth?: number;