pub enum Padding {
Double(f64),
PaddingClass(PaddingClass),
}
Expand description
The default visualization padding, in pixels, from the edge of the visualization canvas
to the data rectangle. If a number, specifies padding for all sides.
If an object, the value should have the format {"left": 5, "top": 5, "right": 5, "bottom": 5}
to specify padding for each side of the visualization.
Default value: 5
Variants§
Double(f64)
PaddingClass(PaddingClass)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Padding
impl<'de> Deserialize<'de> for Padding
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more