Skip to content
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

feat(dashboards): Add incomplete bucket support to LineChartWidget #81405

Merged
merged 7 commits into from
Nov 28, 2024

Conversation

gggritso
Copy link
Member

@gggritso gggritso commented Nov 27, 2024

Shamelessly adapted from #72469, with some minor changes to the code. In short, given a data delay of about 90s, any chart buckets that fall into that delay are plotted with a dotted line.

Right now this is done using a series of crimes, in which we split the series into two: a complete and an incomplete. A future version of ECharts promised to allow styling line segments of a series, but right now that's not possible. Even using a custom renderer doesn't work because in that case the segments are plotted one-by-one, which creates a "broken" line, without proper caps.

e.g.,
Screenshot 2024-11-27 at 5 00 39 PM

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 27, 2024

This comment was marked as outdated.

@gggritso gggritso marked this pull request as ready for review November 28, 2024 15:32
@gggritso gggritso requested a review from a team as a code owner November 28, 2024 15:32
@gggritso gggritso enabled auto-merge (squash) November 28, 2024 19:25
@gggritso gggritso merged commit 6a1fd3b into master Nov 28, 2024
42 of 43 checks passed
@gggritso gggritso deleted the feat/dashboards/line-chart-dotted-buckets branch November 28, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants