@@ -67,6 +67,35 @@ module.exports = {
67
67
dflt : true ,
68
68
description : 'Sets whether or not this axis is labeled'
69
69
} ,
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
+ } ,
70
99
title : axesAttrs . title ,
71
100
titlefont : axesAttrs . titlefont ,
72
101
type : axesAttrs . type ,
0 commit comments