pub struct Table<T, N>{ /* private fields */ }
Implementations§
source§impl<T, N> Table<T, N>
impl<T, N> Table<T, N>
sourcepub fn name(self, value: impl AsRef<str>) -> Box<Self>
pub fn name(self, value: impl AsRef<str>) -> Box<Self>
Sets the trace name. The trace name appear as the legend item and on hover.
sourcepub fn modify_all_name(value: impl AsRef<str>) -> RestyleTable<T, N>
pub fn modify_all_name(value: impl AsRef<str>) -> RestyleTable<T, N>
Apply the same restyling to all the traces
sourcepub fn modify_name(values: Vec<impl AsRef<str>>) -> RestyleTable<T, N>
pub fn modify_name(values: Vec<impl AsRef<str>>) -> RestyleTable<T, N>
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
sourcepub fn visible(self, value: Visible) -> Box<Self>
pub fn visible(self, value: Visible) -> Box<Self>
Determines whether or not this trace is visible. If
Visible::LegendOnly
, the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
sourcepub fn modify_all_visible(value: Visible) -> RestyleTable<T, N>
pub fn modify_all_visible(value: Visible) -> RestyleTable<T, N>
Apply the same restyling to all the traces
sourcepub fn modify_visible(values: Vec<Visible>) -> RestyleTable<T, N>
pub fn modify_visible(values: Vec<Visible>) -> RestyleTable<T, N>
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
sourcepub fn column_order(self, value: Vec<usize>) -> Box<Self>
pub fn column_order(self, value: Vec<usize>) -> Box<Self>
Specifies the rendered order of the data columns; for example, a value
2
at position 0
, means that column index 0
in the data will be
rendered as the, third column, as columns have an index base of
zero.
sourcepub fn modify_all_column_order(value: Vec<usize>) -> RestyleTable<T, N>
pub fn modify_all_column_order(value: Vec<usize>) -> RestyleTable<T, N>
Apply the same restyling to all the traces
sourcepub fn modify_column_order(values: Vec<Vec<usize>>) -> RestyleTable<T, N>
pub fn modify_column_order(values: Vec<Vec<usize>>) -> RestyleTable<T, N>
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
sourcepub fn column_width(self, value: f64) -> Box<Self>
pub fn column_width(self, value: f64) -> Box<Self>
The width of columns expressed as a ratio. Columns fill the available width, in proportion of their specified column widths.
sourcepub fn modify_all_column_width(value: f64) -> RestyleTable<T, N>
pub fn modify_all_column_width(value: f64) -> RestyleTable<T, N>
Apply the same restyling to all the traces
sourcepub fn modify_column_width(values: Vec<f64>) -> RestyleTable<T, N>
pub fn modify_column_width(values: Vec<f64>) -> RestyleTable<T, N>
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
sourcepub fn header(self, value: Header<T>) -> Box<Self>
pub fn header(self, value: Header<T>) -> Box<Self>
Header cell values. values[m][n]
represents the value of the n
th
point in column m
,, therefore the values[m]
vector length for
all columns must be the same (longer vectors, will be truncated).
Each value must be a finite number or a string.
sourcepub fn modify_all_header(value: Header<T>) -> RestyleTable<T, N>
pub fn modify_all_header(value: Header<T>) -> RestyleTable<T, N>
Apply the same restyling to all the traces
sourcepub fn modify_header(values: Vec<Header<T>>) -> RestyleTable<T, N>
pub fn modify_header(values: Vec<Header<T>>) -> RestyleTable<T, N>
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
sourcepub fn cells(self, value: Cells<N>) -> Box<Self>
pub fn cells(self, value: Cells<N>) -> Box<Self>
Cell values. values[m][n]
represents the value of the n
th point in
column m
,, therefore the values[m]
vector length for all columns
must be the same (longer vectors, will be truncated). Each value
must be a finite number or a string.
sourcepub fn modify_all_cells(value: Cells<N>) -> RestyleTable<T, N>
pub fn modify_all_cells(value: Cells<N>) -> RestyleTable<T, N>
Apply the same restyling to all the traces
sourcepub fn modify_cells(values: Vec<Cells<N>>) -> RestyleTable<T, N>
pub fn modify_cells(values: Vec<Cells<N>>) -> RestyleTable<T, N>
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
Trait Implementations§
Auto Trait Implementations§
impl<T, N> Freeze for Table<T, N>
impl<T, N> !RefUnwindSafe for Table<T, N>
impl<T, N> Send for Table<T, N>
impl<T, N> Sync for Table<T, N>
impl<T, N> Unpin for Table<T, N>
impl<T, N> !UnwindSafe for Table<T, N>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)