From a043e23bc48b5c900f2282a8272c2827a345be55 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Tue, 24 Sep 2019 12:45:51 +0200 Subject: Fix chart onClick event parameters (#84) --- .../src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvision-modules/kvision-chart/src') diff --git a/kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt b/kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt index df3b7973..91944e74 100644 --- a/kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt +++ b/kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt @@ -738,7 +738,7 @@ data class ChartOptions( val hover: HoverOptions? = null, val events: List? = null, val onHover: ((chart: Chart, event: MouseEvent, activeElements: Array) -> Any)? = null, - val onClick: ((chart: Chart, event: MouseEvent, activeElements: Array) -> Any)? = null, + val onClick: ((event: MouseEvent, activeElements: Array) -> Any)? = null, val animation: AnimationOptions? = null, val layout: LayoutOptions? = null, val legend: LegendOptions? = null, -- cgit