Class Markers
java.lang.Object
org.apache.juneau.console.freemarker.Markers
- All Implemented Interfaces:
Decorator
The built-in
markers decorator: vertical mark lines at x values from a list, a same-origin src, a
data: topic, or the current time. The lines ride a carrier series juneau-markers-<n>.
Example:
Markers.
- Since:
- 10.0.0
-
Method Details
-
from
- Parameters:
path- A same-origin path returning rows. @return A new decorator.
-
values
- Parameters:
rows- Inline rows{at, label?, meta?}. @return A new decorator.
-
source
- Parameters:
dataTopic- Adata:topic (Topics.data(...)). @return A new decorator.
-
now
- Parameters:
label- The label of a mark line at the current time. @return A new decorator.
-
at
- Parameters:
field- The row field holding the x value. @return This object.
-
label
- Parameters:
field- The row field holding the line label. @return This object.
-
style
- Parameters:
v-solid,dashedordotted. @return This object.
-
onClick
- Parameters:
topic- A custom topic the card publishes a click on a line to. @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.
-