8000 Add `legend.groupclick` options to toggle single item within a group by archmoj · Pull Request #5906 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Add legend.groupclick options to toggle single item within a group #5906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Aug 26, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
keep gorup titles visible when groupclick is set to toggleitem
  • Loading branch information
archmoj committed Aug 25, 2021
commit f97300e294f51a499c8fe7a1fb49633fd575756b
2 changes: 1 addition & 1 deletion src/components/legend/get_legend_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ module.exports = function getLegendData(calcdata, opts) {
trace: {
showlegend: firstItemTrace.showlegend,
legendgroup: firstItemTrace.legendgroup,
visible: firstItemTrace.visible
visible: opts.groupclick === 'toggleitem' ? true : firstItemTrace.visible
}
});
}
Expand Down
0