Waterfall
Mojo struct 🡭
Waterfall
@memory_only
struct WaterfallMark.WATERFALL as a type. Built by Plot.mark_waterfall().
Aliases
id = Mark.WATERFALLsupports_tooltips = Truesupports_data_labels = Truesupports_horizontal = Truesupports_annotations_y = Truesupports_annotations_x = Falsesupports_annotations_xy = Falsesupports_log_x = Falsesupports_log_y = Falsesupports_color_size = Falsestraight_edged = Truecontinuous_path = Falselayerable = Falsecolor_is_value = Falsecategorical_bars = Falsebar_combo_overlay = Falsecontinuous_error_bars = False
Fields
- waterfall (
_WaterfallData) - continuous (
_ContinuousData) - categorical (
_CategoricalData)
Implemented traits
AnyType, Copyable, Deinitable, MarkType, Movable
Methods
__init__
fn def __init__(out self)Args:
- self (
Self)
Returns:
Self
render
fn def render[T: DrawTarget](self, mut target: T, style: _MarkStyle, annotations: _AnnotationData, settings: _ChartSettings, ox0: Int, oy0: Int, ox1: Int, oy1: Int, has_shared_y_domain: Bool, shared_y_min: Float64, shared_y_max: Float64, shared_y_is_log: Bool, *, mut cache: FontCache, vector_target: Bool) -> _RenderResultParameters:
- T (
DrawTarget)
Args:
- self (
Self) - target (
T) - style (
_MarkStyle) - annotations (
_AnnotationData) - settings (
_ChartSettings) - ox0 (
Int) - oy0 (
Int) - ox1 (
Int) - oy1 (
Int) - has_shared_y_domain (
Bool) - shared_y_min (
Float64) - shared_y_max (
Float64) - shared_y_is_log (
Bool) - cache (
FontCache) - vector_target (
Bool)
Returns:
_RenderResult
Raises:
encode_waterfall
fn def encode_waterfall(mut self, mut settings: _ChartSettings, categories: List[String], deltas: List[Float64], is_total: List[Bool] = List())Args:
- self (
Self) - settings (
_ChartSettings) - categories (
List[String]) - deltas (
List[Float64]) - is_total (
List[Bool])
Raises: