pub struct ChartStyleSpec {
pub height: Option<f64>,
pub width: Option<f64>,
pub colors: Option<Vec<String>>,
pub grid: Option<GridSpec>,
pub show_dots: Option<bool>,
pub stroke_width: Option<f64>,
pub curve_type: Option<String>,
pub fill_opacity: Option<f64>,
pub fonts: Option<FontsSpec>,
pub legend: Option<LegendSpec>,
}Fields§
§height: Option<f64>§width: Option<f64>§colors: Option<Vec<String>>Color palette for chart series.
Colors are assigned per series, not per category/bar:
- Single-series chart (no
marks.color): ALL bars/points usecolors[0] - Multi-series chart (
marks.coloror multiplerows): each series getscolors[series_index], cycling if more series than colors
This matches the JS chartml behavior (d3ChartMapper.js lines 139-146).
grid: Option<GridSpec>§show_dots: Option<bool>§stroke_width: Option<f64>§curve_type: Option<String>§fill_opacity: Option<f64>§fonts: Option<FontsSpec>§legend: Option<LegendSpec>Trait Implementations§
Source§impl Clone for ChartStyleSpec
impl Clone for ChartStyleSpec
Source§fn clone(&self) -> ChartStyleSpec
fn clone(&self) -> ChartStyleSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChartStyleSpec
impl Debug for ChartStyleSpec
Source§impl<'de> Deserialize<'de> for ChartStyleSpec
impl<'de> Deserialize<'de> for ChartStyleSpec
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
Auto Trait Implementations§
impl Freeze for ChartStyleSpec
impl RefUnwindSafe for ChartStyleSpec
impl Send for ChartStyleSpec
impl Sync for ChartStyleSpec
impl Unpin for ChartStyleSpec
impl UnsafeUnpin for ChartStyleSpec
impl UnwindSafe for ChartStyleSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more