8000 tickvals / ticktext edge cases by alexcjohnson · Pull Request #1191 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

tickvals / ticktext edge cases #1191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Nov 23, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tighter test for when to remove seconds from date tick text
make sure it's not already HH:MM
  • Loading branch information
alexcjohnson committed Nov 22, 2016
commit 27fb4b117c52f3322dd1a728a5a032b7acc2621f
4 changes: 3 additions & 1 deletion src/plots/cartesian/axes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,9 @@ function formatDate(ax, out, hover, extraPrecision) {
tt = suffix;
suffix = '';
}
else {
else if(tt.length === 8) {
// strip off seconds if they're zero (zero fractional seconds
// are already omitted)
tt = tt.replace(/:00$/, '');
}
}
Expand Down
0