Struct plotly_fork::traces::histogram::Histogram
source · pub struct Histogram<H>{ /* private fields */ }
Expand description
Construct a histogram trace.
Examples
use plotly::Histogram;
let trace = Histogram::new_xy(
vec![0, 1, 2, 3],
vec![5, 8, 2, 3]
);
let expected = serde_json::json!({
"type": "histogram",
"x": [0, 1, 2, 3],
"y": [5, 8, 2, 3],
});
assert_eq!(serde_json::to_value(trace).unwrap(), expected);
Implementations§
source§impl<H> Histogram<H>
impl<H> Histogram<H>
pub fn alignment_group(self, value: impl AsRef<str>) -> Box<Self>
sourcepub fn modify_all_alignment_group(value: impl AsRef<str>) -> RestyleHistogram<H>
pub fn modify_all_alignment_group(value: impl AsRef<str>) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_alignment_group(
values: Vec<impl AsRef<str>>
) -> RestyleHistogram<H>
pub fn modify_alignment_group( values: Vec<impl AsRef<str>> ) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn auto_bin_x(self, value: bool) -> Box<Self>
sourcepub fn modify_all_auto_bin_x(value: bool) -> RestyleHistogram<H>
pub fn modify_all_auto_bin_x(value: bool) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_auto_bin_x(values: Vec<bool>) -> RestyleHistogram<H>
pub fn modify_auto_bin_x(values: Vec<bool>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn auto_bin_y(self, value: bool) -> Box<Self>
sourcepub fn modify_all_auto_bin_y(value: bool) -> RestyleHistogram<H>
pub fn modify_all_auto_bin_y(value: bool) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_auto_bin_y(values: Vec<bool>) -> RestyleHistogram<H>
pub fn modify_auto_bin_y(values: Vec<bool>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn cumulative(self, value: Cumulative) -> Box<Self>
sourcepub fn modify_all_cumulative(value: Cumulative) -> RestyleHistogram<H>
pub fn modify_all_cumulative(value: Cumulative) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_cumulative(values: Vec<Cumulative>) -> RestyleHistogram<H>
pub fn modify_cumulative(values: Vec<Cumulative>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn bin_group(self, value: impl AsRef<str>) -> Box<Self>
sourcepub fn modify_all_bin_group(value: impl AsRef<str>) -> RestyleHistogram<H>
pub fn modify_all_bin_group(value: impl AsRef<str>) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_bin_group(values: Vec<impl AsRef<str>>) -> RestyleHistogram<H>
pub fn modify_bin_group(values: Vec<impl AsRef<str>>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn error_x(self, value: ErrorData) -> Box<Self>
sourcepub fn modify_all_error_x(value: ErrorData) -> RestyleHistogram<H>
pub fn modify_all_error_x(value: ErrorData) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_error_x(values: Vec<ErrorData>) -> RestyleHistogram<H>
pub fn modify_error_x(values: Vec<ErrorData>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn error_y(self, value: ErrorData) -> Box<Self>
sourcepub fn modify_all_error_y(value: ErrorData) -> RestyleHistogram<H>
pub fn modify_all_error_y(value: ErrorData) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_error_y(values: Vec<ErrorData>) -> RestyleHistogram<H>
pub fn modify_error_y(values: Vec<ErrorData>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn hist_func(self, value: HistFunc) -> Box<Self>
sourcepub fn modify_all_hist_func(value: HistFunc) -> RestyleHistogram<H>
pub fn modify_all_hist_func(value: HistFunc) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_hist_func(values: Vec<HistFunc>) -> RestyleHistogram<H>
pub fn modify_hist_func(values: Vec<HistFunc>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn hist_norm(self, value: HistNorm) -> Box<Self>
sourcepub fn modify_all_hist_norm(value: HistNorm) -> RestyleHistogram<H>
pub fn modify_all_hist_norm(value: HistNorm) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_hist_norm(values: Vec<HistNorm>) -> RestyleHistogram<H>
pub fn modify_hist_norm(values: Vec<HistNorm>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn hover_info(self, value: HoverInfo) -> Box<Self>
sourcepub fn modify_all_hover_info(value: HoverInfo) -> RestyleHistogram<H>
pub fn modify_all_hover_info(value: HoverInfo) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_hover_info(values: Vec<HoverInfo>) -> RestyleHistogram<H>
pub fn modify_hover_info(values: Vec<HoverInfo>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn hover_label(self, value: Label) -> Box<Self>
sourcepub fn modify_all_hover_label(value: Label) -> RestyleHistogram<H>
pub fn modify_all_hover_label(value: Label) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_hover_label(values: Vec<Label>) -> RestyleHistogram<H>
pub fn modify_hover_label(values: Vec<Label>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn hover_template(self, value: impl AsRef<str>) -> Box<Self>
sourcepub fn modify_all_hover_template(value: impl AsRef<str>) -> RestyleHistogram<H>
pub fn modify_all_hover_template(value: impl AsRef<str>) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_hover_template(
values: Vec<impl AsRef<str>>
) -> RestyleHistogram<H>
pub fn modify_hover_template( values: Vec<impl AsRef<str>> ) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn hover_template_array(self, value: Vec<impl AsRef<str>>) -> Box<Self>
pub fn hover_text(self, value: impl AsRef<str>) -> Box<Self>
sourcepub fn modify_all_hover_text(value: impl AsRef<str>) -> RestyleHistogram<H>
pub fn modify_all_hover_text(value: impl AsRef<str>) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_hover_text(values: Vec<impl AsRef<str>>) -> RestyleHistogram<H>
pub fn modify_hover_text(values: Vec<impl AsRef<str>>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn hover_text_array(self, value: Vec<impl AsRef<str>>) -> Box<Self>
pub fn legend_group(self, value: impl AsRef<str>) -> Box<Self>
sourcepub fn modify_all_legend_group(value: impl AsRef<str>) -> RestyleHistogram<H>
pub fn modify_all_legend_group(value: impl AsRef<str>) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_legend_group(values: Vec<impl AsRef<str>>) -> RestyleHistogram<H>
pub fn modify_legend_group(values: Vec<impl AsRef<str>>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn legend_group_title(self, value: LegendGroupTitle) -> Box<Self>
sourcepub fn modify_all_legend_group_title(
value: LegendGroupTitle
) -> RestyleHistogram<H>
pub fn modify_all_legend_group_title( value: LegendGroupTitle ) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_legend_group_title(
values: Vec<LegendGroupTitle>
) -> RestyleHistogram<H>
pub fn modify_legend_group_title( values: Vec<LegendGroupTitle> ) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn marker(self, value: Marker) -> Box<Self>
sourcepub fn modify_all_marker(value: Marker) -> RestyleHistogram<H>
pub fn modify_all_marker(value: Marker) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_marker(values: Vec<Marker>) -> RestyleHistogram<H>
pub fn modify_marker(values: Vec<Marker>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn n_bins_x(self, value: usize) -> Box<Self>
sourcepub fn modify_all_n_bins_x(value: usize) -> RestyleHistogram<H>
pub fn modify_all_n_bins_x(value: usize) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_n_bins_x(values: Vec<usize>) -> RestyleHistogram<H>
pub fn modify_n_bins_x(values: Vec<usize>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn n_bins_y(self, value: usize) -> Box<Self>
sourcepub fn modify_all_n_bins_y(value: usize) -> RestyleHistogram<H>
pub fn modify_all_n_bins_y(value: usize) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_n_bins_y(values: Vec<usize>) -> RestyleHistogram<H>
pub fn modify_n_bins_y(values: Vec<usize>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn name(self, value: impl AsRef<str>) -> Box<Self>
sourcepub fn modify_all_name(value: impl AsRef<str>) -> RestyleHistogram<H>
pub fn modify_all_name(value: impl AsRef<str>) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_name(values: Vec<impl AsRef<str>>) -> RestyleHistogram<H>
pub fn modify_name(values: Vec<impl AsRef<str>>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn offset_group(self, value: impl AsRef<str>) -> Box<Self>
sourcepub fn modify_all_offset_group(value: impl AsRef<str>) -> RestyleHistogram<H>
pub fn modify_all_offset_group(value: impl AsRef<str>) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_offset_group(values: Vec<impl AsRef<str>>) -> RestyleHistogram<H>
pub fn modify_offset_group(values: Vec<impl AsRef<str>>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn opacity(self, value: f64) -> Box<Self>
sourcepub fn modify_all_opacity(value: f64) -> RestyleHistogram<H>
pub fn modify_all_opacity(value: f64) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_opacity(values: Vec<f64>) -> RestyleHistogram<H>
pub fn modify_opacity(values: Vec<f64>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn orientation(self, value: Orientation) -> Box<Self>
sourcepub fn modify_all_orientation(value: Orientation) -> RestyleHistogram<H>
pub fn modify_all_orientation(value: Orientation) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_orientation(values: Vec<Orientation>) -> RestyleHistogram<H>
pub fn modify_orientation(values: Vec<Orientation>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn show_legend(self, value: bool) -> Box<Self>
sourcepub fn modify_all_show_legend(value: bool) -> RestyleHistogram<H>
pub fn modify_all_show_legend(value: bool) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_show_legend(values: Vec<bool>) -> RestyleHistogram<H>
pub fn modify_show_legend(values: Vec<bool>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn text(self, value: impl AsRef<str>) -> Box<Self>
sourcepub fn modify_all_text(value: impl AsRef<str>) -> RestyleHistogram<H>
pub fn modify_all_text(value: impl AsRef<str>) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_text(values: Vec<impl AsRef<str>>) -> RestyleHistogram<H>
pub fn modify_text(values: Vec<impl AsRef<str>>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn text_array(self, value: Vec<impl AsRef<str>>) -> Box<Self>
pub fn visible(self, value: Visible) -> Box<Self>
sourcepub fn modify_all_visible(value: Visible) -> RestyleHistogram<H>
pub fn modify_all_visible(value: Visible) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_visible(values: Vec<Visible>) -> RestyleHistogram<H>
pub fn modify_visible(values: Vec<Visible>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn x(self, value: Vec<H>) -> Box<Self>
sourcepub fn modify_all_x(value: Vec<H>) -> RestyleHistogram<H>
pub fn modify_all_x(value: Vec<H>) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_x(values: Vec<Vec<H>>) -> RestyleHistogram<H>
pub fn modify_x(values: Vec<Vec<H>>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn x_axis(self, value: impl AsRef<str>) -> Box<Self>
sourcepub fn modify_all_x_axis(value: impl AsRef<str>) -> RestyleHistogram<H>
pub fn modify_all_x_axis(value: impl AsRef<str>) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_x_axis(values: Vec<impl AsRef<str>>) -> RestyleHistogram<H>
pub fn modify_x_axis(values: Vec<impl AsRef<str>>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn x_bins(self, value: Bins) -> Box<Self>
sourcepub fn modify_all_x_bins(value: Bins) -> RestyleHistogram<H>
pub fn modify_all_x_bins(value: Bins) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_x_bins(values: Vec<Bins>) -> RestyleHistogram<H>
pub fn modify_x_bins(values: Vec<Bins>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn x_calendar(self, value: Calendar) -> Box<Self>
sourcepub fn modify_all_x_calendar(value: Calendar) -> RestyleHistogram<H>
pub fn modify_all_x_calendar(value: Calendar) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_x_calendar(values: Vec<Calendar>) -> RestyleHistogram<H>
pub fn modify_x_calendar(values: Vec<Calendar>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn y(self, value: Vec<H>) -> Box<Self>
sourcepub fn modify_all_y(value: Vec<H>) -> RestyleHistogram<H>
pub fn modify_all_y(value: Vec<H>) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_y(values: Vec<Vec<H>>) -> RestyleHistogram<H>
pub fn modify_y(values: Vec<Vec<H>>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn y_axis(self, value: impl AsRef<str>) -> Box<Self>
sourcepub fn modify_all_y_axis(value: impl AsRef<str>) -> RestyleHistogram<H>
pub fn modify_all_y_axis(value: impl AsRef<str>) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_y_axis(values: Vec<impl AsRef<str>>) -> RestyleHistogram<H>
pub fn modify_y_axis(values: Vec<impl AsRef<str>>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn y_bins(self, value: Bins) -> Box<Self>
sourcepub fn modify_all_y_bins(value: Bins) -> RestyleHistogram<H>
pub fn modify_all_y_bins(value: Bins) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_y_bins(values: Vec<Bins>) -> RestyleHistogram<H>
pub fn modify_y_bins(values: Vec<Bins>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces
pub fn y_calendar(self, value: Calendar) -> Box<Self>
sourcepub fn modify_all_y_calendar(value: Calendar) -> RestyleHistogram<H>
pub fn modify_all_y_calendar(value: Calendar) -> RestyleHistogram<H>
Apply the same restyling to all the traces
sourcepub fn modify_y_calendar(values: Vec<Calendar>) -> RestyleHistogram<H>
pub fn modify_y_calendar(values: Vec<Calendar>) -> RestyleHistogram<H>
Apply the restyling individually to each trace. Caller is responsible to set the length of the vector to be equal to the number of traces