pub struct SeriesStyle {
pub up: Rgba,
pub down: Rgba,
pub up_wick: Rgba,
pub down_wick: Rgba,
pub up_border: Rgba,
pub down_border: Rgba,
pub line_width: Px,
pub line_dash: LineDash,
pub step: bool,
pub fill_top: Rgba,
pub fill_bottom: Rgba,
pub base_value: f64,
}Expand description
Fully resolved colors of a series draw. The backend never decides colors; it
only picks up or down per bar using the rule in transform_helpers.
Value series use the fields as follows: Line/Area: up is the line
color; Area fills from fill_top at the top of the clip to fill_bottom
at its bottom. Baseline: up/fill_top above base_value,
down/fill_bottom below it. Histogram: up is the bar color (unless
the point has its own color), bars stand on base_value.
Fields§
§up: RgbaBody / bar color of up bars (close >= open).
down: RgbaBody / bar color of down bars.
up_wick: RgbaWick color of up bars.
down_wick: RgbaWick color of down bars.
up_border: RgbaBorder color of up bodies.
down_border: RgbaBorder color of down bodies.
line_width: PxLine width of line-like series.
line_dash: LineDashDash pattern of line-like series.
step: boolStep line (horizontal, then vertical) instead of straight segments.
fill_top: RgbaUpper fill color (see above).
fill_bottom: RgbaLower fill color (see above).
base_value: f64Base value of Baseline and Histogram, in price space.