if (chart.isAnimated() && sprite.getTranslation() != null) {
DrawFx.createTranslationAnimator(sprite, point.getX(), point.getY() - offsetY).run(
chart.getAnimationDuration(), chart.getAnimationEasing());
} else {
sprite.setTranslation(point.getX(), point.getY() - offsetY);
sprite.redraw();
}
}
} else if (labelPosition == LabelPosition.END || labelPosition == LabelPosition.START) {
for (int i = 0; i < yValues.size(); i++) {
double[] values = yValues.get(i);