diff options
Diffstat (limited to 'kvision-modules/kvision-chart/src')
-rw-r--r-- | kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt | 4 |
1 files changed, 3 insertions, 1 deletions
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<DataSets>, val labels: List<String>? = null, - val options: ChartOptions? = null + val options: ChartOptions? = null, + val plugins: List<dynamic>? = 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 } |