2

enter image description here

This is the graph produced by JavaFX. Does anyone know how to position the x and y axis to be in the middle of the graph, along those gray lines?

For claification, "middle" means something like this, where the axis is in the center:enter image description here

NumberC
  • 596
  • 7
  • 17
  • What do you mean by in the middle? Your question is unclear, I think it is more related to mathematics than to JavaFX – adxl Mar 14 '20 at 17:39
  • @adxl I just edited the question to include a picture of what I'm trying to accomplish. – NumberC Mar 14 '20 at 17:42
  • Does this help you : https://stackoverflow.com/a/24008426/9104087 ? – adxl Mar 14 '20 at 18:02
  • A bit. This solution requires having to work with other classes. If possible, I'm trying to use `NumberAxis` and `LineChart`. Thank you, though! – NumberC Mar 14 '20 at 18:23
  • I'm not familiar with chart stuff, but I think that if you provide some code maybe someone could help you :) – adxl Mar 14 '20 at 18:25
  • 1
    I think I'm just going to try to contact the person who provided the answer in the link you sent me. Thank you so much! – NumberC Mar 14 '20 at 18:27

0 Answers0