File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,10 @@ export class ChartAPI {
209209 // Callbacks used for hover and keyboard navigation, and also exposed to the public API to give the ability
210210 // to highlight and show tooltip for the given point or group manually.
211211 public highlightChartItems = ( itemIds : readonly string [ ] ) => {
212- this . chartExtraHighlight . highlightChartItems ( itemIds ) ;
212+ if ( ! this . isTooltipPinned ) {
213+ this . chartExtraHighlight . highlightChartItems ( itemIds ) ;
214+ this . chartExtraLegend . onHighlightItems ( itemIds ) ;
215+ }
213216 } ;
214217 public setItemsVisible = ( visibleItemsIds : readonly string [ ] , { isApiCall } : { isApiCall : boolean } ) => {
215218 this . chartExtraLegend . onItemVisibilityChange ( visibleItemsIds , { isApiCall } ) ;
You can’t perform that action at this time.
0 commit comments