We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f68ea92 commit 9bac6fdCopy full SHA for 9bac6fd
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,6 +169,12 @@ 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 {
0 commit comments