tornadofx / tornadofx / javafx.scene.chart.PieChart

Extensions for javafx.scene.chart.PieChart

data fun PieChart.data(name: String, value: Double, op: Data.() -> Unit = {}): <ERROR CLASS>

Add and create a PieChart.Data entry. The optional op will be performed on the data instance, a good place to add event handlers to the PieChart.Data.node for example.

fun PieChart.data(value: Map<String, Double>): <ERROR CLASS>

Add and create multiple PieChart.Data entries from the given map.