-
-
Notifications
You must be signed in to change notification settings - Fork 684
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
fix: fill the datasets with 0s when not enough data points #6793
Conversation
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
flex: 1, | ||
maxWidth: '360px', | ||
width: '100%', | ||
zIndex: 100000, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can avoid fixed numbers here? https://mui.com/material-ui/customization/z-index/
https://github.com/Unleash/unleash/blob/main/frontend/src/themes/theme.ts#L73-L75
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, this was there. Feel free to adapt in a different PR. The point of this PR is to fill the chart data with 0s when no data for that datapoint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the zIndex. It's not needed
...t/insights/componentsChart/UpdatesPerEnvironmentTypeChart/UpdatesPerEnvironmentTypeChart.tsx
Outdated
Show resolved
Hide resolved
…ronmentTypeChart/UpdatesPerEnvironmentTypeChart.tsx Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Fills datasets that do not have all the datapoints with 0 so that every line in the graph starts at the beginning and ends at the end of graph.
Closes # 1-2256