Skip to content

Commit 613fda3

Browse files
committed
plotly#189 adding axis attributes to 3D plots
1 parent 44a0c3d commit 613fda3

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Diff for: src/plots/gl3d/layout/axis_attributes.js

+29
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,35 @@ module.exports = {
6767
dflt: true,
6868
description: 'Sets whether or not this axis is labeled'
6969
},
70+
categorymode: {
71+
valType: 'enumerated',
72+
values: [
73+
'trace', 'category ascending', 'category descending', 'array'
74+
/*, 'value ascending', 'value descending'*/ // value ascending / descending to be implemented later
75+
],
76+
dflt: 'trace',
77+
role: 'info',
78+
description: [
79+
'Specifies the ordering logic for the case of categorical variables.',
80+
'By default, plotly uses *trace*, which specifies the order that is present in the data supplied.',
81+
'Set `categorymode` to *category ascending* or *category descending* if order should be determined by',
82+
'the alphanumerical order of the category names.',
83+
/*'Set `categorymode` to *value ascending* or *value descending* if order should be determined by the',
84+
'numerical order of the values.',*/ // // value ascending / descending to be implemented later
85+
'Set `categorymode` to *array* to derive the ordering from the attribute `categorylist`. If a category',
86+
'is not found in the `categorylist` array, the sorting behavior for that attribute will be identical to',
87+
'the *trace* mode. The unspecified categories will follow the categories in `categorylist`.'
88+
].join(' ')
89+
},
90+
categorylist: {
91+
valType: 'data_array',
92+
role: 'info',
93+
description: [
94+
'Sets the order in which categories on this axis appear.',
95+
'Only has an effect if `categorymode` is set to *array*.',
96+
'Used with `categorymode`.'
97+
].join(' ')
98+
},
7099
title: axesAttrs.title,
71100
titlefont: axesAttrs.titlefont,
72101
type: axesAttrs.type,

0 commit comments

Comments
 (0)