pub struct SeriesOption {Show 46 fields
pub kind: SeriesType,
pub name: String,
pub data: Vec<DataValue>,
pub x_axis_index: Option<usize>,
pub y_axis_index: Option<usize>,
pub polar_index: Option<usize>,
pub radar_index: Option<usize>,
pub geo_index: Option<usize>,
pub calendar_index: Option<usize>,
pub dataset_index: Option<usize>,
pub stack: Option<String>,
pub z: Option<i32>,
pub zlevel: Option<i32>,
pub silent: bool,
pub show: bool,
pub animation: Option<bool>,
pub item_style: Option<ItemStyleOption>,
pub line_style: Option<LineStyleOption>,
pub label: Option<LabelOption>,
pub label_layout: Option<LabelLayoutOption>,
pub emphasis: Option<EmphasisOption>,
pub blur: Option<BlurOption>,
pub mark_point: Option<MarkPointOption>,
pub mark_line: Option<MarkLineOption>,
pub mark_area: Option<MarkAreaOption>,
pub color: Option<String>,
pub bar: Option<BarOptions>,
pub line: Option<LineOptions>,
pub pie: Option<PieOptions>,
pub scatter: Option<ScatterOptions>,
pub radar: Option<RadarOptions>,
pub gauge: Option<GaugeOptions>,
pub funnel: Option<FunnelOptions>,
pub heatmap: Option<HeatmapOptions>,
pub graph: Option<GraphOptions>,
pub treemap: Option<TreemapOptions>,
pub sunburst: Option<SunburstOptions>,
pub boxplot: Option<BoxplotOptions>,
pub candlestick: Option<CandlestickOptions>,
pub theme_river: Option<ThemeRiverOptions>,
pub sankey: Option<SankeyOptions>,
pub parallel: Option<ParallelOptions>,
pub pictorial_bar: Option<PictorialBarOptions>,
pub lines: Option<LinesOptions>,
pub map: Option<MapOptions>,
pub custom: Option<CustomOptions>,
}Expand description
The options of one series.
One type covers every ECharts series kind: the fields that only make sense for some kinds are grouped into the matching options struct, and the renderer ignores the ones that do not apply to its kind.
Fields§
§kind: SeriesTypeThe kind of the series.
name: StringThe name of the series, used by the legend and the tooltip.
data: Vec<DataValue>The data of the series.
x_axis_index: Option<usize>The index of the x-axis the series is bound to.
y_axis_index: Option<usize>The index of the y-axis the series is bound to.
polar_index: Option<usize>The index of the polar coordinate system the series is bound to.
radar_index: Option<usize>The index of the radar coordinate system the series is bound to.
geo_index: Option<usize>The index of the geo component the series is bound to.
calendar_index: Option<usize>The index of the calendar component the series is bound to.
dataset_index: Option<usize>The name of the dataset the series draws its data from.
stack: Option<String>The stack the series is stacked in.
z: Option<i32>The paint order of the series.
zlevel: Option<i32>The canvas layer the series is drawn on.
silent: boolWhether the series ignores pointer events.
show: boolWhether the series is drawn at all.
animation: Option<bool>Whether the series is animated.
item_style: Option<ItemStyleOption>The fill of the series’ shapes.
line_style: Option<LineStyleOption>The stroke of the series’ shapes.
label: Option<LabelOption>The label of the series’ data points.
label_layout: Option<LabelLayoutOption>The rules that move the series’ labels out of each other’s way.
emphasis: Option<EmphasisOption>The style applied when a data point is highlighted.
blur: Option<BlurOption>The style applied when a data point is not highlighted.
mark_point: Option<MarkPointOption>The mark drawn at the series’ data points.
mark_line: Option<MarkLineOption>The line drawn across the series.
mark_area: Option<MarkAreaOption>The area highlighted across the series.
color: Option<String>The colour of the series, overriding the theme.
bar: Option<BarOptions>The options specific to a bar series.
line: Option<LineOptions>The options specific to a line series.
pie: Option<PieOptions>The options specific to a pie series.
scatter: Option<ScatterOptions>The options specific to a scatter series.
radar: Option<RadarOptions>The options specific to a radar series.
gauge: Option<GaugeOptions>The options specific to a gauge series.
funnel: Option<FunnelOptions>The options specific to a funnel series.
heatmap: Option<HeatmapOptions>The options specific to a heatmap series.
graph: Option<GraphOptions>The options specific to a graph series.
treemap: Option<TreemapOptions>The options specific to a treemap series.
sunburst: Option<SunburstOptions>The options specific to a sunburst series.
boxplot: Option<BoxplotOptions>The options specific to a boxplot series.
candlestick: Option<CandlestickOptions>The options specific to a candlestick series.
theme_river: Option<ThemeRiverOptions>The options specific to a theme-river series.
sankey: Option<SankeyOptions>The options specific to a sankey series.
parallel: Option<ParallelOptions>The options specific to a parallel-coordinates series.
pictorial_bar: Option<PictorialBarOptions>The options specific to a pictorial-bar series.
lines: Option<LinesOptions>The options specific to a lines series.
map: Option<MapOptions>The options specific to a map series.
custom: Option<CustomOptions>The options specific to a custom series.
Implementations§
Source§impl SeriesOption
Inherent implementation of SeriesOption.
impl SeriesOption
Inherent implementation of SeriesOption.
Sourcepub fn effect_scatter() -> Self
pub fn effect_scatter() -> Self
Returns an effect-scatter series.
Sourcepub fn candlestick() -> Self
pub fn candlestick() -> Self
Returns a candlestick series.
Sourcepub fn theme_river() -> Self
pub fn theme_river() -> Self
Returns a theme-river series.
Sourcepub fn pictorial_bar() -> Self
pub fn pictorial_bar() -> Self
Returns a pictorial-bar series.
Sourcepub fn x_axis_index(self, index: usize) -> Self
pub fn x_axis_index(self, index: usize) -> Self
Sourcepub fn y_axis_index(self, index: usize) -> Self
pub fn y_axis_index(self, index: usize) -> Self
Sourcepub fn item_style(self, item_style: ItemStyleOption) -> Self
pub fn item_style(self, item_style: ItemStyleOption) -> Self
Sourcepub fn line_style(self, line_style: LineStyleOption) -> Self
pub fn line_style(self, line_style: LineStyleOption) -> Self
Sourcepub fn label(self, label: LabelOption) -> Self
pub fn label(self, label: LabelOption) -> Self
Sourcepub fn emphasis(self, emphasis: EmphasisOption) -> Self
pub fn emphasis(self, emphasis: EmphasisOption) -> Self
Sets the style applied when a data point is highlighted.
§Arguments
EmphasisOption- AEmphasisOptionparameter.
Sourcepub fn bar_options(self, options: BarOptions) -> Self
pub fn bar_options(self, options: BarOptions) -> Self
Sourcepub fn line_options(self, options: LineOptions) -> Self
pub fn line_options(self, options: LineOptions) -> Self
Sourcepub fn pie_options(self, options: PieOptions) -> Self
pub fn pie_options(self, options: PieOptions) -> Self
Sourcepub fn scatter_options(self, options: ScatterOptions) -> Self
pub fn scatter_options(self, options: ScatterOptions) -> Self
Sets the options specific to a scatter series.
§Arguments
ScatterOptions- AScatterOptionsparameter.
Sourcepub fn radar_options(self, options: RadarOptions) -> Self
pub fn radar_options(self, options: RadarOptions) -> Self
Sourcepub fn gauge_options(self, options: GaugeOptions) -> Self
pub fn gauge_options(self, options: GaugeOptions) -> Self
Sourcepub fn funnel_options(self, options: FunnelOptions) -> Self
pub fn funnel_options(self, options: FunnelOptions) -> Self
Sourcepub fn heatmap_options(self, options: HeatmapOptions) -> Self
pub fn heatmap_options(self, options: HeatmapOptions) -> Self
Sets the options specific to a heatmap series.
§Arguments
HeatmapOptions- AHeatmapOptionsparameter.