Skip to content

Commit 0c16285

Browse files
committed
introduce new attribute for log axes
1 parent 5e2163b commit 0c16285

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/plots/cartesian/layout_attributes.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,6 +1234,17 @@ module.exports = {
12341234
'Used with `categoryorder`.'
12351235
].join(' ')
12361236
},
1237+
loglabels: {
1238+
valType: 'enumerated',
1239+
values: ['small digits', 'full value'],
1240+
dflt: 'small digits',
1241+
editType: 'calc',
1242+
description: [
1243+
'Determines how minor log labels are displayed.',
1244+
'If *small digits*, small digits are displayed for minor ticks.',
1245+
'If *full value*, full values are displayed for minor ticks.',
1246+
].join(' ')
1247+
},
12371248
uirevision: {
12381249
valType: 'any',
12391250
editType: 'none',

src/plots/cartesian/tick_label_defaults.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ module.exports = function handleTickLabelDefaults(containerIn, containerOut, coe
7070
coerce('separatethousands');
7171
}
7272
}
73+
74+
if(axType === 'log') {
75+
coerce('loglabels');
76+
}
7377
}
7478
};
7579

0 commit comments

Comments
 (0)