@@ -77,18 +77,20 @@ module.exports = {
77
77
} ) ,
78
78
xsizemode : {
79
79
valType : 'enumerated' ,
80
- values : [ 'data ' , 'pixel' ] ,
81
- dflt : 'data ' ,
80
+ values : [ 'scaled ' , 'pixel' ] ,
81
+ dflt : 'scaled ' ,
82
82
role : 'info' ,
83
83
editType : 'calcIfAutorange+arraydraw' ,
84
84
description : [
85
85
'Sets the shapes\'s sizing mode along the x axis.' ,
86
- 'If set to *data*, `x0`, `x1` and x coordinates within `path` refer to' ,
87
- 'data values on the x axis.' ,
86
+ 'If set to *scaled*, `x0`, `x1` and x coordinates within `path` refer to' ,
87
+ 'data values on the x axis or a fraction of the plot area\'s width' ,
88
+ '(`xref` set to *paper*).' ,
88
89
'If set to *pixel*, `xanchor` specifies the x position in terms' ,
89
- 'of data but `x0`, `x1` and x coordinates within `path`' ,
90
+ 'of data or plot fraction but `x0`, `x1` and x coordinates within `path`' ,
90
91
'are pixels relative to `xanchor`. This way, the shape can have' ,
91
- 'a fixed width while maintaining a position relative to data.'
92
+ 'a fixed width while maintaining a position relative to data or' ,
93
+ 'plot fraction.'
92
94
] . join ( ' ' )
93
95
} ,
94
96
xanchor : {
@@ -134,18 +136,20 @@ module.exports = {
134
136
} ) ,
135
137
ysizemode : {
136
138
valType : 'enumerated' ,
137
- values : [ 'data ' , 'pixel' ] ,
138
- dflt : 'data ' ,
139
+ values : [ 'scaled ' , 'pixel' ] ,
140
+ dflt : 'scaled ' ,
139
141
role : 'info' ,
140
142
editType : 'calcIfAutorange+arraydraw' ,
141
143
description : [
142
144
'Sets the shapes\'s sizing mode along the y axis.' ,
143
- 'If set to *data*, `y0`, `y1` and y coordinates within `path` refer to' ,
144
- 'data values on the y axis.' ,
145
+ 'If set to *scaled*, `y0`, `y1` and y coordinates within `path` refer to' ,
146
+ 'data values on the y axis or a fraction of the plot area\'s height' ,
147
+ '(`yref` set to *paper*).' ,
145
148
'If set to *pixel*, `yanchor` specifies the y position in terms' ,
146
- 'of data but `y0`, `y1` and y coordinates within `path`' ,
149
+ 'of data or plot fraction but `y0`, `y1` and y coordinates within `path`' ,
147
150
'are pixels relative to `yanchor`. This way, the shape can have' ,
148
- 'a fixed height while maintaining a position relative to data.'
151
+ 'a fixed height while maintaining a position relative to data or' ,
152
+ 'plot fraction.'
149
153
] . join ( ' ' )
150
154
} ,
151
155
yanchor : {
@@ -185,7 +189,7 @@ module.exports = {
185
189
editType : 'calcIfAutorange+arraydraw' ,
186
190
description : [
187
191
'For `type` *path* - a valid SVG path with the pixel values' ,
188
- 'replaced by data values in `xsizemode`/`ysizemode` being *data *' ,
192
+ 'replaced by data values in `xsizemode`/`ysizemode` being *scaled *' ,
189
193
'and taken unmodified as pixels relative to `xanchor` and `yanchor`' ,
190
194
'in case of *pixel* size mode.' ,
191
195
'There are a few restrictions / quirks' ,
0 commit comments