no, ok ho capito l'inghippo.
ci sono troppi valori.
infatti se li limito a 10 funziona:
codice:
int count = 0;
for (Map.Entry<String, Long> entry : map.entrySet()) {
String tmpString = entry.getKey();
Long tmpValue = entry.getValue();
XYChart.Data<String, Number> d = new XYChart.Data<>(tmpString, tmpValue);
//System.out.println(tmpString + ": " + tmpValue);
//System.out.println(d);
series1.getData().add(d);
count++;
if (count == 10) {
break;
}
}
a questo punto, però, mi conviene ordinare la map quando la raggruppo!