ChartController

interface ChartController<DOMAIN>

Interface to control a Chart: highlight or select elements, zoom the view or pan it.

Functions

highlight
Link copied to clipboard
common
@JvmName(name = "highlightDomains")
abstract fun highlight(domains: Collection<DOMAIN>)
Highlight the given DOMAIN objects.
@JvmName(name = "highlightData")
abstract fun highlight(data: Collection<Datum<DOMAIN>>)
Highlight the given Datums.
pan
Link copied to clipboard
common
abstract fun pan(panX: Percent, panY: Percent)
Move the "viewport" of the Chart by a certain percentage in X or Y direction.
pushEvent
Link copied to clipboard
common
abstract fun pushEvent(event: ChartEvent)
Push a ChartEvent on the Chart.
select
Link copied to clipboard
common
@JvmName(name = "selectDomains")
abstract fun select(domains: Collection<DOMAIN>)
Select the given DOMAIN objects.
@JvmName(name = "selectData")
abstract fun select(data: Collection<Datum<DOMAIN>>)
Select the given Datums.
viewReset
Link copied to clipboard
common
abstract fun viewReset()
Reset the view, setting the pan and zoom to their origin values.
zoom
Link copied to clipboard
common
abstract fun zoom(zoomOriginX: Percent, zoomOriginY: Percent, zoomFactorX: Percent, zoomFactorY: Percent)
Zoom the "viewport" of the Chart by a certain percentage in X or Y direction, knowing the zoom origin.

Inheritors

Chart
Link copied to clipboard