This repository has been archived by the owner on Sep 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 272
Chart builders with data parameter for all charttypes #1132
Comments
I believe that's because PieChart only has a single dimension, whereas the other charts support multiple dimensions so it's more convenient to generate series of data using the |
That makes sense. However, in my application the val series = observableListOf<XYChart.Serie>();
linechart {
data.bind(series);
} Would it make sense to add a convenience constructor parameter for this use-case? |
Sure :) It's in line with how the other builders work, so a PR would be welcome :) |
@HoldYourWaffle I’ll get this merged in. Can you also submit one for the jdk10 branch to make it easy? ;) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is there a reason why only the
piechart
builder has adata
parameter?tornadofx/src/main/java/tornadofx/Charts.kt
Lines 7 to 14 in e63f086
tornadofx/src/main/java/tornadofx/Charts.kt
Lines 33 to 37 in e63f086
The text was updated successfully, but these errors were encountered: