Skip to content

improve handling blank tick labels #6163

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 1 commit into from
Apr 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/plots/cartesian/axes.js
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ axes.calcTicks = function calcTicks(ax, opts) {

var lastVisibleHead;
var hideLabel = function(tick) {
tick.text = ' '; // don't use an empty string here which can confuse automargin (issue 5132)
tick.text = '';
ax._prevDateHead = lastVisibleHead;
};

Expand Down Expand Up @@ -3008,7 +3008,7 @@ axes.drawLabels = function(gd, ax, opts) {
var axLetter = axId.charAt(0);
var cls = opts.cls || axId + 'tick';

var vals = opts.vals;
var vals = opts.vals.filter(function(e) { return e.text; });

var labelFns = opts.labelFns;
var tickAngle = opts.secondary ? 0 : ax.tickangle;
Expand Down
Loading