diff options
Diffstat (limited to 'kvision-modules')
-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 ) /** |