public class DefaultChartInteraction extends Object implements IsDefaultInteraction
Constructor and Description |
---|
DefaultChartInteraction(IsDefaultInteraction interaction)
Creates the object by interaction option element instance.
|
Modifier and Type | Method and Description |
---|---|
InteractionAxis |
getAxis()
Returns to 'x', 'y', or 'xy' to define which directions are used in calculating distances.
|
InteractionMode |
getMode()
Returns which elements appear in the tooltip.
|
boolean |
isIntersect()
if true, the hover mode only applies when the mouse position intersects an item on the chart.
|
public DefaultChartInteraction(IsDefaultInteraction interaction)
interaction
- interaction option element instance.public final InteractionMode getMode()
IsDefaultInteraction
getMode
in interface IsDefaultInteraction
public final boolean isIntersect()
IsDefaultInteraction
isIntersect
in interface IsDefaultInteraction
public final InteractionAxis getAxis()
IsDefaultInteraction
getAxis
in interface IsDefaultInteraction