Skip to main content

ChartReason

Enum ChartReason 

Source
#[non_exhaustive]
pub enum ChartReason {
Show 45 variants ChartEx, InGroup, NoPlotArea, OtherGroup, NoBarDirection, NotOneGroup, Lines, StackedLines, LineExtras, LineMarkers, StyleColors, ChartStyle, SmoothLines, LineLook, Scatter, ScatterStyle, VariedColors, SeriesExtras, ScatterAxes, XGridlines, ScatterLegend, HorizontalBars, NotClustered, Axes, AxisNotShown, ValueScale, LegendTopRight, UnknownTitle, SeriesFill, SeriesValues, NoSeries, SeriesLengths, AllZero, Untitled, LegendNotAtBottom, SetScale, NegativeValue, SetCrossing, OtherPlotPlace, UnnamedSeriesBesideLegend, AxisTitle, OtherNumberFormat, DataTable, PieExplosion, PieLabels,
}
Expand description

Why F-Office does not draw a chart, which Reason::Chart names: the first condition of its drawn case that the chart does not meet, in the order in which the readers test them. The reader of the part that holds the chart tests its drawing first (a chart of Office 2016 and later, a floating chart, a chart in a drawing group), before its chart part is read; then the model of the chart part, the drawn case (one clustered column chart with both axes shown, its labels, legend, title and series), and the scope of the target’s rule of the plot area (quirk ChartPlotArea).

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ChartEx

The chart is one of Office 2016 and later (cx:chart), such as a waterfall chart.

§

InGroup

The chart is a part of a drawing group (wpg:graphicFrame of wpg:wgp).

§

NoPlotArea

The part has no chart (c:chart) or no plot area (c:plotArea).

§

OtherGroup

The plot area holds a chart group other than bars, lines and scatter points, such as a pie, an area or a 3-D chart.

§

NoBarDirection

A bar group has no direction that reads (c:barDir, which the schema requires).

§

NotOneGroup

The plot area holds no chart group, or more than one, such as bars with a line.

§

Lines

The one chart group is lines (c:lineChart), which the rule of ChartPlotArea::DefaultChart does not draw.

§

StackedLines

The lines are stacked or stacked to 100 % (c:grouping of c:lineChart).

§

LineExtras

The line group adds drop lines, high-low lines or up-down bars.

§

LineMarkers

A series of the line group shows markers at its points (c:marker) that F-Office does not draw: a symbol other than a circle, a diamond, a square, a triangle, an x and a star, a look other than a solid fill and a solid outline of a set width, or a look of the chart’s style on a series that sets its own line.

§

StyleColors

A series of the line group takes the colors of the chart’s style (no c:spPr) in a group of more than six series.

§

ChartStyle

A series of the line group has no properties (c:spPr) in a chart that names a chart style (c:style), which is not supported.

§

SmoothLines

A series of the line or scatter group is smoothed (c:smooth), which the target does not draw (ChartSmoothLines::Unknown).

§

LineLook

A series’ line has a stroke that the target does not draw: under ChartLineStrokes::Unknown no width that reads, caps or joins that are not written round, or a dash; under StyleRound a flat or square cap, a miter or bevel join, or a dash of its own (a:custDash).

§

Scatter

The one chart group is scatter points (c:scatterChart), which the target does not draw (ChartScatter::Unknown).

§

ScatterStyle

The scatter group’s style is other than straight lines and markers (c:scatterStyle other than lineMarker), or than smooth lines and markers (smoothMarker) on a target that draws smooth lines, which is not supported.

§

VariedColors

The scatter group lets the colors of its points vary (c:varyColors not off).

§

SeriesExtras

A series of the scatter group adds a trendline or error bars (c:trendline, c:errBars).

§

ScatterAxes

The scatter chart has not one value axis at the bottom (c:axPos val="b"), its x axis, and one at the left (l).

§

XGridlines

The scatter chart’s x axis draws gridlines (c:majorGridlines or c:minorGridlines).

§

ScatterLegend

The scatter chart has a legend, which is not supported.

§

HorizontalBars

The bars are horizontal (c:barDir val="bar"), on a target that does not draw them (ChartHorizontalBars::Unknown) or in the scope of Word’s default chart.

§

NotClustered

The bars are stacked, stacked to 100 % or one behind the other, not clustered (c:grouping).

§

Axes

The plot area has not one category axis and one value axis, such as a date axis in place of the category axis.

§

AxisNotShown

An axis is deleted (c:delete) or shows its labels other than next to it (c:tickLblPos).

§

ValueScale

The value axis has a logarithm, runs from its highest value, or sets a major unit not above zero or a minimum not below its maximum.

§

LegendTopRight

The legend stands at the top right corner (c:legendPos val="tr").

§

UnknownTitle

The title is one that F-Office does not know: an automatic one that is not deleted and that the target does not hide, a title of its own whose automatic title is deleted, or one whose size does not read.

§

SeriesFill

A series has no solid fill that reads.

§

SeriesValues

A series has no cached value for each of its points.

§

NoSeries

The bar group has no series.

§

SeriesLengths

The series have different numbers of values.

§

AllZero

Every value is zero.

§

Untitled

The chart shows no title, which the rule of ChartPlotArea::DefaultChart needs.

§

LegendNotAtBottom

The legend does not stand at the bottom, or the chart has none, which the rule of ChartPlotArea::DefaultChart needs.

§

SetScale

The value axis sets its minimum, maximum or major unit, outside the scope of the rule of ChartPlotArea::DefaultChart.

§

NegativeValue

A value is below zero, outside the scope of the rule of ChartPlotArea::DefaultChart.

§

SetCrossing

An axis crosses the other elsewhere than at the automatic zero, outside the scope of the rule of ChartPlotArea::FontLines.

§

OtherPlotPlace

The plot area has a manual layout other than one in the edge mode, outside the scope of the rule of ChartPlotArea::FontLines.

§

UnnamedSeriesBesideLegend

A series has no name while the legend stands at the left or the right, outside the scope of the rule of ChartPlotArea::FontLines.

§

AxisTitle

An axis shows a title, outside the scope of the rule of ChartPlotArea::FontLines.

§

OtherNumberFormat

The value labels have a number format other than General, outside the scope of the rule of ChartPlotArea::FontLines.

§

DataTable

The plot area shows a data table (c:dTable), the series’ values in a table below the plot, which F-Office does not draw.

§

PieExplosion

A pie’s series or one of its points is pulled out of the circle (c:explosion above 0), which F-Office does not draw.

§

PieLabels

A pie shows data labels at a position whose room F-Office does not know: one other than the center, the inner end, the outer end, the best fit and the default, or one that its points do not share.

Trait Implementations§

Source§

impl Clone for ChartReason

Source§

fn clone(&self) -> ChartReason

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ChartReason

Source§

impl Debug for ChartReason

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for ChartReason

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for ChartReason

Source§

impl Hash for ChartReason

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ChartReason

Source§

fn eq(&self, other: &ChartReason) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ChartReason

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> Finish for T

Source§

fn finish(self)

Does nothing but move self, equivalent to drop.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<U, T> ToOwnedObj<U> for T
where U: FromObjRef<T>,

Source§

fn to_owned_obj(&self, data: FontData<'_>) -> U

Convert this type into T, using the provided data to resolve any offsets.
Source§

impl<U, T> ToOwnedTable<U> for T
where U: FromTableRef<T>,

Source§

fn to_owned_table(&self) -> U

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.