8000 Fix for #7416: Hidden ticklabels with ticklabelposition "inside" take up plot space by my-tien · Pull Request #7417 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Fix for #7416: Hidden ticklabels with ticklabelposition "inside" take up plot space #7417

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 17 commits into from
Jul 25, 2025
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
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
Fix error: d3 selection.style called as getter
Also remove left-over console debug print
  • Loading branch information
my-tien committed May 13, 2025
commit 049b7febff8639afc55c4f3da1b3cd7184f6a22a
8 changes: 5 additions & 3 deletions src/plots/cartesian/axes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3783,8 +3783,11 @@ axes.drawLabels = function(gd, ax, opts) {
q > ax['_visibleLabelMin_' + anchorAx._id]
) {
t.style('display', 'none'); // hidden
} else if(e.K === 'tick' && !idx && t.style('display') != 'none') {
t.style('display', null); // visible
} else if(e.K === 'tick' && !idx) {
var display = window.getComputedStyle(t.node()).display;
if (display != 'none') {
t.style('display', null); // visible
}
}
});
});
Expand All @@ -3807,7 +3810,6 @@ axes.drawLabels = function(gd, ax, opts) {
var autoangle = null;

function fixLabelOverlaps() {
console.log("fix label overlaps!");
positionLabels(tickLabels, tickAngle);

// check for auto-angling if x labels overlap
Expand Down
0