File tree 14 files changed +82
-10
lines changed
14 files changed +82
-10
lines changed Original file line number Diff line number Diff line change 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.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
+
6
18
## [ 0.41.1] ( https://github.com/carbon-design-system/carbon-charts/compare/v0.41.0...v0.41.1 ) (2020-11-10)
7
19
8
20
Original file line number Diff line number Diff line change 12
12
]
13
13
}
14
14
},
15
- "version" : " 0.41.1 "
15
+ "version" : " 0.41.2 "
16
16
}
Original file line number Diff line number Diff line change 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.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
+
6
14
## [ 0.41.1] ( https://github.com/carbon-design-system/carbon-charts/compare/v0.41.0...v0.41.1 ) (2020-11-10)
7
15
8
16
** Note:** Version bump only for package @carbon/charts-angular
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @carbon/charts-angular" ,
3
- "version" : " 0.41.1 " ,
3
+ "version" : " 0.41.2 " ,
4
4
"description" : " Carbon charting components for Angular" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
40
40
" scss"
41
41
],
42
42
"dependencies" : {
43
- "@carbon/charts" : " ^0.41.1 "
43
+ "@carbon/charts" : " ^0.41.2 "
44
44
},
45
45
"peerDependencies" : {
46
46
"@angular/common" : " ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0" ,
Original file line number Diff line number Diff line change 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.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
+
6
18
## [ 0.41.1] ( https://github.com/carbon-design-system/carbon-charts/compare/v0.41.0...v0.41.1 ) (2020-11-10)
7
19
8
20
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @carbon/charts" ,
3
- "version" : " 0.41.1 " ,
3
+ "version" : " 0.41.2 " ,
4
4
"description" : " Carbon charting components" ,
5
5
"main" : " ./bundle.js" ,
6
6
"module" : " ./index.js" ,
Original file line number Diff line number Diff line change @@ -87,6 +87,12 @@ export class Tooltip extends Component {
87
87
Events . Tooltip . HIDE ,
88
88
this . handleHideTooltip
89
89
) ;
90
+
91
+ // listen to chart-mouseout event to hide the tooltip
92
+ this . services . events . addEventListener (
93
+ Events . Chart . MOUSEOUT ,
94
+ this . handleHideTooltip
95
+ ) ;
90
96
}
91
97
92
98
removeTooltipEventListener ( ) {
@@ -104,6 +110,12 @@ export class Tooltip extends Component {
104
110
Events . Tooltip . HIDE ,
105
111
this . handleHideTooltip
106
112
) ;
113
+
114
+ // remove the listener on chart-mouseout
115
+ this . services . events . removeEventListener (
116
+ Events . Chart . MOUSEOUT ,
117
+ this . handleHideTooltip
118
+ ) ;
107
119
}
108
120
109
121
getItems ( e : CustomEvent ) {
Original file line number Diff line number Diff line change @@ -375,6 +375,10 @@ export class CartesianScales extends Service {
375
375
if ( axisOptions . domain ) {
376
376
if ( scaleType === ScaleTypes . LABELS ) {
377
377
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
+ ) ;
378
382
}
379
383
return this . extendsDomain ( axisPosition , axisOptions . domain ) ;
380
384
}
Original file line number Diff line number Diff line change 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.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
+
6
14
## [ 0.41.1] ( https://github.com/carbon-design-system/carbon-charts/compare/v0.41.0...v0.41.1 ) (2020-11-10)
7
15
8
16
** Note:** Version bump only for package @carbon/charts-react
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @carbon/charts-react" ,
3
- "version" : " 0.41.1 " ,
3
+ "version" : " 0.41.2 " ,
4
4
"description" : " Carbon charting components for React" ,
5
5
"main" : " ./bundle.js" ,
6
6
"module" : " ./index.js" ,
46
46
},
47
47
"homepage" : " https://github.com/carbon-design-system/carbon-charts#readme" ,
48
48
"dependencies" : {
49
- "@carbon/charts" : " ^0.41.1 "
49
+ "@carbon/charts" : " ^0.41.2 "
50
50
},
51
51
"peerDependencies" : {
52
52
"react" : " ^16.6.3" ,
Original file line number Diff line number Diff line change 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.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
+
6
14
## [ 0.41.1] ( https://github.com/carbon-design-system/carbon-charts/compare/v0.41.0...v0.41.1 ) (2020-11-10)
7
15
8
16
** Note:** Version bump only for package @carbon/charts-svelte
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @carbon/charts-svelte" ,
3
- "version" : " 0.41.1 " ,
3
+ "version" : " 0.41.2 " ,
4
4
"description" : " Carbon charting components for Svelte" ,
5
5
"main" : " ./bundle.js" ,
6
6
"module" : " ./index.js" ,
47
47
},
48
48
"homepage" : " https://github.com/carbon-design-system/carbon-charts#readme" ,
49
49
"dependencies" : {
50
- "@carbon/charts" : " ^0.41.1 "
50
+ "@carbon/charts" : " ^0.41.2 "
51
51
},
52
52
"peerDependencies" : {
53
53
"svelte" : " ^3.20.x"
Original file line number Diff line number Diff line change 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.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
+
6
14
## [ 0.41.1] ( https://github.com/carbon-design-system/carbon-charts/compare/v0.41.0...v0.41.1 ) (2020-11-10)
7
15
8
16
** Note:** Version bump only for package @carbon/charts-vue
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @carbon/charts-vue" ,
3
- "version" : " 0.41.1 " ,
3
+ "version" : " 0.41.2 " ,
4
4
"description" : " Carbon charting components for Vue" ,
5
5
"main" : " charts-vue.umd.min.js" ,
6
6
"scripts" : {
14
14
"clean" : " rm -rf dist demo/bundle"
15
15
},
16
16
"dependencies" : {
17
- "@carbon/charts" : " ^0.41.1 " ,
17
+ "@carbon/charts" : " ^0.41.2 " ,
18
18
"vue" : " 2.5.21"
19
19
},
20
20
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments