Class Bands
java.lang.Object
org.apache.juneau.console.freemarker.Bands
- All Implemented Interfaces:
Decorator
The built-in
bands decorator: shaded x ranges from a list, a same-origin src, a data: topic,
or the gaps in the first series (gaps()). The areas ride a carrier series juneau-bands-<n>.
Example:
Bands.
- Since:
- 10.0.0
-
Method Details
-
from
- Parameters:
path- A same-origin path returning rows. @return A new decorator.
-
values
- Parameters:
rows- Inline rows{start, end, label?}. @return A new decorator.
-
source
- Parameters:
dataTopic- Adata:topic. @return A new decorator.
-
gaps
Shades the runs of empty buckets in the first series. @return A new decorator. -
start
- Parameters:
field- The row field holding the range start. @return This object.
-
end
- Parameters:
field- The row field holding the range end. @return This object.
-
label
- Parameters:
v- The band label. @return This object.
-
minGap
- Parameters:
buckets- The shortest gap shaded bygaps(), at least 1. @return This object.
-
onClick
- Parameters:
topic- A custom topic the card publishes a click on a band 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.
-