File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 56
56
opacity : Option < f64 > ,
57
57
ids : Option < Vec < String > > ,
58
58
width : Option < f64 > ,
59
- offset : Option < Dim < usize > > ,
59
+ offset : Option < Dim < f64 > > ,
60
60
text : Option < Dim < String > > ,
61
61
#[ serde( rename = "textposition" ) ]
62
62
text_position : Option < Dim < TextPosition > > ,
@@ -162,8 +162,8 @@ mod tests {
162
162
. legend_group_title ( "legend-group-title" )
163
163
. marker ( Marker :: new ( ) )
164
164
. name ( "Bar" )
165
- . offset ( 5 )
166
- . offset_array ( vec ! [ 5 , 5 ] )
165
+ . offset ( 5.0 )
166
+ . offset_array ( vec ! [ 5.0 , 5.0 ] )
167
167
. offset_group ( "offset_group" )
168
168
. opacity ( 0.5 )
169
169
. orientation ( Orientation :: Vertical )
@@ -198,7 +198,7 @@ mod tests {
198
198
"opacity" : 0.5 ,
199
199
"ids" : [ "1" ] ,
200
200
"width" : 999.0 ,
201
- "offset" : [ 5 , 5 ] ,
201
+ "offset" : [ 5.0 , 5.0 ] ,
202
202
"text" : [ "text" ] ,
203
203
"textposition" : [ "none" ] ,
204
204
"texttemplate" : [ "text_template" ] ,
You can’t perform that action at this time.
0 commit comments