2

谁能告诉我 JavaFX 散点图可以显示多少点?图表可以在这里看到。

图表看起来很棒,但只是想知道性能。

如果我错了,有人纠正我,但 JavaFX 不是基于场景图吗?图表是否自动处理重叠点?

谢谢

4

1 回答 1

2

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)

于 2013-02-11T04:12:10.330 回答