PolarBar
Mojo struct 🡭
PolarBar
@memory_only
struct PolarBarMark.POLAR_BAR as a type. Built by Plot.mark_polar_bar().
Aliases
id = Mark.POLAR_BARsupports_tooltips = Truesupports_data_labels = Truesupports_horizontal = Falsesupports_annotations_y = Falsesupports_annotations_x = Falsesupports_annotations_xy = Falsesupports_log_x = Falsesupports_log_y = Falsesupports_color_size = Falsestraight_edged = Falsecontinuous_path = Falselayerable = Falsecolor_is_value = Falsecategorical_bars = Falsebar_combo_overlay = Falsecontinuous_error_bars = False
Fields
- continuous (
_ContinuousData) - categorical (
_CategoricalData) - y_err (
_ErrorBarData)
Implemented traits
AnyType, Copyable, Deinitable, MarkType, Movable
Methods
__init__
fn def __init__(out self)Args:
- self (
Self)
Returns:
Self
accepts_fill_maps
fn def accepts_fill_maps(self)This mark fills one shape per name; see Chart.fill_colors().
Args:
- self (
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:
sort_categories
fn def sort_categories(mut self, order: CategoryOrder)Args:
- self (
Self) - order (
CategoryOrder)
Raises:
sort_categories_named
fn def sort_categories_named(mut self, names: List[String])Args:
- self (
Self) - names (
List[String])
Raises:
encode_categorical
fn def encode_categorical(mut self, mut settings: _ChartSettings, x: List[String], y: List[Float64], y_err: List[Float64] = List(), y_err_lower: List[Float64] = List(), y_err_upper: List[Float64] = List())Args:
- self (
Self) - settings (
_ChartSettings) - x (
List[String]) - y (
List[Float64]) - y_err (
List[Float64]) - y_err_lower (
List[Float64]) - y_err_upper (
List[Float64])
Raises:
encode_frame
fn def encode_frame(mut self, mut settings: _ChartSettings, df: DataFrame, x: String, y: String, color: String, size: String, labels: String)Args:
- self (
Self) - settings (
_ChartSettings) - df (
DataFrame) - x (
String) - y (
String) - color (
String) - size (
String) - labels (
String)
Raises: