-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Stats Refresh] Show grey bars when chart is empty #11887
Conversation
…comes in well after the other summary data.
…ere Likes was not updated after the query finished.
@danielebogo - I'm adding you as a reviewer in case you can get to this before @jklausa . Thanks! |
let totalViews = summaryData.compactMap({$0.viewsCount}).reduce(0, +) | ||
let totalVisitors = summaryData.compactMap({$0.visitorsCount}).reduce(0, +) | ||
let totalLikes = summaryData.compactMap({$0.likesCount}).reduce(0, +) | ||
let totalComments = summaryData.compactMap({$0.commentsCount}).reduce(0, +) |
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.
love it!
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.
Those empty charts look so much nicer now!
Looks good @ScoutHarris Are we going to be able to update the bars to the gradient type at any point? if not can you add a version for consideration where the bars are the full height of the chart? |
Hey @SylvesterWilmott . Honestly I'm not sure. Adding the gradient turned out to be a bit complicated. If we do, it'll be a while. So I went ahead and extended the bar heights with #11971. |
Ref #11876
Fixes #11888
This change displays light grey bars when a chart view is empty.
This also fixes an issue where chart Likes was not being updated after the Likes query finished.
To test:
Latest Post Summary chart:
Period Overview chart:
Post Stats chart:
Chart Likes:
Update release notes:
RELEASE-NOTES.txt
.