From c4a43b9c8ce6db65784e9bcb7073dcf6c4a6cd41 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Tue, 29 Oct 2019 12:42:28 +0100 Subject: Allow per chart plugins configuration (#81) --- .../src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kvision-modules/kvision-chart') 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 ec69795b..7c77ec00 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 @@ -891,7 +891,8 @@ data class Configuration( val type: ChartType, val dataSets: List, val labels: List? = null, - val options: ChartOptions? = null + val options: ChartOptions? = null, + val plugins: List? = null ) /** @@ -909,6 +910,7 @@ fun Configuration.toJs(i18nTranslator: (String) -> (String)): Chart.ChartConfigu }.toTypedArray() } if (options != null) this.options = options.toJs(i18nTranslator) + if (plugins != null) this.plugins = plugins.toTypedArray() } as Chart.ChartConfiguration } -- cgit