-
Notifications
You must be signed in to change notification settings - Fork 120
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
Smarter duplicate ticks finder #667
Comments
It seems like Also, the deduplication logic could be smart enough to place the remaining label of a deduplicated sequence in the center of the covered range. |
Thank @flash1293, that's indeed a better behavior than the current one.
I'm not sure I've understood perfectly what you mean, but the tick should always indicate the starting of an interval because it's much more clear to understand where one interval start and end, having them in the center of each interval could create confusions between users: some could interpret them as the center of the interval, some other as the beginning. The bottom-most axis/tick/label alignment is for me a better alignment in this case, what do you think? The tick lines are aligned with the beginning of each interval, where the label is centered in each interval instead of centered on the tick |
@markov00 you are completely right, thanks for the illustration. I think the current deduplication logic keeping the first tick is fine. The "tradeoff" option looks interesting but it seems to be uncommon. |
This commit fix the current behaviour of the duplicated ticks handling the removal only for consecutive duplicated ticks" fix elastic#667
This commit fixes the current behavior of the duplicated ticks handling the removal only for consecutive duplicated ticks fix #667
🎉 This issue has been resolved in version 19.8.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 19.8.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [19.8.1](elastic/elastic-charts@v19.8.0...v19.8.1) (2020-07-07) ### Bug Fixes * **axes:** remove only consecutive duplicated ticks ([opensearch-project#742](elastic/elastic-charts#742)) ([1d4fddc](elastic/elastic-charts@1d4fddc)), closes [opensearch-project#667](elastic/elastic-charts#667)
Is your feature request related to a problem? Please describe.
We introduced the
showDuplicateTicks
property to show/hide duplicated ticks on a specific axis.This works great until the user wants a set of repeated tick like in the following example:
I'm rendering a line series chart, where my x-axis has a time scale. My data spans 3 days, and I want to display ticks at midnight and at twelve o'clock.
Should the library be smart enough to detect this situation or should we leave the consumer to choose and handle that case?
This is, for example, the current situation in TSVB when choosing a time range of 3 days and an
auto
time interval.The
showDuplicateTicks
is off by default and the ticks are wrongly deduplicated.Kibana Cross Issues
elastic/kibana#47045
elastic/kibana#70956
Checklist
Delete any items that are not applicable to this feature request.
Kibana Cross Issues
listkibana cross issue
tag is associated to the issue if any kibana cross issue is presentThe text was updated successfully, but these errors were encountered: