Skip to content

Commit 595de82

Browse files
committed
tick level rename
1 parent 05ebb13 commit 595de82

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/plots/cartesian/axes.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2243,6 +2243,7 @@ axes.draw = function(gd, arg, opts) {
22432243

22442244
plotinfo.xaxislayer.selectAll('.' + xa._id + 'tick').remove();
22452245
plotinfo.yaxislayer.selectAll('.' + ya._id + 'tick').remove();
2246+
debugger;
22462247
plotinfo.xaxislayer.selectAll('.' + xa._id + 'tick2').remove();
22472248
plotinfo.yaxislayer.selectAll('.' + ya._id + 'tick2').remove();
22482249
plotinfo.xaxislayer.selectAll('.' + xa._id + 'divider').remove();
@@ -2523,7 +2524,7 @@ axes.drawOne = function(gd, ax, opts) {
25232524
ax.levels.slice().reverse().slice(0, ax.levelNr - 1).forEach(function(_lvl) {
25242525
var pad = {x: 0 * _lvl, y: 10}[axLetter];
25252526

2526-
var tickName = 'tick' + String(_lvl);
2527+
var tickName = 'tick' + String(_lvl + 1);
25272528
tickNames.push(tickName);
25282529

25292530
seq.push(function() {
@@ -2585,7 +2586,7 @@ axes.drawOne = function(gd, ax, opts) {
25852586
if(ax.type === 'multicategory') {
25862587
// hardcoded tick name, breakes only with plotly.py. Not sure if this is the right selection
25872588
// llbbox = getLabelLevelBbox('tick2');
2588-
llbbox = getLabelLevelBbox('tick' + String(ax.levelNr - 1));
2589+
llbbox = getLabelLevelBbox('tick' + String(ax.levelNr));
25892590
} else {
25902591
llbbox = getLabelLevelBbox();
25912592
if(axLetter === 'x' && s === 'b') {

0 commit comments

Comments
 (0)