Skip to content

Commit 6d3e7bd

Browse files
committed
use info_array instead of data_array for autotickangles
1 parent 361f61b commit 6d3e7bd

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

src/plots/cartesian/layout_attributes.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,11 @@ module.exports = {
812812
].join(' ')
813813
},
814814
autotickangles: {
815-
valType: 'data_array',
815+
valType: 'info_array',
816+
freeLength: true,
817+
items: {
818+
valType: 'angle'
819+
},
816820
dflt: null,
817821
editType: 'ticks',
818822
description: [

test/plot-schema.json

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10703,12 +10703,11 @@
1070310703
"description": "When `tickangle` is set to *auto*, it will be set to the first angle in this array that is large enough to prevent label overlap. If undefined, tickangle *auto* will instead choose between 30 and 90 degrees.",
1070410704
"dflt": null,
1070510705
"editType": "ticks",
10706-
"valType": "data_array"
10707-
},
10708-
"autotickanglessrc": {
10709-
"description": "Sets the source reference on Chart Studio Cloud for `autotickangles`.",
10710-
"editType": "none",
10711-
"valType": "string"
10706+
"freeLength": true,
10707+
"items": {
10708+
"valType": "angle"
10709+
},
10710+
"valType": "info_array"
1071210711
},
1071310712
"autotypenumbers": {
1071410713
"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.",
@@ -12054,12 +12053,11 @@
1205412053
"description": "When `tickangle` is set to *auto*, it will be set to the first angle in this array that is large enough to prevent label overlap. If undefined, tickangle *auto* will instead choose between 30 and 90 degrees.",
1205512054
"dflt": null,
1205612055
"editType": "ticks",
12057-
"valType": "data_array"
12058-
},
12059-
"autotickanglessrc": {
12060-
"description": "Sets the source reference on Chart Studio Cloud for `autotickangles`.",
12061-
"editType": "none",
12062-
"valType": "string"
12056+
"freeLength": true,
12057+
"items": {
12058+
"valType": "angle"
12059+
},
12060+
"valType": "info_array"
1206312061
},
1206412062
"autotypenumbers": {
1206512063
"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.",

0 commit comments

Comments
 (0)