fix(dashboards): Rebalance chart interval options and defaults#112562
Draft
fix(dashboards): Rebalance chart interval options and defaults#112562
Conversation
Replace 15m with 10m, add 6h, and remove 1d from interval options to create a more even step progression (alternating 2x/3x multipliers). Rebalance MINIMUM and MAXIMUM interval ladders with new thresholds at 12h, 2d, and 4d for tighter duration bands. Default to second-biggest interval on dashboards so charts are smooth out of the box while still offering a hyper-granular option for power users. Previously, 90d at 3h produced 720 data points per chart, causing UI jank and moiré artifacts on bar charts. Now defaults stay in the 60–360 range across all durations. Refs DAIN-1376 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Rebalance chart interval ladders and default strategy on dashboards to reduce data point counts and improve chart smoothness.
See DAIN-1376 for full context and audit.
tl;dr the current behaviour is: give everyone 3-4 options for the interval, always default to the highest granularity. This causes much jank, since so much data is loading! What we think we want to do is choose the second highest granularity by default, but in many cases that's not enough points.
In this PR I both switch to using the second-highest granularity by default (in Dashboards, not Explore), and also re-balance the options so things are a bit more even. It's a bit of science and a bit of art, but the results should be pretty decent!
Before
Defaults (bold) hit 575–720 points at the upper end of every band, which is an awful lot of points to show by default.
After
Defaults (bold) stay in the 60–360 range. High granularity is still available for those who want it.
Changes
15mwith10m, add6h, remove1dfrom interval optionsUSE_SECOND_BIGGEST), keep Explore using the highest granularity by defaultRefs DAIN-1376