We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f68ea92 commit 42065b3Copy full SHA for 42065b3
plotly/src/plot.rs
@@ -156,7 +156,7 @@ impl Traces {
156
/// Ok(())
157
/// }
158
/// ```
159
-#[derive(Default, Serialize, Clone)]
+#[derive(Serialize, Clone)]
160
pub struct Plot {
161
#[serde(rename = "data")]
162
traces: Traces,
@@ -169,13 +169,21 @@ pub struct Plot {
169
js_scripts: String,
170
}
171
172
+impl Default for Plot {
173
+ fn default() -> Self {
174
+ Self::new()
175
+ }
176
+}
177
+
178
impl Plot {
179
/// Create a new `Plot`.
180
pub fn new() -> Plot {
181
Plot {
182
traces: Traces::new(),
183
+ layout: Layout::default(),
184
+ configuration: Configuration::default(),
185
+ frames: None,
186
js_scripts: Self::js_scripts(),
- ..Default::default()
187
188
189
0 commit comments