This repository was archived by the owner on Jul 29, 2019. It is now read-only.
fixed label disappearing bug for large axis values in graph3d #2348
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Axis labels of graph3d is positioned on the middle point of between the origin and the center of each range. e.g.,
For example, for xRange = [100, 200], the center of range is (100+200)/2 = 150 and the middle point is (0+150)/2 = 75 then the middle point is positioned out of range. So axis labels disappear. This patch uses points divide each range in the ratio 1:3 as axis label positions
I've setup preview https://fiddle.jshell.net/gotoken/5sk9ka72/3/show/ . Please try to reproduce by pasting this CSV into http://visjs.org/examples/graph3d/playground/index.html then click "Draw graph".