File tree 3 files changed +18
-5
lines changed 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -203,11 +203,11 @@ import Tooltip from 'appirio-tech-react-components/components/Tooltip/Tooltip.js
203
203
return xScale ( i )
204
204
} )
205
205
. attr ( 'y' , function ( d ) {
206
- return padding . top
206
+ return yScale ( d . number )
207
207
} )
208
208
. attr ( 'width' , xScale . rangeBand ( ) )
209
209
. attr ( 'height' , function ( d ) {
210
- return totalH - padding . bottom - padding . top
210
+ return totalH - padding . bottom - yScale ( d . number )
211
211
} )
212
212
. on ( 'mouseover' , function ( d ) {
213
213
$scope . highlightedRating = d . start
Original file line number Diff line number Diff line change @@ -257,7 +257,9 @@ import Tooltip from 'appirio-tech-react-components/components/Tooltip/Tooltip.js
257
257
</ div >
258
258
</ Tooltip >
259
259
, document . getElementById ( 'chart-tooltip' ) )
260
-
260
+
261
+ var toolTipHideIntervalId = null
262
+
261
263
svg . selectAll ( 'circle' )
262
264
. data ( history )
263
265
. enter ( )
@@ -275,7 +277,7 @@ import Tooltip from 'appirio-tech-react-components/components/Tooltip/Tooltip.js
275
277
$scope . historyRating = d . newRating
276
278
$scope . historyDate = moment ( d . ratingDate ) . format ( 'YYYY-MM-DD' )
277
279
$scope . historyChallenge = d . challengeName
278
-
280
+ window . clearInterval ( toolTipHideIntervalId ) ;
279
281
$scope . $digest ( )
280
282
281
283
d3 . select ( '#chart-tooltip' )
@@ -299,6 +301,11 @@ import Tooltip from 'appirio-tech-react-components/components/Tooltip/Tooltip.js
299
301
. on ( 'mouseout' , function ( d ) {
300
302
$scope . historyRating = undefined
301
303
$scope . $digest ( )
304
+ toolTipHideIntervalId = window . setInterval ( function ( ) {
305
+ d3 . select ( '#chart-tooltip' )
306
+ . style ( 'left' , '-500px' )
307
+ . style ( 'top' , '-500px' )
308
+ } , 1500 ) ;
302
309
} )
303
310
304
311
}
Original file line number Diff line number Diff line change 170
170
171
171
#chart-tooltip .tooltip-challenge {
172
172
height : 100% ;
173
- width : calc (100% - 100 px );
173
+ width : calc (100% - 90 px );
174
174
float : left ;
175
175
}
176
176
177
+ #chart-tooltip .tooltip-challenge .challenge-name {
178
+ white-space : normal ;
179
+ line-height : 20px ;
180
+ word-wrap : break-word ;
181
+ }
182
+
177
183
#chart-tooltip .tooltip-challenge .challenge-date {
178
184
font-weight : normal ;
179
185
margin-top : 13px ;
You can’t perform that action at this time.
0 commit comments