开发者

What is the performance limitation of a javafx scatter plot?

Can anyone tell me how ma开发者_运维百科ny points a JavaFX scatter chart can display? The charts can be seen here.

The charts look great, but just wondering about performance.

Someone correct me if I'm wrong, but isn't JavaFX based on a scene graph? Does the chart handle overlapping points automatically?

Thanks


isn't JavaFX based on a scene graph?

It is.

ScatterChart points are all stack panes. (reference) All of the specified points are added to the scene. They can be animated. Even when the points are overlapping they are added separately. So you see the point which is added last.

I haven't tested the performance. If you use this chart to show a constant set of data, then I would recommend to turn on caching on this chart. Which makes a bitmap and does not render it so often.

If you have a large set of data, plot it on a Canvas. (Which is now and was not when you asked)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