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

Updated loading indicator on ranking, line, scatter, and bar chart #4184

Merged
merged 11 commits into from
May 23, 2024

Conversation

dwnoble
Copy link
Contributor

@dwnoble dwnoble commented May 2, 2024

  • Added spinner and "Loading" indicator to ranking, line, scatter, and bar chart
  • Lightened color of full-page & stat var explorer loading screen

Screenshots

Explore page

Full page loading

explore-full-page-load

Bar

explore-bar-loading
explore-bar-loaded

Line

explore-line-loading
explore-line-loaded

Ranking

explore-ranking-loading
explore-ranking-loaded

Scatter

explore-scatter-loading
explore-scatter-loaded

Visualization tool

Loading

viz-tool-loading

Line

viz-line-loading
viz-line-loaded

Map / Ranking

viz-map-loading
viz-map-loaded

Scatter

viz-scatter-loading
viz-scatter-loaded

Copy link
Contributor

@chejennifer chejennifer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

return (
<div
className={"ranking-list " + ASYNC_ELEMENT_CLASS}
ref={props.forwardRef}
>
<div className="ranking-header-section">
<h4>{props.title}</h4>
<h4>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: consider extracting this loading header into a shared component to be used by chart_tile.tsx, ranking_tile.tsx, and here to make sure it is always consistent if changes are made in the future?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@dwnoble dwnoble enabled auto-merge (squash) May 3, 2024 21:12
@dwnoble dwnoble merged commit 1313ca4 into datacommonsorg:master May 23, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants