@@ -121,10 +121,13 @@ module.exports = {
121121        valType : 'number' , 
122122        min : - 2 , 
123123        max : 3 , 
124-         dflt : 1.02 , 
125124        role : 'style' , 
126125        editType : 'legend' , 
127-         description : 'Sets the x position (in normalized coordinates) of the legend.' 
126+         description : [ 
127+             'Sets the x position (in normalized coordinates) of the legend.' , 
128+             'Defaults to *1.02* for vertical legends and' , 
129+             'defaults to *0* for horizontal legends.' 
130+         ] . join ( ' ' ) 
128131    } , 
129132    xanchor : { 
130133        valType : 'enumerated' , 
@@ -135,28 +138,37 @@ module.exports = {
135138        description : [ 
136139            'Sets the legend\'s horizontal position anchor.' , 
137140            'This anchor binds the `x` position to the *left*, *center*' , 
138-             'or *right* of the legend.' 
141+             'or *right* of the legend.' , 
142+             'Value *auto* anchors legends to the right for `x` values greater than or equal to 2/3,' , 
143+             'anchors legends to the left for `x` values less than or equal to 1/3 and' , 
144+             'anchors legends with respect to their center otherwise.' 
139145        ] . join ( ' ' ) 
140146    } , 
141147    y : { 
142148        valType : 'number' , 
143149        min : - 2 , 
144150        max : 3 , 
145-         dflt : 1 , 
146151        role : 'style' , 
147152        editType : 'legend' , 
148-         description : 'Sets the y position (in normalized coordinates) of the legend.' 
153+         description : [ 
154+             'Sets the y position (in normalized coordinates) of the legend.' , 
155+             'Defaults to *1* for vertical legends,' , 
156+             'defaults to *-0.1* for horizontal legends on graphs w/o range sliders and' , 
157+             'defaults to *1.1* for horizontal legends on graph with one or multiple range sliders.' 
158+         ] . join ( ' ' ) 
149159    } , 
150160    yanchor : { 
151161        valType : 'enumerated' , 
152162        values : [ 'auto' ,  'top' ,  'middle' ,  'bottom' ] , 
153-         dflt : 'auto' , 
154163        role : 'info' , 
155164        editType : 'legend' , 
156165        description : [ 
157166            'Sets the legend\'s vertical position anchor' , 
158167            'This anchor binds the `y` position to the *top*, *middle*' , 
159-             'or *bottom* of the legend.' 
168+             'or *bottom* of the legend.' , 
169+             'Value *auto* anchors legends at their bottom for `y` values less than or equal to 1/3,' , 
170+             'anchors legends to at their top for `y` values greater than or equal to 2/3 and' , 
171+             'anchors legends with respect to their middle otherwise.' 
160172        ] . join ( ' ' ) 
161173    } , 
162174    uirevision : { 
0 commit comments