Skip to main content

EuvEChart

Struct EuvEChart 

Source
pub struct EuvEChart { /* private fields */ }
Expand description

Full-featured native vector Apache ECharts component supporting all 20 series types, multi-axis grids, interactive legends, tooltips, DataZoom, VisualMap, and compact icon-only Toolbox.

Implementations§

Source§

impl EuvEChart

Constructors and fluent prop builders for EuvEChart.

Source

pub fn new(option: EuvChartOption, tokens: ThemeTokens) -> Self

Constructs an interactive EuvEChart from a static EuvChartOption and ThemeTokens.

§Arguments
  • EuvChartOption - Declarative chart option document.
  • ThemeTokens - Active UI theme tokens.
§Returns
  • Self - Constructed chart component.
Source

pub fn from_signal( option_signal: Signal<EuvChartOption>, tokens: ThemeTokens, ) -> Self

Constructs a reactive EuvEChart driven by a live Signal<EuvChartOption>.

§Arguments
  • Signal<EuvChartOption> - Reactive chart option signal.
  • ThemeTokens - Active UI theme tokens.
§Returns
  • Self - Constructed reactive chart component.
Source

pub fn option(self, option: EuvChartOption) -> Self

Sets the declarative chart option fluently (used by view! { EuvEChart { option: ... } }).

§Arguments
  • Self - Source chart component.
  • EuvChartOption - Declarative chart option.
§Returns
  • Self - Updated chart component.
Source

pub fn option_signal(self, option_signal: Signal<EuvChartOption>) -> Self

Binds a reactive Signal<EuvChartOption> fluently.

§Arguments
  • Self - Source chart component.
  • Signal<EuvChartOption> - Reactive option signal.
§Returns
  • Self - Updated chart component.
Source

pub fn option_loader(self, loader: EuvChartOptionLoader) -> Self

Registers a deferred chart option factory evaluated lazily on first visible paint or interactive inspection.

§Arguments
  • Self - Source chart component.
  • EuvChartOptionLoader - Deferred full chart option builder.
§Returns
  • Self - Updated chart component.
Source

pub fn tokens(self, tokens: ThemeTokens) -> Self

Sets the active UI theme tokens fluently.

§Arguments
  • Self - Source chart component.
  • ThemeTokens - Theme token bundle.
§Returns
  • Self - Updated chart component.
Source

pub fn interactive(self, interactive: bool) -> Self

Enables or disables pointer interaction fluently.

§Arguments
  • Self - Source chart component.
  • bool - Interaction enabled flag.
§Returns
  • Self - Updated chart component.
Source

pub fn on_point_click(self, handler: EuvChartHitCallback) -> Self

Registers a datum click callback fluently.

§Arguments
  • Self - Source chart component.
  • EuvChartHitCallback - Click callback invoked with clicked datum hit.
§Returns
  • Self - Updated chart component.
Source

pub fn on_legend_change(self, handler: EuvChartLegendCallback) -> Self

Registers a legend toggle callback fluently.

§Arguments
  • Self - Source chart component.
  • EuvChartLegendCallback - Legend toggle callback (series_name, visible).
§Returns
  • Self - Updated chart component.
Source

pub fn on_zoom_change(self, handler: Rc<dyn Fn(f32, f32)>) -> Self

Registers a data-zoom change callback fluently.

§Arguments
  • Self - Source chart component.
  • Rc<dyn Fn(f32, f32)> - Zoom callback (start_pct, end_pct).
§Returns
  • Self - Updated chart component.
Source§

impl EuvEChart

Source

pub fn get_option(&self) -> &EuvChartOption

Source

pub fn get_mut_option(&mut self) -> &mut EuvChartOption

Source

pub fn set_option(&mut self, val: EuvChartOption) -> &mut Self

Source

pub fn get_mut_option_signal(&mut self) -> &mut Option<Signal<EuvChartOption>>

Source

pub fn set_option_signal( &mut self, val: Option<Signal<EuvChartOption>>, ) -> &mut Self

Source

pub fn get_mut_option_loader(&mut self) -> &mut Option<EuvChartOptionLoader>

Source

pub fn set_option_loader( &mut self, val: Option<EuvChartOptionLoader>, ) -> &mut Self

Source

pub fn get_tokens(&self) -> ThemeTokens

Source

pub fn get_mut_tokens(&mut self) -> &mut ThemeTokens

Source

pub fn set_tokens(&mut self, val: ThemeTokens) -> &mut Self

Source

pub fn get_style(&self) -> Option<Style>

Source

pub fn try_get_style(&self) -> Option<Style>

Source

pub fn get_mut_style(&mut self) -> &mut Option<Style>

Source

pub fn set_style(&mut self, val: Option<Style>) -> &mut Self

Source

pub fn get_interactive(&self) -> bool

Source

pub fn get_mut_interactive(&mut self) -> &mut bool

Source

pub fn set_interactive(&mut self, val: bool) -> &mut Self

Source

pub fn get_mut_on_point_click(&mut self) -> &mut Option<EuvChartHitCallback>

Source

pub fn set_on_point_click( &mut self, val: Option<EuvChartHitCallback>, ) -> &mut Self

Source

pub fn get_mut_on_legend_change( &mut self, ) -> &mut Option<EuvChartLegendCallback>

