Hi there,
Vaadin Charts is fine so far. Thank you for the great components! But now, I’ve found a serious problem with Scatter 3D. If my dataset is larger then arount 1500 entries or so, the chart display “No Data” … After a lot off digging in the code, I’ve found no solution.
But I’ve tested it with Scatter 3D example from https://demo.vaadin.com/charts/#Basic3DScatter. Setup with 5000 random points (see below) and …
don’t work! “No Data”. So what can I do to keep things working, also with “larger” (2000 Points isn’t large!) datasets?!?
Please help!
Matthias
private void fillSeries(DataSeries higherX, DataSeries higherY,
DataSeries higherZ) {
Random random = new Random(7);
for (int i = 0; i < 5000; i++) {
double lng = random.nextDouble() * 2 * Math.PI;
double lat = random.nextDouble() * Math.PI - Math.PI / 2;
double x = Math.cos(lat) * Math.sin(lng);
double y = Math.sin(lat);
double z = Math.cos(lng) * Math.cos(lat);
DataSeriesItem3d point = new DataSeriesItem3d(x, y, z);
if (x > y && x > z) {
higherX.add(point);
} else if (y > x && y > z) {
higherY.add(point);
} else {
higherZ.add(point);
}
}
}