Skip to content

Commit facdad3

Browse files
committed
ticklabelshiftx/y: valType number → integer. for carpet: editType ticks → calc
carpet is a trace and therefore doesn't support editType ticks
1 parent 3dcb2aa commit facdad3

File tree

3 files changed

+126
-112
lines changed

3 files changed

+126
-112
lines changed

src/plots/cartesian/layout_attributes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -699,15 +699,15 @@ module.exports = {
699699
].join(' ')
700700
},
701701
ticklabelshiftx: {
702-
valType: 'number',
702+
valType: 'integer',
703703
dflt: 0,
704704
editType: 'ticks',
705705
description: [
706706
'Horizontally shifts the tick labels by the specified number of pixels.'
707707
].join(' ')
708708
},
709709
ticklabelshifty: {
710-
valType: 'number',
710+
valType: 'integer',
711711
dflt: 0,
712712
editType: 'ticks',
713713
description: [

src/traces/carpet/axis_attributes.js

+16-2
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,22 @@ module.exports = {
157157
'Has an effect only if `tickmode` is set to *auto*.'
158158
].join(' ')
159159
},
160-
ticklabelshiftx: axesAttrs.ticklabelshiftx,
161-
ticklabelshifty: axesAttrs.ticklabelshifty,
160+
ticklabelshiftx: {
161+
valType: 'integer',
162+
dflt: 0,
163+
editType: 'calc',
164+
description: [
165+
'Horizontally shifts the tick labels by the specified number of pixels.'
166+
].join(' ')
167+
},
168+
ticklabelshifty: {
169+
valType: 'integer',
170+
dflt: 0,
171+
editType: 'calc',
172+
description: [
173+
'Vertically shifts the tick labels by the specified number of pixels.'
174+
].join(' ')
175+
},
162176
tickvals: {
163177
valType: 'data_array',
164178
editType: 'calc',

0 commit comments

Comments
 (0)