Enum ShowDataValuesMode
- All Implemented Interfaces:
ValueEnum
,Serializable
,Comparable<ShowDataValuesMode>
,Constable
formatted text labels
for data-values. There are
two basic mechanisms: - inChart - data-values are displayed in the chart-body close to their data-points -
not all
chart-types
support showing data-values in the chart-body, and none will show them all if data-density is such that the labels would overlap or extend beyond their available area - inHover - as the mouse moves over the chart body, the data-value
for the
nearest data-point
is displayed in alabel
floating near the shape it represents. When showing values in hovers, the visual element representing the data value is also emphasized by brightening or highlighting it (appearance differs by chart type).
chart-type
; for example, Stacked charts
cannot show data-values in the chart body;
column charts can, and they can also rotate
values
to fit if necessary; pie charts, can show just the data-values that fit inside their segments in the
chart-body; all types can show data-values in hovers. -
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionshow data-values in the chart, when the chartType supports it and when they fit without overlapping (including afterrotation
), and in hovers otherwiseshow data-values that fit in the chart body and also switch on hoversshow data-values in the chart body, but only if they all fit - no hoversshow data-values in the chart body and, if any don't fit, switch to hoversalways show data-values in hoversnever show data-values at all -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static ShowDataValuesMode
Returns the enum constant of this type with the specified name.static ShowDataValuesMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NEVER
never show data-values at allIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "never". -
AUTO
show data-values in the chart, when the chartType supports it and when they fit without overlapping (including afterrotation
), and in hovers otherwiseIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "auto". -
INCHARTONLY
show data-values in the chart body, but only if they all fit - no hoversIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "inChartOnly". -
INCHARTORHOVER
show data-values in the chart body and, if any don't fit, switch to hoversIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "inChartOrHover". -
INCHARTANDHOVER
show data-values that fit in the chart body and also switch on hoversIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "inChartAndHover". -
INHOVERONLY
always show data-values in hoversIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "inHoverOnly".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-