tornadofx / tornadofx / series

series

fun <X, Y, ChartType : XYChart<X, Y>> ChartType.series(name: String, elements: ObservableList<Data<X, Y>>? = null, op: Series<X, Y>.() -> Unit = {}): <ERROR CLASS>

Add a new XYChart.Series with the given name to the given Chart. Optionally specify a list data for the new series or add data with the optional op that will be performed on the created series object.