@@ -817,8 +817,13 @@ module.exports = {
817817 categoryorder : {
818818 valType : 'enumerated' ,
819819 values : [
820- 'trace' , 'category ascending' , 'category descending' , 'array'
821- /* , 'value ascending', 'value descending'*/ // value ascending / descending to be implemented later
820+ 'trace' , 'category ascending' , 'category descending' , 'array' ,
821+ 'total ascending' , 'total descending' ,
822+ 'min ascending' , 'min descending' ,
823+ 'max ascending' , 'max descending' ,
824+ 'sum ascending' , 'sum descending' ,
825+ 'mean ascending' , 'mean descending' ,
826+ 'median ascending' , 'median descending'
822827 ] ,
823828 dflt : 'trace' ,
824829 role : 'info' ,
@@ -828,11 +833,12 @@ module.exports = {
828833 'By default, plotly uses *trace*, which specifies the order that is present in the data supplied.' ,
829834 'Set `categoryorder` to *category ascending* or *category descending* if order should be determined by' ,
830835 'the alphanumerical order of the category names.' ,
831- /* 'Set `categoryorder` to *value ascending* or *value descending* if order should be determined by the',
832- 'numerical order of the values.',*/ // // value ascending / descending to be implemented later
833836 'Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category' ,
834837 'is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to' ,
835- 'the *trace* mode. The unspecified categories will follow the categories in `categoryarray`.'
838+ 'the *trace* mode. The unspecified categories will follow the categories in `categoryarray`.' ,
839+ 'Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the' ,
840+ 'numerical order of the values.' ,
841+ 'Similarly, the order can be determined by the min, max, sum, mean or median of all the values.'
836842 ] . join ( ' ' )
837843 } ,
838844 categoryarray : {
0 commit comments