[][src]Struct charts::ScatterView

pub struct ScatterView<'a, T: Display, U: Display> { /* fields omitted */ }

A View that represents data as a scatter plot.

Methods

impl<'a, T: Display, U: Display> ScatterView<'a, T, U>[src]

pub fn new() -> Self[src]

Create a new empty instance of the view.

pub fn set_x_scale(self, scale: &'a impl Scale<T>) -> Self[src]

Set the scale for the X dimension.

pub fn set_y_scale(self, scale: &'a impl Scale<U>) -> Self[src]

Set the scale for the Y dimension.

pub fn set_keys(self, keys: Vec<String>) -> Self[src]

Set the keys in case of a stacked bar chart.

pub fn set_label_position(self, label_position: PointLabelPosition) -> Self[src]

Set the positioning of the labels.

pub fn set_marker_type(self, marker_type: MarkerType) -> Self[src]

Set the keys in case of a stacked bar chart.

pub fn set_colors(self, colors: Vec<Color>) -> Self[src]

Set the color palette of the view.

pub fn set_label_visibility(self, label_visibility: bool) -> Self[src]

Set labels visibility.

pub fn set_custom_data_label(self, label: String) -> Self[src]

Set custom label for the dataset. This will work when the dataset represents only a single type of data (i.e. there are no different "keys" by which to differentiate data), otherwise, this will have no effect.

pub fn load_data(
    self,
    data: &Vec<impl PointDatum<T, U>>
) -> Result<Self, String>
[src]

Load and process a dataset of BarDatum points.

Auto Trait Implementations

impl<'a, T, U> !RefUnwindSafe for ScatterView<'a, T, U>

impl<'a, T, U> !Send for ScatterView<'a, T, U>

impl<'a, T, U> !Sync for ScatterView<'a, T, U>

impl<'a, T, U> Unpin for ScatterView<'a, T, U> where
    T: Unpin,
    U: Unpin

impl<'a, T, U> !UnwindSafe for ScatterView<'a, T, U>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.