Skip to content

Commit b89f59a

Browse files
committed
do not add autoshift and shift to xaxis for now
1 parent 09b5d0c commit b89f59a

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

src/plot_api/plot_schema.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,13 @@ function getLayoutAttributes() {
548548
delete layoutAttributes.yaxis[xkey];
549549
}
550550
}
551+
552+
/*
553+
* Also some attributes e.g. shift & autoshift only implemented on the yaxis
554+
* at the moment. Remove them from the xaxis.
555+
*/
556+
delete layoutAttributes.xaxis.shift;
557+
delete layoutAttributes.xaxis.autoshift;
551558
} else if(_module.name === 'colorscale') {
552559
extendDeepAll(layoutAttributes, _module.layoutAttributes);
553560
} else if(_module.layoutAttributes) {

test/plot-schema.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9976,12 +9976,6 @@
99769976
"reversed"
99779977
]
99789978
},
9979-
"autoshift": {
9980-
"description": "Automatically reposition the axis to avoid overlap with other axes with the same `overlaying` value. This repositioning will account for any `shift` amount applied to other axes on the same side with `autoshift` is set to *true*. Only has an effect if `anchor` is set to *free*.",
9981-
"dflt": false,
9982-
"editType": "plot",
9983-
"valType": "boolean"
9984-
},
99859979
"autotypenumbers": {
99869980
"description": "Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers.",
99879981
"dflt": "convert types",
@@ -10741,11 +10735,6 @@
1074110735
"editType": "ticks",
1074210736
"valType": "boolean"
1074310737
},
10744-
"shift": {
10745-
"description": "Moves the axis a given number of pixels from where it would have been otherwise. Accepts both positive and negative values, which will shift the axis either right or left, respectively. If `autoshift` is set to *true*, then this defaults to a padding of *-3* if `side` is set to *left. and defaults to *+3* if `side` is set to *right*. Defaults to *0* if `autoshift` is set to *false*. Only has an effect if `anchor` is set to *free*.",
10746-
"editType": "plot",
10747-
"valType": "number"
10748-
},
1074910738
"showdividers": {
1075010739
"description": "Determines whether or not a dividers are drawn between the category levels of this axis. Only has an effect on *multicategory* axes.",
1075110740
"dflt": true,

0 commit comments

Comments
 (0)