pub struct ChartData;Expand description
Chart data preparation utilities
Implementations§
Source§impl ChartData
impl ChartData
Sourcepub fn prepare_scatter_plot(
x: &Array1<f64>,
y: &Array1<f64>,
labels: Option<&Array1<String>>,
) -> UtilsResult<ScatterPlotData>
pub fn prepare_scatter_plot( x: &Array1<f64>, y: &Array1<f64>, labels: Option<&Array1<String>>, ) -> UtilsResult<ScatterPlotData>
Prepare data for scatter plot visualization
Sourcepub fn prepare_line_plot(
x: &Array1<f64>,
y: &Array1<f64>,
line_name: Option<String>,
) -> UtilsResult<LinePlotData>
pub fn prepare_line_plot( x: &Array1<f64>, y: &Array1<f64>, line_name: Option<String>, ) -> UtilsResult<LinePlotData>
Prepare data for line plot visualization
Sourcepub fn prepare_histogram(
data: &Array1<f64>,
bins: Option<usize>,
) -> UtilsResult<HistogramData>
pub fn prepare_histogram( data: &Array1<f64>, bins: Option<usize>, ) -> UtilsResult<HistogramData>
Prepare data for histogram visualization
Sourcepub fn prepare_heatmap(
data: &Array2<f64>,
row_labels: Option<&[String]>,
col_labels: Option<&[String]>,
) -> UtilsResult<HeatmapData>
pub fn prepare_heatmap( data: &Array2<f64>, row_labels: Option<&[String]>, col_labels: Option<&[String]>, ) -> UtilsResult<HeatmapData>
Prepare data for heatmap visualization
Sourcepub fn prepare_box_plot(
data: &Array1<f64>,
label: Option<String>,
) -> UtilsResult<BoxPlotData>
pub fn prepare_box_plot( data: &Array1<f64>, label: Option<String>, ) -> UtilsResult<BoxPlotData>
Prepare data for box plot visualization
Auto Trait Implementations§
impl Freeze for ChartData
impl RefUnwindSafe for ChartData
impl Send for ChartData
impl Sync for ChartData
impl Unpin for ChartData
impl UnwindSafe for ChartData
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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