Skip to main content

EuvChartOption

Struct EuvChartOption 

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

Complete declarative Apache ECharts option document rendered natively by EuvEChart.

Implementations§

Source§

impl EuvChartOption

Fluent declarative builders and safe option accessors for EuvChartOption.

Source

pub fn new() -> Self

Creates an empty declarative chart option ready for fluent chaining.

§Returns
  • Self - Empty chart option.
Source

pub fn title(self, title: EuvChartTitle) -> Self

Sets the chart title block fluently.

§Arguments
  • Self - Source chart option.
  • EuvChartTitle - Title configuration.
§Returns
  • Self - Updated chart option.
Source

pub fn legend(self, legend: EuvChartLegend) -> Self

Sets the interactive legend configuration fluently.

§Arguments
  • Self - Source chart option.
  • EuvChartLegend - Legend configuration.
§Returns
  • Self - Updated chart option.
Source

pub fn add_grid(self, grid: EuvChartGrid) -> Self

Appends a Cartesian subplot grid fluently.

§Arguments
  • Self - Source chart option.
  • EuvChartGrid - Subplot grid specification.
§Returns
  • Self - Updated chart option.
Source

pub fn x_axis(self, axis: EuvChartAxis) -> Self

Appends an X axis fluently (supporting dual or multi-axis layouts).

§Arguments
  • Self - Source chart option.
  • EuvChartAxis - X axis configuration.
§Returns
  • Self - Updated chart option.
Source

pub fn y_axis(self, axis: EuvChartAxis) -> Self

Appends a Y axis fluently (supporting dual or multi-axis layouts).

§Arguments
  • Self - Source chart option.
  • EuvChartAxis - Y axis configuration.
§Returns
  • Self - Updated chart option.
Source

pub fn polar(self, polar: EuvChartPolar) -> Self

Sets the polar coordinate system fluently.

§Arguments
  • Self - Source chart option.
  • EuvChartPolar - Polar coordinate configuration.
§Returns
  • Self - Updated chart option.
Source

pub fn radar(self, radar: EuvChartRadar) -> Self

Sets the radar coordinate system fluently.

§Arguments
  • Self - Source chart option.
  • EuvChartRadar - Radar coordinate configuration.
§Returns
  • Self - Updated chart option.
Source

pub fn single_axis(self, single_axis: EuvChartSingleAxis) -> Self

Sets the single-axis coordinate system fluently.

§Arguments
  • Self - Source chart option.
  • EuvChartSingleAxis - Single-axis configuration.
§Returns
  • Self - Updated chart option.
Source

pub fn calendar(self, calendar: EuvChartCalendar) -> Self

Sets the calendar coordinate system fluently.

§Arguments
  • Self - Source chart option.
  • EuvChartCalendar - Calendar configuration.
§Returns
  • Self - Updated chart option.
Source

pub fn geo(self, geo: EuvChartGeo) -> Self

Sets the geographic coordinate system fluently.

§Arguments
  • Self - Source chart option.
  • EuvChartGeo - Geo configuration.
§Returns
  • Self - Updated chart option.
Source

pub fn tooltip(self, tooltip: EuvChartTooltip) -> Self

Sets the interactive hover tooltip configuration fluently.

§Arguments
  • Self - Source chart option.
  • EuvChartTooltip - Tooltip configuration.
§Returns
  • Self - Updated chart option.
Source

pub fn data_zoom(self, zoom: EuvChartDataZoom) -> Self

Appends a data-zoom controller (Inside or Slider) fluently.

§Arguments
  • Self - Source chart option.
  • EuvChartDataZoom - Data-zoom controller.
§Returns
  • Self - Updated chart option.
Source

pub fn visual_map(self, visual_map: EuvChartVisualMap) -> Self

Sets the continuous or piecewise visual-map controller fluently.

§Arguments
  • Self - Source chart option.
  • EuvChartVisualMap - Visual-map configuration.
§Returns
  • Self - Updated chart option.
Source

pub fn toolbox(self, toolbox: EuvChartToolbox) -> Self

Sets the compact icon-only toolbox toolbar fluently.

§Arguments
  • Self - Source chart option.
  • EuvChartToolbox - Toolbox configuration.
§Returns
  • Self - Updated chart option.
Source

pub fn dataset(self, dataset: EuvChartDataset) -> Self