Source

pub fn set_on_legend_change( &mut self, val: Option<EuvChartLegendCallback>, ) -> &mut Self

Source

pub fn get_mut_on_zoom_change( &mut self, ) -> &mut Option<Rc<dyn Fn(f32, f32) + 'static>>

Source

pub fn set_on_zoom_change( &mut self, val: Option<Rc<dyn Fn(f32, f32) + 'static>>, ) -> &mut Self

Source§

impl EuvEChart

Implements impl #impl_generics #struct_ident #ty_generics #where_clause.

Source

pub fn style<StyleValue>(self, value: StyleValue) -> Self
where StyleValue: Into<Option<Style>>,

Trait Implementations§

Source§

impl Clone for EuvEChart

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Component for EuvEChart

Implements impl #impl_generics ::euv::Component for #self_type #where_clause.

Source§

fn render(&self) -> NodeId

Mounts EuvEChart with cached vector canvas rendering, pointer tooltip/legend/DataZoom handling, compact icon-only Toolbox, DataView table, and Fullscreen portal modal.

§Arguments
  • &Self - Chart component descriptor.
§Returns
  • NodeId - Mounted root scene node handle.
Source§

const NEEDS_LIFECYCLE: bool = false

Compile-time opt-in flag indicating whether this component overrides lifecycle hooks or retention policy and requires Rc<Self> observer registration on mount.
Source§

fn mount(self) -> NodeId

Mounts this component through the complete framework lifecycle (on_create -> render -> on_mount) and registers its Lifecycle observer on the mounted node. Read more
Source§

impl ComponentProps for EuvEChart

Implements impl #impl_generics ::euv::ComponentProps for #struct_ident #ty_generics #where_clause.

Source§

fn init_props() -> Self

Implements the init_props operation on Self.

Source§

impl Debug for EuvEChart

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the struct fields as a debug struct, skipping excluded fields.

§Arguments
  • &mut ::std::fmt::Formatter<'_> - The formatter to write the representation into.
§Returns
  • ::std::fmt::Result - Success or failure of the formatting operation.
Source§

impl Default for EuvEChart

Default props for EuvEChart (100% width, 320px height, interactive enabled).

Source§

fn default() -> Self

Creates an empty interactive EuvEChart ready for view! named-prop setters.

§Returns
  • Self - Default chart component.
Source§

impl Lifecycle for EuvEChart

Implements impl #impl_generics ::euv::Lifecycle for #self_type #where_clause.

Source§

fn retention_policy(&self) -> PageRetention

Declares how the framework retains this page or component when navigating away. Read more
Source§

fn on_create(&self)

Invoked once immediately before the component’s initial render pass executes. Read more
Source§

fn on_mount(&self, _node: NodeId)

Invoked once immediately after render attaches the root NodeId to the scene tree. Read more
Source§

fn on_update(&self, _node: NodeId)

Invoked when external props, theme tokens, or cross-page state trigger a component update. Read more
Source§

fn on_activate(&self, _node: NodeId)

Invoked whenever this component or routed page becomes the active visible view. Read more
Source§

fn on_freeze(&self, _node: NodeId)

Invoked when the router or parent suspends this subtree under PageRetention::Freeze. Read more
Source§

fn on_resume(&self, _node: NodeId)

Invoked when a previously frozen subtree resumes and coalesced cross-page updates flush. Read more
Source§

fn on_unmount(&self, _node: NodeId)

Invoked immediately before the subtree is detached and its reactive scope is disposed. Read more
Source§

fn on_destroy(&self)

Invoked after the component’s reactive scope and child nodes have been fully destroyed. Read more
Source§

fn on_error(&self, _error: &str)

Invoked when an error boundary or runtime fault surfaces inside this component subtree. Read more
Source§

fn on_appear(&self)

Invoked when this component, routed page, or application window becomes visually presented. Read more
Source§

fn on_disappear(&self)

Invoked when this component, routed page, or application window ceases to be visually presented. Read more
Source§

fn on_foreground(&self)

Invoked when the application returns to active foreground execution. Read more
Source§

fn on_background(&self)

Invoked when the application enters suspended/hidden background execution. Read more
Source§

fn on_inactive(&self)

Invoked when the application enters inactive status (occluded, app switcher, or deactivated). Read more
Source§

fn on_terminate(&self)

Invoked when the application is terminating gracefully. Read more
Source§

fn on_system_event(&self, _event: &SystemEvent)

Invoked for every normalized cross-platform SystemEvent delivered while this component is active. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for EuvEChart

§

impl !Send for EuvEChart

§

impl !Sync for EuvEChart

§

impl !UnwindSafe for EuvEChart

§

impl Forget for EuvEChart

§

impl Freeze for EuvEChart

§

impl Move for EuvEChart

§

impl Unpin for EuvEChart
where *const u8 is !null: Unpin, Rc<dyn Fn(Rect, &EuvChartCustomDrawContext, &mut DisplayList)>: Unpin, Rc<dyn Fn() -> EuvChartOption>: Unpin, Rc<dyn Fn(&EuvChartDatumHit)>: Unpin, Rc<dyn Fn(&str, bool)>: Unpin, Rc<dyn Fn(f32, f32)>: Unpin,

§

impl UnsafeUnpin for EuvEChart

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.