#[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
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
impl Clone for ChartReason
Source§fn clone(&self) -> ChartReason
fn clone(&self) -> ChartReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ChartReason
Source§impl Debug for ChartReason
impl Debug for ChartReason
Source§impl Display for ChartReason
impl Display for ChartReason
impl Eq for ChartReason
Source§impl Hash for ChartReason
impl Hash for ChartReason
Source§impl PartialEq for ChartReason
impl PartialEq for ChartReason
impl StructuralPartialEq for ChartReason
Auto Trait Implementations§
impl Forget for ChartReason
impl Freeze for ChartReason
impl Move for ChartReason
impl RefUnwindSafe for ChartReason
impl Send for ChartReason
impl Sync for ChartReason
impl Unpin for ChartReason
impl UnsafeUnpin for ChartReason
impl UnwindSafe for ChartReason
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.