Robert Jaros
10/09/2019, 8:32 AMaChart.configuration = ....
with new Configuration
object containing new data should work
so I would try to:
1. create a helper function to get current configuration:
fun getChartConfig() = Configuration(
ChartType.PIE,
listOf(
DataSets(
data = pieSizes
)
)
)
2. create a chart with the help of this function:
val aChart = Chart(getChartConfig())
3. subscribe to the observable list:
pieSizes.onUpdate += {
aChart.configuration = getChartConfig()
}
Lars Erik Rojeras
10/09/2019, 7:24 PMLars Erik Rojeras
10/09/2019, 7:26 PMLars Erik Rojeras
10/10/2019, 7:14 AM