Class ChartEvents.OnChartClick.ClickTriggerEvent<T extends ChartEvents.OnChartClick<C,E>.ClickTriggerEvent<?>>
Object
AbstractChartEvent<C,E>.AbstractChartEvent.TriggerEvent<T>
ClickTriggerEvent<T>
- Direct Known Subclasses:
BarLineChart.BarLineOnChartClick.BarLineTriggerEvent,BubbleChart.BubbleOnChartClick.BubbleTriggerEvent,ScatterChart.ScatterOnChartClick.ScatterTriggerEvent
- Enclosing class:
ChartEvents.OnChartClick<C extends AbstractChartBuilder<?>,E extends ChartEvents.OnChartClick<C, E>>
public abstract class ChartEvents.OnChartClick.ClickTriggerEvent<T extends ChartEvents.OnChartClick<C,E>.ClickTriggerEvent<?>>
extends AbstractChartEvent<C,E>.TriggerEvent<T>
Base class for the event-payload builder returned by a chart-type-specific
AbstractChartEvent.triggerEvent(String), for example
ScatterChart.ScatterOnChartClick.ScatterTriggerEvent or
BarLineChart.BarLineOnChartClick.BarLineTriggerEvent. You never instantiate this class or a
concrete subclass of it directly. Which of this class's methods a concrete chart type exposes
depends on what data that chart type's clicked point can provide.-
Field Summary
Fields inherited from class AbstractChartEvent.TriggerEvent
eventName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TIncludes the clicked point's aggregation ("group by") dimension in the event payload, under the attribute name"aggregationBy".protected TIncludes the clicked point's "band by" dimension in the event payload, under the attribute name"bandBy".protected TIncludes the clicked point's X axis category in the event payload, under the attribute name"x".Methods inherited from class AbstractChartEvent.TriggerEvent
back, getThis
-
Constructor Details
-
ClickTriggerEvent
-
-
Method Details
-
withXAsEventDataAttr
Includes the clicked point's X axis category in the event payload, under the attribute name"x".- Returns:
- this trigger-event builder, for chaining further configuration
-
withAggregationByAsEventDataAttr
Includes the clicked point's aggregation ("group by") dimension in the event payload, under the attribute name"aggregationBy".- Returns:
- this trigger-event builder, for chaining further configuration
- See Also:
-
withBandByAsEventDataAttr
Includes the clicked point's "band by" dimension in the event payload, under the attribute name"bandBy".- Returns:
- this trigger-event builder, for chaining further configuration
- See Also:
-