How display in all points values on Line Chart Java/JavaFX:
Asked
Active
Viewed 1,147 times
-1

Pierre.Vriens
- 2,117
- 75
- 29
- 42

hlalu12
- 25
- 4
-
That just looks like a standard picture of a JavaFX `LineChart`. What are you actually asking? – James_D Mar 27 '17 at 12:29
-
I need display values betwenn [Y/X] points – hlalu12 Mar 27 '17 at 12:35
1 Answers
4
This question talks about showing the values on hoover JavaFX LineChart Hover Values
You can likey adapt that solution to show the values all of the time.
Here is the example code refrenced there https://gist.github.com/jewelsea/4681797
This code is untested but I would start by using the example with this modification
HoveredThresholdNode(int priorValue, int value) {
setPrefSize(15, 15);
final Label label = createDataThresholdLabel(priorValue, value);
getChildren().setAll(label);
toFront();
}
From there you can start to pull away the parts you dont need.
-
1Use the supplied code, but instead of setOnMouseEnetered, just put that code in the constructor. – Jim Mar 27 '17 at 12:39
-