diff options
author | Robbie Cronin <robert.cronin@uqconnect.edu.au> | 2019-05-01 14:13:09 +0800 |
---|---|---|
committer | Robbie Cronin <robert.cronin@uqconnect.edu.au> | 2019-05-01 14:13:09 +0800 |
commit | 37e980522d2512b25e0bfa074fce42732d5c0596 (patch) | |
tree | 91c2279f1bb56e1ebe56647acb9df8e12734e606 /kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft | |
parent | 0c6da96f0ce5ddbbfa58d9efed96ac62f2a22221 (diff) | |
download | kvision-37e980522d2512b25e0bfa074fce42732d5c0596.tar.gz kvision-37e980522d2512b25e0bfa074fce42732d5c0596.tar.bz2 kvision-37e980522d2512b25e0bfa074fce42732d5c0596.zip |
Update missed namespace changes
Change Options to ChartOptions to match new variable name
Diffstat (limited to 'kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft')
-rw-r--r-- | kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt | 4 |
1 files changed, 2 insertions, 2 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 a598bc5d..df3b7973 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 @@ -758,7 +758,7 @@ data class ChartOptions( * An extension function to convert configuration class to JS object. */ @Suppress("ComplexMethod") -fun Options.toJs(i18nTranslator: (String) -> (String)): dynamic { +fun ChartOptions.toJs(i18nTranslator: (String) -> (String)): dynamic { return obj { this.responsive = responsive this.responsiveAnimationDuration = responsiveAnimationDuration @@ -889,7 +889,7 @@ data class Configuration( val type: ChartType, val dataSets: List<DataSets>, val labels: List<String>? = null, - val options: Options? = null + val options: ChartOptions? = null ) /** |