@@ -64,22 +64,22 @@ pub static PLOTLY_WHITE: Lazy<Template> = Lazy::new(|| {
64
64
. plot_background_color ( "#ffffff" )
65
65
. title ( Title :: new ( ) . x ( 0.05 ) )
66
66
. x_axis (
67
- Axis :: new ( )
67
+ Vec :: from ( [ Some ( Box :: new ( Axis :: new ( )
68
68
. auto_margin ( true )
69
69
. grid_color ( "#EBF0F8" )
70
70
. line_color ( "#EBF0F8" )
71
71
// missing title.standoff = 15
72
72
. zero_line_color ( "#EBF0F8" )
73
- . zero_line_width ( 2 ) ,
73
+ . zero_line_width ( 2 ) ) ) ] )
74
74
)
75
75
. y_axis (
76
- Axis :: new ( )
76
+ Vec :: from ( [ Some ( Box :: new ( Axis :: new ( )
77
77
. auto_margin ( true )
78
78
. grid_color ( "#EBF0F8" )
79
79
. line_color ( "#EBF0F8" )
80
80
// missing title.standoff = 15
81
81
. zero_line_color ( "#EBF0F8" )
82
- . zero_line_width ( 2 ) ,
82
+ . zero_line_width ( 2 ) ) ) ] )
83
83
) ;
84
84
Template :: new ( ) . layout ( layout_template)
85
85
} ) ;
@@ -140,22 +140,26 @@ pub static PLOTLY_DARK: Lazy<Template> = Lazy::new(|| {
140
140
. plot_background_color ( "#111111" )
141
141
. title ( Title :: new ( ) . x ( 0.05 ) )
142
142
. x_axis (
143
- Axis :: new ( )
144
- . auto_margin ( true )
145
- . grid_color ( "#283442" )
146
- . line_color ( "#506784" )
147
- // missing title.standoff = 15
148
- . zero_line_color ( "#283442" )
149
- . zero_line_width ( 2 ) ,
143
+ Vec :: from (
144
+ [ Some ( Box :: new ( Axis :: new ( )
145
+ . auto_margin ( true )
146
+ . grid_color ( "#283442" )
147
+ . line_color ( "#506784" )
148
+ // missing title.standoff = 15
149
+ . zero_line_color ( "#283442" )
150
+ . zero_line_width ( 2 ) ) ) ]
151
+ )
150
152
)
151
153
. y_axis (
152
- Axis :: new ( )
153
- . auto_margin ( true )
154
- . grid_color ( "#283442" )
155
- . line_color ( "#506784" )
156
- // missing title.standoff = 15
157
- . zero_line_color ( "#283442" )
158
- . zero_line_width ( 2 ) ,
154
+ Vec :: from (
155
+ [ Some ( Box :: new ( Axis :: new ( )
156
+ . auto_margin ( true )
157
+ . grid_color ( "#283442" )
158
+ . line_color ( "#506784" )
159
+ // missing title.standoff = 15
160
+ . zero_line_color ( "#283442" )
161
+ . zero_line_width ( 2 ) ) ) ]
162
+ )
159
163
) ;
160
164
Template :: new ( ) . layout ( layout_template)
161
165
} ) ;
0 commit comments