diff --git a/charming/src/series/scatter.rs b/charming/src/series/scatter.rs index e7eb193..f3e43f4 100644 --- a/charming/src/series/scatter.rs +++ b/charming/src/series/scatter.rs @@ -3,7 +3,7 @@ use serde::Serialize; use crate::{ datatype::{DataFrame, DataPoint}, element::{ - ColorBy, CoordinateSystem, DimensionEncode, Emphasis, ItemStyle, MarkArea, MarkLine, + ColorBy, CoordinateSystem, DimensionEncode, Emphasis, ItemStyle, Label, MarkArea, MarkLine, Symbol, SymbolSize, }, }; @@ -19,10 +19,13 @@ pub struct Scatter { #[serde(skip_serializing_if = "Option::is_none")] name: Option, - + #[serde(skip_serializing_if = "Option::is_none")] color_by: Option, + #[serde(skip_serializing_if = "Option::is_none")] + label: Option