pub struct Chart {Show 25 fields
pub chart_type: ChartType,
pub data: Vec<ChartDataPoint>,
pub animated: bool,
pub animation_duration: f64,
pub colors: Option<Vec<String>>,
pub inner_radius: f64,
pub fill_opacity: f32,
pub smooth: bool,
pub categories: Vec<String>,
pub series: Vec<ChartSeries>,
pub axes: Vec<String>,
pub radar_data: Vec<RadarData>,
pub points: Vec<ScatterPoint>,
pub direction: Option<ChartDirection>,
pub show_grid: bool,
pub show_x_labels: bool,
pub show_y_labels: bool,
pub grid_color: String,
pub label_color: String,
pub label_font_size: f32,
pub show_labels: bool,
pub timing: TimingConfig,
pub style: CssStyle,
pub timeline: Vec<TimelineStep>,
pub stagger: Option<f32>,
}chart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Fields§
§chart_type: ChartTypechart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
data: Vec<ChartDataPoint>chart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
animated: boolchart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
animation_duration: f64chart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
colors: Option<Vec<String>>chart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
inner_radius: f64chart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
fill_opacity: f32chart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
smooth: boolchart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
categories: Vec<String>chart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
series: Vec<ChartSeries>chart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
axes: Vec<String>chart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
radar_data: Vec<RadarData>chart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
points: Vec<ScatterPoint>chart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
direction: Option<ChartDirection>chart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Direction for funnel chart: “vertical” (default) or “horizontal”.
show_grid: boolchart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
show_x_labels: boolchart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
show_y_labels: boolchart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
grid_color: Stringchart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
label_color: Stringchart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
label_font_size: f32chart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
show_labels: boolchart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
timing: TimingConfigchart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
style: CssStylechart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
timeline: Vec<TimelineStep>chart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
stagger: Option<f32>chart is a frozen composition. Compose a for-each over the data with a computed height/width expression per bar (proportional size, index-staggered grow-in) instead — see crates/rustmotion/skills/rules/composition-recipes.md. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Trait Implementations§
Source§impl Animatable for Chart
impl Animatable for Chart
fn animation_effects(&self) -> &[AnimationEffect]
fn timeline_steps(&self) -> &[TimelineStep]
Source§impl<'de> Deserialize<'de> for Chart
impl<'de> Deserialize<'de> for Chart
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>,
Source§impl JsonSchema for Chart
impl JsonSchema for Chart
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl Painter for Chart
impl Painter for Chart
fn paint_content( &self, canvas: &Canvas, layout: &BoxLayout, _props: &AnimatedProperties, ctx: &PaintCtx, )
fn intrinsic_size( &self, _available: AvailableSize, _ctx: &MeasureCtx, ) -> Option<(f32, f32)>
Auto Trait Implementations§
impl Freeze for Chart
impl RefUnwindSafe for Chart
impl Send for Chart
impl Sync for Chart
impl Unpin for Chart
impl UnsafeUnpin for Chart
impl UnwindSafe for Chart
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more