Skip to content

Commit

Permalink
made plotly legendgroup unique to fix single trace enable disable ins…
Browse files Browse the repository at this point in the history
…tead of all traces
  • Loading branch information
jj-github-jj committed Dec 18, 2022
1 parent c21b981 commit e2c934c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/plotting/plotly/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def graph_options(self, element, ranges, style, is_geo=False, **kwargs):

if self.trace_kwargs(is_geo=is_geo).get('type', None) in legend_trace_types:
opts.update(
showlegend=self.show_legend, legendgroup=element.group)
showlegend=self.show_legend, legendgroup=element.group+'_'+legend) # make legendgroup unique for single trace enable/disable

if self._style_key is not None:
styles = self._apply_transforms(element, ranges, style)
Expand Down

0 comments on commit e2c934c

Please sign in to comment.