8000 Add UID as a classname to bar trace #7328 by gregdeback · Pull Request #7329 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Add UID as a classname to bar trace #7328 #7329

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
Next Next commit
Add UID as a classname to bar trace
  • Loading branch information
Greg Deback committed Jan 7, 2025
commit 85a4dad7c4b47e35f643d790962a86e8dd1104a7
2 changes: 2 additions & 0 deletions src/traces/bar/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ function plot(gd, plotinfo, cdModule, traceLayer, opts, makeOnCompleteCallback)
var keyFunc = getKeyFunc(trace);
var bars = pointGroup.selectAll('g.point').data(Lib.identity, keyFunc);

plotGroup.classed('trace' + trace.uid, true);

bars.enter().append('g')
.classed('point', true);

Expand Down
0