Skip to content

Commit

Permalink
fix hightlightSeries argument
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Aug 10, 2024
1 parent 568fa83 commit ce68600
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/Series.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export default class Series {
if (e.type === 'mousemove') {
let realIndex = parseInt(targetElement.getAttribute('rel'), 10) - 1

this.highlightSeries(realIndex)
this.highlightSeries(w.config.series[realIndex].name)
} else if (e.type === 'mouseout') {
for (let se = 0; se < allSeriesEls.length; se++) {
allSeriesEls[se].classList.remove(this.legendInactiveClass)
Expand Down
5 changes: 3 additions & 2 deletions src/modules/helpers/InitCtxVariables.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default class InitCtxVariables {
'appendData',
'appendSeries',
'isSeriesHidden',
'highlightSeries',
'toggleSeries',
'showSeries',
'hideSeries',
Expand All @@ -63,7 +64,7 @@ export default class InitCtxVariables {
'clearAnnotations',
'removeAnnotation',
'paper',
'destroy'
'destroy',
]

this.ctx.eventList = [
Expand All @@ -75,7 +76,7 @@ export default class InitCtxVariables {
'touchmove',
'touchleave',
'mouseup',
'touchend'
'touchend',
]

this.ctx.animations = new Animations(this.ctx)
Expand Down

0 comments on commit ce68600

Please sign in to comment.