Class Annotations
java.lang.Object
org.apache.juneau.console.freemarker.Annotations
- All Implemented Interfaces:
Decorator
The built-in
annotations decorator: ECharts markPoint presets (max, min, average) on every series,
or explicit points on a carrier series juneau-annotations-<n>.
Example:
Annotations.
- Since:
- 10.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic Annotationsaverage()static Annotationsmax()static Annotationsmin()static AnnotationstoJson()withMax()withMin()
-
Method Details
-
max
- Returns:
- A new decorator marking each series' maximum.
-
min
- Returns:
- A new decorator marking each series' minimum.
-
average
- Returns:
- A new decorator marking each series' average.
-
points
- Parameters:
rows- Explicit points{x, y, label}. @return A new decorator.
-
withMax
- Returns:
- This object, also marking the maximum.
-
withMin
- Returns:
- This object, also marking the minimum.
-
withAverage
- Returns:
- This object, also marking the average.
-
label
- Parameters:
v- A label template (templatefn tokens). @return This object.
-
toJson
- Specified by:
toJsonin interfaceDecorator- Returns:
- A new map
{"use": name, ...args}; a stringtopickey is published on click, andChartDef.decorate(Decorator)adds it to the card'spublishes.
-