Skip to content

Commit 45a5a7b

Browse files
author
Fei
committed
2 parents 4f2a3af + b7a5217 commit 45a5a7b

File tree

14 files changed

+82
-10
lines changed

14 files changed

+82
-10
lines changed

Diff for: CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.41.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.1...v0.41.2) (2020-11-13)
7+
8+
9+
### Bug Fixes
10+
11+
* **core:** sanitize user provided axis domains ([5865b7a](https://github.com/carbon-design-system/carbon-charts/commit/5865b7a16ea424314115b05af818eed9449d2564))
12+
* **core:** tooltips should hide when mouseout is triggered on the chart holder ([#887](https://github.com/carbon-design-system/carbon-charts/issues/887)) ([9ee5210](https://github.com/carbon-design-system/carbon-charts/commit/9ee5210497032108857f503b69eff2c73b22cf06))
13+
14+
15+
16+
17+
618
## [0.41.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.0...v0.41.1) (2020-11-10)
719

820

Diff for: lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
]
1313
}
1414
},
15-
"version": "0.41.1"
15+
"version": "0.41.2"
1616
}

Diff for: packages/angular/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.41.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.1...v0.41.2) (2020-11-13)
7+
8+
**Note:** Version bump only for package @carbon/charts-angular
9+
10+
11+
12+
13+
614
## [0.41.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.0...v0.41.1) (2020-11-10)
715

816
**Note:** Version bump only for package @carbon/charts-angular

Diff for: packages/angular/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@carbon/charts-angular",
3-
"version": "0.41.1",
3+
"version": "0.41.2",
44
"description": "Carbon charting components for Angular",
55
"main": "index.js",
66
"scripts": {
@@ -40,7 +40,7 @@
4040
"scss"
4141
],
4242
"dependencies": {
43-
"@carbon/charts": "^0.41.1"
43+
"@carbon/charts": "^0.41.2"
4444
},
4545
"peerDependencies": {
4646
"@angular/common": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0",

Diff for: packages/core/CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.41.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.1...v0.41.2) (2020-11-13)
7+
8+
9+
### Bug Fixes
10+
11+
* **core:** sanitize user provided axis domains ([5865b7a](https://github.com/carbon-design-system/carbon-charts/commit/5865b7a16ea424314115b05af818eed9449d2564))
12+
* **core:** tooltips should hide when mouseout is triggered on the chart holder ([#887](https://github.com/carbon-design-system/carbon-charts/issues/887)) ([9ee5210](https://github.com/carbon-design-system/carbon-charts/commit/9ee5210497032108857f503b69eff2c73b22cf06))
13+
14+
15+
16+
17+
618
## [0.41.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.0...v0.41.1) (2020-11-10)
719

820

Diff for: packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@carbon/charts",
3-
"version": "0.41.1",
3+
"version": "0.41.2",
44
"description": "Carbon charting components",
55
"main": "./bundle.js",
66
"module": "./index.js",

Diff for: packages/core/src/components/essentials/tooltip.ts

+12
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ export class Tooltip extends Component {
8787
Events.Tooltip.HIDE,
8888
this.handleHideTooltip
8989
);
90+
91+
// listen to chart-mouseout event to hide the tooltip
92+
this.services.events.addEventListener(
93+
Events.Chart.MOUSEOUT,
94+
this.handleHideTooltip
95+
);
9096
}
9197

9298
removeTooltipEventListener() {
@@ -104,6 +110,12 @@ export class Tooltip extends Component {
104110
Events.Tooltip.HIDE,
105111
this.handleHideTooltip
106112
);
113+
114+
// remove the listener on chart-mouseout
115+
this.services.events.removeEventListener(
116+
Events.Chart.MOUSEOUT,
117+
this.handleHideTooltip
118+
);
107119
}
108120

109121
getItems(e: CustomEvent) {

Diff for: packages/core/src/services/scales-cartesian.ts

+4
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,10 @@ export class CartesianScales extends Service {
375375
if (axisOptions.domain) {
376376
if (scaleType === ScaleTypes.LABELS) {
377377
return axisOptions.domain;
378+
} else if (scaleType === ScaleTypes.TIME) {
379+
axisOptions.domain = axisOptions.domain.map((d) =>
380+
d.getTime === undefined ? new Date(d) : d
381+
);
378382
}
379383
return this.extendsDomain(axisPosition, axisOptions.domain);
380384
}

Diff for: packages/react/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.41.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.1...v0.41.2) (2020-11-13)
7+
8+
**Note:** Version bump only for package @carbon/charts-react
9+
10+
11+
12+
13+
614
## [0.41.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.0...v0.41.1) (2020-11-10)
715

816
**Note:** Version bump only for package @carbon/charts-react

Diff for: packages/react/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@carbon/charts-react",
3-
"version": "0.41.1",
3+
"version": "0.41.2",
44
"description": "Carbon charting components for React",
55
"main": "./bundle.js",
66
"module": "./index.js",
@@ -46,7 +46,7 @@
4646
},
4747
"homepage": "https://github.com/carbon-design-system/carbon-charts#readme",
4848
"dependencies": {
49-
"@carbon/charts": "^0.41.1"
49+
"@carbon/charts": "^0.41.2"
5050
},
5151
"peerDependencies": {
5252
"react": "^16.6.3",

Diff for: packages/svelte/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.41.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.1...v0.41.2) (2020-11-13)
7+
8+
**Note:** Version bump only for package @carbon/charts-svelte
9+
10+
11+
12+
13+
614
## [0.41.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.0...v0.41.1) (2020-11-10)
715

816
**Note:** Version bump only for package @carbon/charts-svelte

Diff for: packages/svelte/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@carbon/charts-svelte",
3-
"version": "0.41.1",
3+
"version": "0.41.2",
44
"description": "Carbon charting components for Svelte",
55
"main": "./bundle.js",
66
"module": "./index.js",
@@ -47,7 +47,7 @@
4747
},
4848
"homepage": "https://github.com/carbon-design-system/carbon-charts#readme",
4949
"dependencies": {
50-
"@carbon/charts": "^0.41.1"
50+
"@carbon/charts": "^0.41.2"
5151
},
5252
"peerDependencies": {
5353
"svelte": "^3.20.x"

Diff for: packages/vue/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.41.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.1...v0.41.2) (2020-11-13)
7+
8+
**Note:** Version bump only for package @carbon/charts-vue
9+
10+
11+
12+
13+
614
## [0.41.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.0...v0.41.1) (2020-11-10)
715

816
**Note:** Version bump only for package @carbon/charts-vue

Diff for: packages/vue/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@carbon/charts-vue",
3-
"version": "0.41.1",
3+
"version": "0.41.2",
44
"description": "Carbon charting components for Vue",
55
"main": "charts-vue.umd.min.js",
66
"scripts": {
@@ -14,7 +14,7 @@
1414
"clean": "rm -rf dist demo/bundle"
1515
},
1616
"dependencies": {
17-
"@carbon/charts": "^0.41.1",
17+
"@carbon/charts": "^0.41.2",
1818
"vue": "2.5.21"
1919
},
2020
"devDependencies": {

0 commit comments

Comments
 (0)