Skip to main content

ChartEnhancements

Struct ChartEnhancements 

Source
pub struct ChartEnhancements {
Show 14 fields pub show_data_table: Option<bool>, pub view_3d: Option<View3DInput>, pub style: Option<u8>, pub alt_text: Option<AltTextInput>, pub y_axis_min: Option<f64>, pub y_axis_max: Option<f64>, pub y_axis_log_base: Option<f64>, pub x_axis_reverse: Option<bool>, pub y_axis_reverse: Option<bool>, pub x_axis_format: Option<String>, pub y_axis_format: Option<String>, pub drop_lines: Option<bool>, pub high_low_lines: Option<bool>, pub plot_area_fill: Option<String>,
}
Expand description

Chart enhancement options (extend existing add_chart)

Fields§

§show_data_table: Option<bool>

Show data table below chart

§view_3d: Option<View3DInput>

3D perspective rotation

§style: Option<u8>

Preset chart style number (1-48)

§alt_text: Option<AltTextInput>

Accessibility alt text (title, description)

§y_axis_min: Option<f64>

Y-axis minimum value

§y_axis_max: Option<f64>

Y-axis maximum value

§y_axis_log_base: Option<f64>

Y-axis logarithmic base (e.g. 10)

§x_axis_reverse: Option<bool>

Reverse X axis

§y_axis_reverse: Option<bool>

Reverse Y axis

§x_axis_format: Option<String>

X-axis number format

§y_axis_format: Option<String>

Y-axis number format

§drop_lines: Option<bool>

Show drop lines

§high_low_lines: Option<bool>

Show high-low lines

§plot_area_fill: Option<String>

Plot area background fill color (hex)

Trait Implementations§

Source§

impl<'de> Deserialize<'de> for ChartEnhancements

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl JsonSchema for ChartEnhancements

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,