@carbon/charts 0.36.3 → 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 +39 -0
- package/README.md +2 -2
- package/build/src/components/axes/axis.d.ts +0 -4
- package/build/src/components/axes/grid.d.ts +1 -1
- package/build/src/components/axes/ruler.d.ts +4 -0
- package/build/src/configuration.d.ts +5 -1
- package/build/src/interfaces/axis-scales.d.ts +9 -1
- package/build/src/interfaces/charts.d.ts +5 -0
- package/build/src/interfaces/components.d.ts +8 -0
- package/build/src/interfaces/enums.d.ts +8 -0
- package/bundle.js +1 -1
- package/components/axes/axis.d.ts +0 -4
- package/components/axes/axis.js +68 -69
- package/components/axes/axis.js.map +1 -1
- package/components/axes/grid.d.ts +1 -1
- package/components/axes/grid.js +18 -7
- package/components/axes/grid.js.map +1 -1
- package/components/axes/ruler.d.ts +4 -0
- package/components/axes/ruler.js +19 -10
- package/components/axes/ruler.js.map +1 -1
- package/components/axes/zoom-bar.js +20 -5
- package/components/axes/zoom-bar.js.map +1 -1
- package/components/essentials/title-meter.js +1 -1
- package/components/essentials/title-meter.js.map +1 -1
- package/components/essentials/tooltip.js +9 -3
- package/components/essentials/tooltip.js.map +1 -1
- package/components/graphs/gauge.js +1 -1
- package/components/graphs/gauge.js.map +1 -1
- package/components/graphs/meter.js +7 -7
- package/components/graphs/meter.js.map +1 -1
- package/components/graphs/scatter-stacked.js +7 -0
- package/components/graphs/scatter-stacked.js.map +1 -1
- package/components/graphs/scatter.js +4 -0
- package/components/graphs/scatter.js.map +1 -1
- package/configuration.d.ts +5 -1
- package/configuration.js +33 -14
- package/configuration.js.map +1 -1
- package/demo/styles.css +8 -0
- package/demo/styles.css.map +1 -1
- package/demo/styles.min.css +1 -1
- package/demo/styles.min.css.map +1 -1
- package/demo/tsconfig.tsbuildinfo +8 -8
- package/interfaces/axis-scales.d.ts +9 -1
- package/interfaces/axis-scales.js.map +1 -1
- package/interfaces/charts.d.ts +5 -0
- package/interfaces/charts.js.map +1 -1
- package/interfaces/components.d.ts +8 -0
- package/interfaces/components.js.map +1 -1
- package/interfaces/enums.d.ts +8 -0
- package/interfaces/enums.js +9 -0
- package/interfaces/enums.js.map +1 -1
- package/model-meter.js +3 -1
- package/model-meter.js.map +1 -1
- package/package.json +1 -1
- package/styles/components/_grid.scss +2 -0
- package/styles-g10.css +2 -0
- package/styles-g10.css.map +1 -1
- package/styles-g10.min.css +1 -1
- package/styles-g10.min.css.map +1 -1
- package/styles-g100.css +2 -0
- package/styles-g100.css.map +1 -1
- package/styles-g100.min.css +1 -1
- package/styles-g100.min.css.map +1 -1
- package/styles-g90.css +2 -0
- package/styles-g90.css.map +1 -1
- package/styles-g90.min.css +1 -1
- package/styles-g90.min.css.map +1 -1
- package/styles.css +2 -0
- package/styles.css.map +1 -1
- package/styles.min.css +1 -1
- package/styles.min.css.map +1 -1
- package/tsconfig.tsbuildinfo +26 -24
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,45 @@
|
|
|
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
|
+
|
|
17
|
+
## [0.37.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.37.0...v0.37.1) (2020-09-14)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @carbon/charts
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [0.37.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.36.4...v0.37.0) (2020-09-11)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* create options for tick rotation ([#770](https://github.com/carbon-design-system/carbon-charts/issues/770)) ([4063c8a](https://github.com/carbon-design-system/carbon-charts/commit/4063c8a0f4d441589116759b32f2b214fad46154))
|
|
31
|
+
* enable or disable scatter dot on charts except scatter chart ([#769](https://github.com/carbon-design-system/carbon-charts/issues/769)) ([3131942](https://github.com/carbon-design-system/carbon-charts/commit/313194217318719152d6a14c2a3cba957b8fc009))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## [0.36.4](https://github.com/carbon-design-system/carbon-charts/compare/v0.36.3...v0.36.4) (2020-09-10)
|
|
38
|
+
|
|
39
|
+
**Note:** Version bump only for package @carbon/charts
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
6
45
|
## [0.36.3](https://github.com/carbon-design-system/carbon-charts/compare/v0.36.2...v0.36.3) (2020-09-10)
|
|
7
46
|
|
|
8
47
|
**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
|
|
@@ -6,11 +6,7 @@ export declare class Axis extends Component {
|
|
|
6
6
|
margins: any;
|
|
7
7
|
scale: any;
|
|
8
8
|
scaleType: ScaleTypes;
|
|
9
|
-
zoomDomainChanging: boolean;
|
|
10
9
|
constructor(model: ChartModel, services: any, configs?: any);
|
|
11
|
-
init(): void;
|
|
12
|
-
handleZoomBarSelectionStart: () => void;
|
|
13
|
-
handleZoomBarSelectionEnd: () => void;
|
|
14
10
|
render(animate?: boolean): void;
|
|
15
11
|
addEventListeners(): void;
|
|
16
12
|
getInvisibleAxisRef(): any;
|
|
@@ -9,7 +9,11 @@ export declare class Ruler extends Component {
|
|
|
9
9
|
domainValue: number;
|
|
10
10
|
originalData: any;
|
|
11
11
|
}[];
|
|
12
|
+
isXGridEnabled: any;
|
|
13
|
+
isYGridEnabled: any;
|
|
14
|
+
isEventListenerAdded: boolean;
|
|
12
15
|
render(): void;
|
|
16
|
+
removeBackdropEventListeners(): void;
|
|
13
17
|
formatTooltipData(tooltipData: any): any;
|
|
14
18
|
showRuler([x, y]: [number, number]): any;
|
|
15
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
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScaleTypes } from "./enums";
|
|
1
|
+
import { ScaleTypes, TickRotations } from "./enums";
|
|
2
2
|
import { AxisDomain } from "d3";
|
|
3
3
|
import { Locale } from "date-fns";
|
|
4
4
|
import { ThresholdOptions } from "./components";
|
|
@@ -73,6 +73,10 @@ export interface AxisOptions {
|
|
|
73
73
|
* before getting rotated (in pixels)
|
|
74
74
|
*/
|
|
75
75
|
rotateIfSmallerThan?: number;
|
|
76
|
+
/**
|
|
77
|
+
* when to rotate ticks
|
|
78
|
+
*/
|
|
79
|
+
rotation?: TickRotations;
|
|
76
80
|
/**
|
|
77
81
|
* function to format the ticks
|
|
78
82
|
*/
|
|
@@ -83,6 +87,10 @@ export interface AxisOptions {
|
|
|
83
87
|
values?: any[];
|
|
84
88
|
};
|
|
85
89
|
truncation?: TruncationOptions;
|
|
90
|
+
/**
|
|
91
|
+
* is axis visible or not
|
|
92
|
+
*/
|
|
93
|
+
visible?: boolean;
|
|
86
94
|
}
|
|
87
95
|
/**
|
|
88
96
|
* customize time series scales
|
|
@@ -121,6 +121,7 @@ export interface ScatterChartOptions extends AxisChartOptions {
|
|
|
121
121
|
radius: number;
|
|
122
122
|
fillOpacity?: number;
|
|
123
123
|
filled?: boolean;
|
|
124
|
+
enabled?: boolean;
|
|
124
125
|
};
|
|
125
126
|
}
|
|
126
127
|
/**
|
|
@@ -144,6 +145,10 @@ export interface BubbleChartOptions extends AxisChartOptions {
|
|
|
144
145
|
* Opacity of the fills used within each circle
|
|
145
146
|
*/
|
|
146
147
|
fillOpacity?: number;
|
|
148
|
+
/**
|
|
149
|
+
* enabled scatter dot or not
|
|
150
|
+
*/
|
|
151
|
+
enabled?: boolean;
|
|
147
152
|
};
|
|
148
153
|
}
|
|
149
154
|
/**
|
|
@@ -75,12 +75,20 @@ export interface ThresholdOptions {
|
|
|
75
75
|
}
|
|
76
76
|
export interface GridOptions {
|
|
77
77
|
y?: {
|
|
78
|
+
enabled?: boolean;
|
|
78
79
|
numberOfTicks?: number;
|
|
79
80
|
};
|
|
80
81
|
x?: {
|
|
82
|
+
enabled?: boolean;
|
|
81
83
|
numberOfTicks?: number;
|
|
82
84
|
};
|
|
83
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Ruler options
|
|
88
|
+
*/
|
|
89
|
+
export interface RulerOptions {
|
|
90
|
+
enabled?: boolean;
|
|
91
|
+
}
|
|
84
92
|
export interface BarOptions {
|
|
85
93
|
width?: number;
|
|
86
94
|
maxWidth?: number;
|