Sets a shared tabular dataset fluently.

§Arguments
  • Self - Source chart option.
  • EuvChartDataset - Shared dataset.
§Returns
  • Self - Updated chart option.
Source

pub fn color_palette(self, colors: Vec<Color>) -> Self

Overrides the categorical color palette fluently.

§Arguments
  • Self - Source chart option.
  • Vec<Color> - Custom ordered palette colors.
§Returns
  • Self - Updated chart option.
Source

pub fn add_series(self, series: EuvChartSeries) -> Self

Appends a typed series fluently.

§Arguments
  • Self - Source chart option.
  • EuvChartSeries - Named series entry.
§Returns
  • Self - Updated chart option.
Source

pub fn background(self, color: Color) -> Self

Overrides the canvas background color fluently.

§Arguments
  • Self - Source chart option.
  • Color - Explicit background color.
§Returns
  • Self - Updated chart option.
Source

pub fn resolved_palette(&self, tokens: ThemeTokens) -> Vec<Color>

Resolves the active categorical color palette for tokens.

§Arguments
  • &Self - Source chart option.
  • ThemeTokens - Active UI theme tokens.
§Returns
  • Vec<Color> - Non-empty high-contrast categorical color palette.
Source

pub fn title_opt(&self) -> Option<&EuvChartTitle>

Returns the optional chart title reference.

§Arguments
  • &Self - Chart option.
§Returns
  • Option<&EuvChartTitle> - Title configuration.
Source

pub fn without_title(&self) -> Self

Returns a cloned chart option with its title cleared so host header chrome can render the title once without canvas duplication.

§Arguments
  • &Self - Source chart option.
§Returns
  • Self - Cloned option with title set to None.
Source

pub fn legend_opt(&self) -> Option<&EuvChartLegend>

Returns the optional legend reference.

§Arguments
  • &Self - Chart option.
§Returns
  • Option<&EuvChartLegend> - Legend configuration.
Source

pub fn polar_opt(&self) -> Option<&EuvChartPolar>

Returns the optional polar coordinate system reference.

§Arguments
  • &Self - Chart option.
§Returns
  • Option<&EuvChartPolar> - Polar coordinate configuration.
Source

pub fn radar_opt(&self) -> Option<&EuvChartRadar>

Returns the optional radar coordinate system reference.

§Arguments
  • &Self - Chart option.
§Returns
  • Option<&EuvChartRadar> - Radar coordinate configuration.
Source

pub fn single_axis_opt(&self) -> Option<&EuvChartSingleAxis>

Returns the optional single-axis coordinate system reference.

§Arguments
  • &Self - Chart option.
§Returns
  • Option<&EuvChartSingleAxis> - Single-axis configuration.
Source

pub fn calendar_opt(&self) -> Option<&EuvChartCalendar>

Returns the optional calendar coordinate system reference.

§Arguments
  • &Self - Chart option.
§Returns
  • Option<&EuvChartCalendar> - Calendar configuration.
Source

pub fn geo_opt(&self) -> Option<&EuvChartGeo>

Returns the optional geographic coordinate system reference.

§Arguments
  • &Self - Chart option.
§Returns
  • Option<&EuvChartGeo> - Geo coordinate configuration.
Source

pub fn tooltip_opt(&self) -> Option<&EuvChartTooltip>

Returns the optional tooltip configuration reference.

§Arguments
  • &Self - Chart option.
§Returns
  • Option<&EuvChartTooltip> - Tooltip configuration.
Source

pub fn visual_map_opt(&self) -> Option<&EuvChartVisualMap>

Returns the optional visual-map configuration reference.

§Arguments
  • &Self - Chart option.
§Returns
  • Option<&EuvChartVisualMap> - Visual-map configuration.
Source

pub fn toolbox_opt(&self) -> Option<&EuvChartToolbox>

Returns the optional toolbox configuration reference.

§Arguments
  • &Self - Chart option.
§Returns
  • Option<&EuvChartToolbox> - Toolbox configuration.
Source

pub fn dataset_opt(&self) -> Option<&EuvChartDataset>

Returns the optional shared dataset reference.

§Arguments
  • &Self - Chart option.
§Returns
  • Option<&EuvChartDataset> - Shared dataset.
Source

pub fn background_opt(&self) -> Option<Color>

Returns the optional explicit background color.

§Arguments
  • &Self - Chart option.
