@@ -722,8 +722,9 @@ export const LineChart: React.FunctionComponent<LineChartProps> = React.forwardR
722
722
stroke = { lineColor }
723
723
strokeWidth = { strokeWidth }
724
724
strokeLinecap = { _points [ i ] . lineOptions ?. strokeLinecap ?? 'round' }
725
- onMouseMove = { event => _onMouseOverLargeDataset . bind ( i , verticaLineHeight , event , yScale ) }
726
- onMouseOver = { event => _onMouseOverLargeDataset . bind ( i , verticaLineHeight , event , yScale ) }
725
+ strokeDasharray = { _points [ i ] . lineOptions ?. strokeDasharray }
726
+ onMouseMove = { event => _onMouseOverLargeDataset ( i , verticaLineHeight , event , yScale ) }
727
+ onMouseOver = { event => _onMouseOverLargeDataset ( i , verticaLineHeight , event , yScale ) }
727
728
onMouseOut = { _handleMouseOut }
728
729
{ ..._getClickHandler ( _points [ i ] . onLineClick ) }
729
730
opacity = { 1 }
@@ -741,11 +742,11 @@ export const LineChart: React.FunctionComponent<LineChartProps> = React.forwardR
741
742
stroke = { lineColor }
742
743
strokeWidth = { strokeWidth }
743
744
strokeLinecap = { _points [ i ] . lineOptions ?. strokeLinecap ?? 'round' }
745
+ strokeDasharray = { _points [ i ] . lineOptions ?. strokeDasharray }
744
746
opacity = { 0.1 }
745
747
/> ,
746
748
) ;
747
749
}
748
-
749
750
pointsForLine . push (
750
751
< circle
751
752
id = { `${ _staticHighlightCircle } _${ i } ` }
@@ -757,8 +758,8 @@ export const LineChart: React.FunctionComponent<LineChartProps> = React.forwardR
757
758
strokeWidth = { DEFAULT_LINE_STROKE_SIZE }
758
759
stroke = { lineColor }
759
760
visibility = { 'hidden' }
760
- onMouseMove = { event => _onMouseOverLargeDataset . bind ( i , verticaLineHeight , event , yScale ) }
761
- onMouseOver = { event => _onMouseOverLargeDataset . bind ( i , verticaLineHeight , event , yScale ) }
761
+ onMouseMove = { event => _onMouseOverLargeDataset ( i , verticaLineHeight , event , yScale ) }
762
+ onMouseOver = { event => _onMouseOverLargeDataset ( i , verticaLineHeight , event , yScale ) }
762
763
onMouseOut = { _handleMouseOut }
763
764
/> ,
764
765
) ;
0 commit comments