FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Chart

    struct · ferroui-controls-charts · v0.5.0

    struct Chart
    

    Displays cartesian line, area and bar series with shared, observable data. Drawing goes through the framework's retained drawing context on every backend.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<Chart>
    

    Returns a strong reference to this object.

    Source

    show_legend_property

    fn show_legend_property() -> &'static StyledProperty<bool>
    

    Source

    legend_title_property

    fn legend_title_property() -> &'static StyledProperty<String>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    show_legend

    fn show_legend(self: &Self) -> bool
    

    Source

    set_show_legend

    fn set_show_legend(self: &Self, value: bool)
    

    Source

    legend_title

    fn legend_title(self: &Self) -> String
    

    Source

    set_legend_title

    fn set_legend_title(self: &Self, value: impl Into<String>)
    

    Source

    series

    fn series(self: &Self) -> ChartSeriesCollection
    

    Source

    axes

    fn axes(self: &Self) -> ChartAxisCollection
    

    Source

    data

    fn data(self: &Self) -> ChartDataCollection
    

    Source

    revision

    fn revision(self: &Self) -> u64
    

    Increases on a data, collection, style or layout-related property change.

    Source

    scene_build_count

    fn scene_build_count(self: &Self) -> u64
    

    Number of retained scene rebuilds. Unchanged paints reuse the same scene.

    Source

    layout_snapshot

    fn layout_snapshot(self: &Self, size: Size) -> ChartLayout
    

    Returns the calculated plot and point positions without drawing. A normal framework text service is required, as for measuring any text control.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.