You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an issue when programming a custom chart based on the code in the XYChart and XYPane classes. It seems that if your chart has a left y and a bottom y axis, then if you remove one the graph canvas shifts to overlap the other. So, removing the y means the bottom of the canvas is the bottom of the x axis, and removing the x means the left of the canvas is the left of the y axis. In addition to this, the canvas seems to be squashed into a smaller area focused around the remaining axis.
Here are examples:
With both
With X only
With Y only
The text was updated successfully, but these errors were encountered:
I would suggest that the remaining axis should be the border, in case of a left, right, top, or bottom axis. I think what's surprising here is that the remaining axis seems to become a center axis of sorts.
I found that setting the Pane's upper and lower bounds in the chart's initGraphics after calling checkForAxis makes the canvas cover the area nicely, but I'm unsure of what to do with the Axis part.
I ran into an issue when programming a custom chart based on the code in the XYChart and XYPane classes. It seems that if your chart has a left y and a bottom y axis, then if you remove one the graph canvas shifts to overlap the other. So, removing the y means the bottom of the canvas is the bottom of the x axis, and removing the x means the left of the canvas is the left of the y axis. In addition to this, the canvas seems to be squashed into a smaller area focused around the remaining axis.
Here are examples:
With both
With X only
With Y only
The text was updated successfully, but these errors were encountered: