GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — fix: Format date tick labels with minor-tick precision when using `ticklabelindex` by my-tien · Pull Request #7935 · plotly/plotly.js Conversation
|
| // axis is just necessary when using ticklabelindex. | ||
| autoTickRound(mockAx); | ||
| delete mockAx.minor; // prevent self-reference | ||
| Lib.extendFlat(ax.minor, mockAx); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
What are you trying to copy over on this line? I think it might be better to save the specific keys you're looking for than adding the entirety of mockAx.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I now only copy the _tickround value over that is used in formatDate.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…tible with minor ticks. E.g. if major ticks are daily and minor ticks are hourly, tick labels on minor ticks should include hourly information.
…eriod labels The longer period labels need more space.
140c33b to
60241b8
Compare
The positioning of the tick label was fixed in b4d49bd and this PR was rebased on top.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[BUG]: tickformat doesn't adjust when labels are positioned below minor ticks (because of ticklabelindex)
There was an error while loading. Please reload this page.