Ok well I got the points to add properly, but now ...
# tornadofx
s
Ok well I got the points to add properly, but now I am experiencing very strange animating issues. Looks like it's trying to animate to the Y value first and then the X instead of the diagonal between them. I'm not quite sure how TornadoFX does it's animations for adding Data points to a graph (if anyone has any insight on this, would be appreciated!)
👍 2
r
To me it looks like it's animating both x and y, but the x value seems to be snapping, which is why it jumps half way through the animation.
I'm guessing its an implementation detail of the chart that x values are snapped. You may want to look if there's an option to disable it.
👍 1
s
I'll look into that. Thank you!
a
What have you ended up using for charts?
Generic JavaFX?
s
I switched back to using regular JavaFX for now, I'm not quite sure what type of graphing will be needed once I integrate the actual data source (sensor data mostly). The library is still being worked on so I'm just testing for now. Might have to switch to jfreechart if I need something more complex. The only things I need to do that I'm not quite sure if I can do in regular JavaFX graphs are a.) scrolling the graph as new values come in, and b.) letting the user adjust the scale of the axis
a
There are a lot more problems there. For example you can't have both scatter and line charts on the same plot. You need to rewrite chart classes for that 😞 I found it to complicated.
a
What are you using for animating the chart?
s
I'm just using the animations that TornadoFX provides for adding new points
i haven't adjusted anything in the settings
I actually have to switch back to jfreechart as I need line smoothing on my linechart 😞 gotta use their XYSplineRenderer
a
As expected. JFreeChart is ancient, but it has quite a lot of features. I do not think it makes sense now to invest in library on top of JavaFX charts. Probably better to wait for data2viz to mature.
s
That's the plan! I'm keeping an eye on their releases. 👀 For now I will wade through the jfreechart javadocs trying to figure out which one of their billion datasets/charts i actually need to use
a
btw this is very cool!
Also look into ChartsFX!
s
@amanda.hinchman-dominguez ChartsFX? Do you mean Orson ChartsFX or something else? Google is being uncooperative.
a
a
^ what @abhinay said! HanSolo has really awesome JavaFX libraries that make your data and dashboards look amazing with little work!
a
I tried it some time ago, but it was not very alive
a
alive?