Skip to content

Commit d33e47c

Browse files
committed
Add ticklabelshiftx/y property to colorbar, indicator, gl3d, carpet, polar, smith, ternary
1 parent fa50121 commit d33e47c

File tree

8 files changed

+614
-2
lines changed

8 files changed

+614
-2
lines changed

src/components/colorbar/attributes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ module.exports = overrideAll({
169169
'In other cases the default is *hide past div*.'
170170
].join(' ')
171171
}),
172-
173172
// ticklabelposition: not used directly, as values depend on orientation
174173
// left/right options are for x axes, and top/bottom options are for y axes
175174
ticklabelposition: {
@@ -188,7 +187,8 @@ module.exports = overrideAll({
188187
'top and bottom when `orientation` is *v*.'
189188
].join(' ')
190189
},
191-
190+
ticklabelshiftx: axesAttrs.ticklabelshiftx,
191+
ticklabelshifty: axesAttrs.ticklabelshifty,
192192
ticklen: axesAttrs.ticklen,
193193
tickwidth: axesAttrs.tickwidth,
194194
tickcolor: axesAttrs.tickcolor,

src/plots/gl3d/layout/axis_attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ module.exports = overrideAll({
9393
ticks: axesAttrs.ticks,
9494
mirror: axesAttrs.mirror,
9595
ticklen: axesAttrs.ticklen,
96+
ticklabelshiftx: axesAttrs.ticklabelshiftx,
97+
ticklabelshifty: axesAttrs.ticklabelshifty,
9698
tickwidth: axesAttrs.tickwidth,
9799
tickcolor: axesAttrs.tickcolor,
98100
showticklabels: axesAttrs.showticklabels,

src/plots/polar/layout_attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ var axisTickAttrs = overrideAll({
3333
ticklen: axesAttrs.ticklen,
3434
tickwidth: axesAttrs.tickwidth,
3535
tickcolor: axesAttrs.tickcolor,
36+
ticklabelshiftx: axesAttrs.ticklabelshiftx,
37+
ticklabelshifty: axesAttrs.ticklabelshifty,
3638
ticklabelstep: axesAttrs.ticklabelstep,
3739
showticklabels: axesAttrs.showticklabels,
3840
labelalias: axesAttrs.labelalias,

src/plots/smith/layout_attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ var axisLineGridAttr = overrideAll({
1818
}, 'plot', 'from-root');
1919

2020
var axisTickAttrs = overrideAll({
21+
ticklabelshiftx: axesAttrs.ticklabelshiftx,
22+
ticklabelshifty: axesAttrs.ticklabelshifty,
2123
ticklen: axesAttrs.ticklen,
2224
tickwidth: extendFlat({}, axesAttrs.tickwidth, {dflt: 2}),
2325
tickcolor: axesAttrs.tickcolor,

src/plots/ternary/layout_attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ var ternaryAxesAttrs = {
2525
ticklen: axesAttrs.ticklen,
2626
tickwidth: axesAttrs.tickwidth,
2727
tickcolor: axesAttrs.tickcolor,
28+
ticklabelshiftx: axesAttrs.ticklabelshiftx,
29+
ticklabelshifty: axesAttrs.ticklabelshifty,
2830
ticklabelstep: axesAttrs.ticklabelstep,
2931
showticklabels: axesAttrs.showticklabels,
3032
labelalias: axesAttrs.labelalias,

src/traces/carpet/axis_attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ module.exports = {
157157
'Has an effect only if `tickmode` is set to *auto*.'
158158
].join(' ')
159159
},
160+
ticklabelshiftx: axesAttrs.ticklabelshiftx,
161+
ticklabelshifty: axesAttrs.ticklabelshifty,
160162
tickvals: {
161163
valType: 'data_array',
162164
editType: 'calc',

src/traces/indicator/attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ module.exports = {
317317
ticklen: axesAttrs.ticklen,
318318
tickwidth: axesAttrs.tickwidth,
319319
tickcolor: axesAttrs.tickcolor,
320+
ticklabelshiftx: axesAttrs.ticklabelshiftx,
321+
ticklabelshifty: axesAttrs.ticklabelshifty,
320322
ticklabelstep: axesAttrs.ticklabelstep,
321323
showticklabels: axesAttrs.showticklabels,
322324
labelalias: axesAttrs.labelalias,

0 commit comments

Comments
 (0)