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.
impl EuvChartOption
Fluent declarative builders and safe option accessors for EuvChartOption.
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates an empty declarative chart option ready for fluent chaining.
§Returns
Self- Empty chart option.
Sourcepub fn title(self, title: EuvChartTitle) -> Self
pub fn title(self, title: EuvChartTitle) -> Self
Sourcepub fn legend(self, legend: EuvChartLegend) -> Self
pub fn legend(self, legend: EuvChartLegend) -> Self
Sourcepub fn add_grid(self, grid: EuvChartGrid) -> Self
pub fn add_grid(self, grid: EuvChartGrid) -> Self
Sourcepub fn x_axis(self, axis: EuvChartAxis) -> Self
pub fn x_axis(self, axis: EuvChartAxis) -> Self
Sourcepub fn y_axis(self, axis: EuvChartAxis) -> Self
pub fn y_axis(self, axis: EuvChartAxis) -> Self
Sourcepub fn polar(self, polar: EuvChartPolar) -> Self
pub fn polar(self, polar: EuvChartPolar) -> Self
Sourcepub fn radar(self, radar: EuvChartRadar) -> Self
pub fn radar(self, radar: EuvChartRadar) -> Self
Sourcepub fn single_axis(self, single_axis: EuvChartSingleAxis) -> Self
pub fn single_axis(self, single_axis: EuvChartSingleAxis) -> Self
Sourcepub fn calendar(self, calendar: EuvChartCalendar) -> Self
pub fn calendar(self, calendar: EuvChartCalendar) -> Self
Sourcepub fn geo(self, geo: EuvChartGeo) -> Self
pub fn geo(self, geo: EuvChartGeo) -> Self
Sourcepub fn tooltip(self, tooltip: EuvChartTooltip) -> Self
pub fn tooltip(self, tooltip: EuvChartTooltip) -> Self
Sourcepub fn data_zoom(self, zoom: EuvChartDataZoom) -> Self
pub fn data_zoom(self, zoom: EuvChartDataZoom) -> Self
Sourcepub fn visual_map(self, visual_map: EuvChartVisualMap) -> Self
pub fn visual_map(self, visual_map: EuvChartVisualMap) -> Self
Sourcepub fn toolbox(self, toolbox: EuvChartToolbox) -> Self
pub fn toolbox(self, toolbox: EuvChartToolbox) -> Self
Sourcepub fn dataset(self, dataset: EuvChartDataset) -> Self
pub fn dataset(self, dataset: EuvChartDataset) -> Self
Sourcepub fn color_palette(self, colors: Vec<Color>) -> Self
pub fn color_palette(self, colors: Vec<Color>) -> Self
Sourcepub fn add_series(self, series: EuvChartSeries) -> Self
pub fn add_series(self, series: EuvChartSeries) -> Self
Sourcepub fn background(self, color: Color) -> Self
pub fn background(self, color: Color) -> Self
Sourcepub fn resolved_palette(&self, tokens: ThemeTokens) -> Vec<Color>
pub fn resolved_palette(&self, tokens: ThemeTokens) -> Vec<Color>
Sourcepub fn title_opt(&self) -> Option<&EuvChartTitle>
pub fn title_opt(&self) -> Option<&EuvChartTitle>
Sourcepub fn without_title(&self) -> Self
pub fn without_title(&self) -> Self
Sourcepub fn legend_opt(&self) -> Option<&EuvChartLegend>
pub fn legend_opt(&self) -> Option<&EuvChartLegend>
Sourcepub fn polar_opt(&self) -> Option<&EuvChartPolar>
pub fn polar_opt(&self) -> Option<&EuvChartPolar>
Sourcepub fn radar_opt(&self) -> Option<&EuvChartRadar>
pub fn radar_opt(&self) -> Option<&EuvChartRadar>
Sourcepub fn single_axis_opt(&self) -> Option<&EuvChartSingleAxis>
pub fn single_axis_opt(&self) -> Option<&EuvChartSingleAxis>
Sourcepub fn calendar_opt(&self) -> Option<&EuvChartCalendar>
pub fn calendar_opt(&self) -> Option<&EuvChartCalendar>
Sourcepub fn geo_opt(&self) -> Option<&EuvChartGeo>
pub fn geo_opt(&self) -> Option<&EuvChartGeo>
Sourcepub fn tooltip_opt(&self) -> Option<&EuvChartTooltip>
pub fn tooltip_opt(&self) -> Option<&EuvChartTooltip>
Sourcepub fn visual_map_opt(&self) -> Option<&EuvChartVisualMap>
pub fn visual_map_opt(&self) -> Option<&EuvChartVisualMap>
Sourcepub fn toolbox_opt(&self) -> Option<&EuvChartToolbox>
pub fn toolbox_opt(&self) -> Option<&EuvChartToolbox>
Sourcepub fn dataset_opt(&self) -> Option<&EuvChartDataset>
pub fn dataset_opt(&self) -> Option<&EuvChartDataset>
Source§impl EuvChartOption
impl EuvChartOption
pub fn get_mut_title(&mut self) -> &mut Option<EuvChartTitle>
pub fn set_title(&mut self, val: Option<EuvChartTitle>) -> &mut Self
pub fn get_mut_legend(&mut self) -> &mut Option<EuvChartLegend>
pub fn set_legend(&mut self, val: Option<EuvChartLegend>) -> &mut Self
pub fn get_grid(&self) -> &Vec<EuvChartGrid>
pub fn get_mut_grid(&mut self) -> &mut Vec<EuvChartGrid>
pub fn set_grid(&mut self, val: Vec<EuvChartGrid>) -> &mut Self
pub fn get_x_axes(&self) -> &Vec<EuvChartAxis>
pub fn get_mut_x_axes(&mut self) -> &mut Vec<EuvChartAxis>
pub fn set_x_axes(&mut self, val: Vec<EuvChartAxis>) -> &mut Self
pub fn get_y_axes(&self) -> &Vec<EuvChartAxis>
pub fn get_mut_y_axes(&mut self) -> &mut Vec<EuvChartAxis>
pub fn set_y_axes(&mut self, val: Vec<EuvChartAxis>) -> &mut Self
pub fn get_mut_polar(&mut self) -> &mut Option<EuvChartPolar>
pub fn set_polar(&mut self, val: Option<EuvChartPolar>) -> &mut Self
pub fn get_mut_radar(&mut self) -> &mut Option<EuvChartRadar>
pub fn set_radar(&mut self, val: Option<EuvChartRadar>) -> &mut Self
pub fn get_mut_single_axis(&mut self) -> &mut Option<EuvChartSingleAxis>
pub fn set_single_axis(&mut self, val: Option<EuvChartSingleAxis>) -> &mut Self
pub fn get_mut_calendar(&mut self) -> &mut Option<EuvChartCalendar>
pub fn set_calendar(&mut self, val: Option<EuvChartCalendar>) -> &mut Self
pub fn get_mut_geo(&mut self) -> &mut Option<EuvChartGeo>
pub fn set_geo(&mut self, val: Option<EuvChartGeo>) -> &mut Self
pub fn get_mut_tooltip(&mut self) -> &mut Option<EuvChartTooltip>
pub fn set_tooltip(&mut self, val: Option<EuvChartTooltip>) -> &mut Self
pub fn get_data_zoom(&self) -> &Vec<EuvChartDataZoom>
pub fn get_mut_data_zoom(&mut self) -> &mut Vec<EuvChartDataZoom>
pub fn set_data_zoom(&mut self, val: Vec<EuvChartDataZoom>) -> &mut Self
pub fn get_mut_visual_map(&mut self) -> &mut Option<EuvChartVisualMap>
pub fn set_visual_map(&mut self, val: Option<EuvChartVisualMap>) -> &mut Self
pub fn get_mut_toolbox(&mut self) -> &mut Option<EuvChartToolbox>
pub fn set_toolbox(&mut self, val: Option<EuvChartToolbox>) -> &mut Self
pub fn get_mut_dataset(&mut self) -> &mut Option<EuvChartDataset>
pub fn set_dataset(&mut self, val: Option<EuvChartDataset>) -> &mut Self
pub fn get_mut_color_palette(&mut self) -> &mut Option<Vec<Color>>
pub fn set_color_palette(&mut self, val: Option<Vec<Color>>) -> &mut Self
pub fn get_series(&self) -> &Vec<EuvChartSeries>
pub fn get_mut_series(&mut self) -> &mut Vec<EuvChartSeries>
pub fn set_series(&mut self, val: Vec<EuvChartSeries>) -> &mut Self
pub fn get_mut_background(&mut self) -> &mut Option<Color>
pub fn set_background(&mut self, val: Option<Color>) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvChartOption
impl Clone for EuvChartOption
Source§impl Debug for EuvChartOption
impl Debug for EuvChartOption
Auto Trait Implementations§
impl !RefUnwindSafe for EuvChartOption
impl !Send for EuvChartOption
impl !Sync for EuvChartOption
impl !UnwindSafe for EuvChartOption
impl Forget for EuvChartOption
impl Freeze for EuvChartOptionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<EuvChartGrid>: Freeze,
PhantomData<EuvChartAxis>: Freeze,
PhantomData<EuvChartRadarIndicator>: Freeze,
PhantomData<EuvChartGeoRegion>: Freeze,
PhantomData<EuvChartDataZoom>: Freeze,
PhantomData<Color>: Freeze,
PhantomData<EuvChartVisualPiece>: Freeze,
PhantomData<Vec<EuvChartCell>>: Freeze,
PhantomData<EuvChartSeries>: Freeze,
impl Move for EuvChartOption
impl Unpin for EuvChartOptionwhere
*const u8 is !null: Unpin,
Rc<dyn Fn(Rect, &EuvChartCustomDrawContext, &mut DisplayList)>: Unpin,
impl UnsafeUnpin for EuvChartOptionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<EuvChartGrid>: UnsafeUnpin,
PhantomData<EuvChartAxis>: UnsafeUnpin,
PhantomData<EuvChartRadarIndicator>: UnsafeUnpin,
PhantomData<EuvChartGeoRegion>: UnsafeUnpin,
PhantomData<EuvChartDataZoom>: UnsafeUnpin,
PhantomData<Color>: UnsafeUnpin,
PhantomData<EuvChartVisualPiece>: UnsafeUnpin,
PhantomData<Vec<EuvChartCell>>: UnsafeUnpin,
PhantomData<EuvChartSeries>: UnsafeUnpin,
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