4
J'ai un tracé XY de positions et je veux que le point le plus récent soit une icône. Est-ce possible dans JFreeChart?Icône sur un graphe JFreeChart XY
J'ai un tracé XY de positions et je veux que le point le plus récent soit une icône. Est-ce possible dans JFreeChart?Icône sur un graphe JFreeChart XY
sur un terrain xy vous devez garder une trace du dernier point xy ajouté, puis l'ajouter en utilisant quelque chose comme ce qui suit:
double x = 150;
double y = 300;
XYPlot plot = chart.getXYPlot();
ImageIcon imageIcon = new ImageIcon("/path/to/your/icon.png");
XYAnnotation xyannotation = new XYImageAnnotation(x, y, imageIcon.getImage());
plot.addAnnotation(xyannotation);
Yat-il un moyen de désactiver l'annotation décalage? – ShawnD
Désolé répondu ma propre question. – ShawnD