pub struct HistogramChartSpec {
pub bucket_size: Option<f64>,
pub legend_position: Option<String>,
pub outlier_percentile: Option<f64>,
pub series: Option<Vec<HistogramSeries>>,
pub show_item_dividers: Option<bool>,
}
Expand description
A histogram chart. A histogram chart groups data items into bins, displaying each bin as a column of stacked items. Histograms are used to display the distribution of a dataset. Each column of items represents a range into which those items fall. The number of bins can be chosen automatically or specified explicitly.
This type is not used in any activity, and only used as part of another schema.
Fields§
§bucket_size: Option<f64>
By default the bucket size (the range of values stacked in a single column) is chosen automatically, but it may be overridden here. E.g., A bucket size of 1.5 results in buckets from 0 - 1.5, 1.5 - 3.0, etc. Cannot be negative. This field is optional.
legend_position: Option<String>
The position of the chart legend.
outlier_percentile: Option<f64>
The outlier percentile is used to ensure that outliers do not adversely affect the calculation of bucket sizes. For example, setting an outlier percentile of 0.05 indicates that the top and bottom 5% of values when calculating buckets. The values are still included in the chart, they will be added to the first or last buckets instead of their own buckets. Must be between 0.0 and 0.5.
series: Option<Vec<HistogramSeries>>
The series for a histogram may be either a single series of values to be bucketed or multiple series, each of the same length, containing the name of the series followed by the values to be bucketed for that series.
show_item_dividers: Option<bool>
Whether horizontal divider lines should be displayed between items in each column.
Trait Implementations§
Source§impl Clone for HistogramChartSpec
impl Clone for HistogramChartSpec
Source§fn clone(&self) -> HistogramChartSpec
fn clone(&self) -> HistogramChartSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HistogramChartSpec
impl Debug for HistogramChartSpec
Source§impl Default for HistogramChartSpec
impl Default for HistogramChartSpec
Source§fn default() -> HistogramChartSpec
fn default() -> HistogramChartSpec
Source§impl<'de> Deserialize<'de> for HistogramChartSpec
impl<'de> Deserialize<'de> for HistogramChartSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for HistogramChartSpec
impl Serialize for HistogramChartSpec
impl Part for HistogramChartSpec
Auto Trait Implementations§
impl Freeze for HistogramChartSpec
impl RefUnwindSafe for HistogramChartSpec
impl Send for HistogramChartSpec
impl Sync for HistogramChartSpec
impl Unpin for HistogramChartSpec
impl UnwindSafe for HistogramChartSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more