Histogram
Mojo struct 🡭
Histogram
@memory_only
struct HistogramMark.HISTOGRAM as a type. Built by Plot.mark_histogram().
Aliases
id = Mark.HISTOGRAMsupports_tooltips = Truesupports_data_labels = Truesupports_horizontal = Truesupports_annotations_y = Truesupports_annotations_x = Truesupports_annotations_xy = Truesupports_log_x = Truesupports_log_y = Falsesupports_color_size = Falsestraight_edged = Truecontinuous_path = Truelayerable = Truecolor_is_value = Falsecategorical_bars = Falsebar_combo_overlay = Falsecontinuous_error_bars = False
Fields
- continuous (
_ContinuousData) - channels (
_ChannelData) - y_err (
_ErrorBarData) - histogram (
_HistogramData) - 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_histogram_bins
fn def encode_histogram_bins(mut self, mut settings: _ChartSettings, bins: HistogramBins)Args:
- self (
Self) - settings (
_ChartSettings) - bins (
HistogramBins)
Raises: