pub struct StatCalendar {
pub grid: Option<CalendarGrid>,
pub monday_first: bool,
}Expand description
Lays a date x out as calendar cells: x = week column, y = weekday
row (first weekday on top, y = 6 … 0), unit xmin/xmax/ymin/ymax
extents, and the ISO date in DATE_KEY_COL. Other columns (fill,
label, …) pass through. Dates older than MAX_CALENDAR_YEARS before
the newest are dropped.
Fields§
§grid: Option<CalendarGrid>Fix the grid (so separately computed groups/guides share it); None
derives it from the group’s own dates.
monday_first: boolWeeks start on Monday instead of Sunday.
Trait Implementations§
Source§impl Clone for StatCalendar
impl Clone for StatCalendar
Source§impl Debug for StatCalendar
impl Debug for StatCalendar
Source§impl Default for StatCalendar
impl Default for StatCalendar
Source§impl Stat for StatCalendar
impl Stat for StatCalendar
Source§fn compute_group(&self, data: &DataFrame, _scales: &ScaleSet) -> DataFrame
fn compute_group(&self, data: &DataFrame, _scales: &ScaleSet) -> DataFrame
Transform data for a single group.
Source§fn required_aes(&self) -> Vec<Aesthetic>
fn required_aes(&self) -> Vec<Aesthetic>
Required aesthetics this stat needs.
Source§fn default_aes(&self) -> Aes
fn default_aes(&self) -> Aes
Default aesthetic mappings this stat produces.
Auto Trait Implementations§
impl Freeze for StatCalendar
impl RefUnwindSafe for StatCalendar
impl Send for StatCalendar
impl Sync for StatCalendar
impl Unpin for StatCalendar
impl UnsafeUnpin for StatCalendar
impl UnwindSafe for StatCalendar
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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