diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-10-29 12:42:28 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-10-29 12:42:28 +0100 |
commit | c4a43b9c8ce6db65784e9bcb7073dcf6c4a6cd41 (patch) | |
tree | a9b8fe9437b104933b9ba3a020957bc09056f1f9 /kvision-modules/kvision-chart/src | |
parent | ff2b3855d3039025fb59f3113cdf41491f16f039 (diff) | |
download | kvision-c4a43b9c8ce6db65784e9bcb7073dcf6c4a6cd41.tar.gz kvision-c4a43b9c8ce6db65784e9bcb7073dcf6c4a6cd41.tar.bz2 kvision-c4a43b9c8ce6db65784e9bcb7073dcf6c4a6cd41.zip |
Allow per chart plugins configuration (#81)
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 } |