pub struct ChartLabels {Show 24 fields
pub count: String,
pub density: String,
pub end: String,
pub invalid_data: String,
pub start: String,
pub category: String,
pub chart_data: String,
pub chart_legend: String,
pub column: String,
pub empty: String,
pub explore_data: String,
pub high: String,
pub low: String,
pub not_available: String,
pub row: String,
pub series: String,
pub size: String,
pub value: String,
pub view_data: String,
pub x: String,
pub format_datum_action: Option<Callback<String, String>>,
pub format_heatmap_summary: Option<Callback<usize, String>>,
pub format_range_summary: Option<Callback<usize, String>>,
pub format_summary: Option<Callback<ChartSummary, String>>,
}Expand description
The visible and assistive text of every chart. Override fields with struct update syntax:
ChartLabels { empty: "Nothing yet".into(), ..ChartLabels::default() }.
Fields§
§count: String§density: String§end: String§invalid_data: String§start: String§category: String§chart_data: String§chart_legend: String§column: String§empty: String§explore_data: String§high: String§low: String§not_available: String§row: String§series: String§size: String§value: String§view_data: String§x: String§format_datum_action: Option<Callback<String, String>>The accessible name of a datum action button; receives the point’s description.
format_heatmap_summary: Option<Callback<usize, String>>The heatmap summary for a count of available cells.
format_range_summary: Option<Callback<usize, String>>The range chart summary for a count of available ranges.
format_summary: Option<Callback<ChartSummary, String>>The screen reader summary of series charts.
Implementations§
Source§impl ChartLabels
impl ChartLabels
Sourcepub fn datum_action(&self, context: &str) -> String
pub fn datum_action(&self, context: &str) -> String
The accessible name of a datum action.
Sourcepub fn heatmap_summary(&self, count: usize) -> String
pub fn heatmap_summary(&self, count: usize) -> String
The heatmap summary.
Sourcepub fn range_summary(&self, count: usize) -> String
pub fn range_summary(&self, count: usize) -> String
The range chart summary.
Sourcepub fn summary(&self, summary: ChartSummary) -> String
pub fn summary(&self, summary: ChartSummary) -> String
The series summary.
Trait Implementations§
Source§impl Clone for ChartLabels
impl Clone for ChartLabels
Source§impl Default for ChartLabels
impl Default for ChartLabels
Source§impl PartialEq for ChartLabels
impl PartialEq for ChartLabels
impl StructuralPartialEq for ChartLabels
Auto Trait Implementations§
impl !RefUnwindSafe for ChartLabels
impl !Send for ChartLabels
impl !Sync for ChartLabels
impl !UnwindSafe for ChartLabels
impl Forget for ChartLabels
impl Freeze for ChartLabelswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
&'static UnsyncStorage: Freeze,
NonZero<u64>: Freeze,
&'static Location<'static>: Freeze,
PhantomData<Option<ExternalListenerCallback<String, String>>>: Freeze,
PhantomData<Option<ExternalListenerCallback<usize, String>>>: Freeze,
PhantomData<Option<ExternalListenerCallback<ChartSummary, String>>>: Freeze,
impl Move for ChartLabels
impl Unpin for ChartLabels
impl UnsafeUnpin for ChartLabelswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static UnsyncStorage: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
&'static Location<'static>: UnsafeUnpin,
PhantomData<Option<ExternalListenerCallback<String, String>>>: UnsafeUnpin,
PhantomData<Option<ExternalListenerCallback<usize, String>>>: UnsafeUnpin,
PhantomData<Option<ExternalListenerCallback<ChartSummary, String>>>: UnsafeUnpin,
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,
impl<T> DependencyElement for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.