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