§Returns
  • Option<Color> - Explicit background color.
Source§

impl EuvChartOption

Source

pub fn get_mut_title(&mut self) -> &mut Option<EuvChartTitle>

Source

pub fn set_title(&mut self, val: Option<EuvChartTitle>) -> &mut Self

Source

pub fn get_mut_legend(&mut self) -> &mut Option<EuvChartLegend>

Source

pub fn set_legend(&mut self, val: Option<EuvChartLegend>) -> &mut Self

Source

pub fn get_grid(&self) -> &Vec<EuvChartGrid>

Source

pub fn get_mut_grid(&mut self) -> &mut Vec<EuvChartGrid>

Source

pub fn set_grid(&mut self, val: Vec<EuvChartGrid>) -> &mut Self

Source

pub fn get_x_axes(&self) -> &Vec<EuvChartAxis>

Source

pub fn get_mut_x_axes(&mut self) -> &mut Vec<EuvChartAxis>

Source

pub fn set_x_axes(&mut self, val: Vec<EuvChartAxis>) -> &mut Self

Source

pub fn get_y_axes(&self) -> &Vec<EuvChartAxis>

Source

pub fn get_mut_y_axes(&mut self) -> &mut Vec<EuvChartAxis>

Source

pub fn set_y_axes(&mut self, val: Vec<EuvChartAxis>) -> &mut Self

Source

pub fn get_mut_polar(&mut self) -> &mut Option<EuvChartPolar>

Source

pub fn set_polar(&mut self, val: Option<EuvChartPolar>) -> &mut Self

Source

pub fn get_mut_radar(&mut self) -> &mut Option<EuvChartRadar>

Source

pub fn set_radar(&mut self, val: Option<EuvChartRadar>) -> &mut Self

Source

pub fn get_mut_single_axis(&mut self) -> &mut Option<EuvChartSingleAxis>

Source

pub fn set_single_axis(&mut self, val: Option<EuvChartSingleAxis>) -> &mut Self

Source

pub fn get_mut_calendar(&mut self) -> &mut Option<EuvChartCalendar>

Source

pub fn set_calendar(&mut self, val: Option<EuvChartCalendar>) -> &mut Self

Source

pub fn get_mut_geo(&mut self) -> &mut Option<EuvChartGeo>

Source

pub fn set_geo(&mut self, val: Option<EuvChartGeo>) -> &mut Self

Source

pub fn get_mut_tooltip(&mut self) -> &mut Option<EuvChartTooltip>

Source

pub fn set_tooltip(&mut self, val: Option<EuvChartTooltip>) -> &mut Self

Source

pub fn get_data_zoom(&self) -> &Vec<EuvChartDataZoom>

Source

pub fn get_mut_data_zoom(&mut self) -> &mut Vec<EuvChartDataZoom>

Source

pub fn set_data_zoom(&mut self, val: Vec<EuvChartDataZoom>) -> &mut Self

Source

pub fn get_mut_visual_map(&mut self) -> &mut Option<EuvChartVisualMap>

Source

pub fn set_visual_map(&mut self, val: Option<EuvChartVisualMap>) -> &mut Self

Source

pub fn get_mut_toolbox(&mut self) -> &mut Option<EuvChartToolbox>

Source

pub fn set_toolbox(&mut self, val: Option<EuvChartToolbox>) -> &mut Self

Source

pub fn get_mut_dataset(&mut self) -> &mut Option<EuvChartDataset>

Source

pub fn set_dataset(&mut self, val: Option<EuvChartDataset>) -> &mut Self

Source

pub fn get_mut_color_palette(&mut self) -> &mut Option<Vec<Color>>

Source

pub fn set_color_palette(&mut self, val: Option<Vec<Color>>) -> &mut Self

Source

pub fn get_series(&self) -> &Vec<EuvChartSeries>

Source

pub fn get_mut_series(&mut self) -> &mut Vec<EuvChartSeries>

Source

pub fn set_series(&mut self, val: Vec<EuvChartSeries>) -> &mut Self

Source

pub fn get_mut_background(&mut self) -> &mut Option<Color>

Source

pub fn set_background(&mut self, val: Option<Color>) -> &mut Self

Trait Implementations§

Source§

impl Clone for EuvChartOption

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 Debug for EuvChartOption

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for EuvChartOption

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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.