Loading Bar

From ImpVis Wiki
Revision as of 16:07, 27 September 2021 by Cclewley (talk | contribs)
Jump to navigation Jump to search

This page is a child of the Loading tools page.

The loading bar component appears as a grey rectangle that fills up and serves to display the loading progress of a visualisation. It is particularly useful when a long loading time is inevitable as it assures the user that loading is happening. The benefit of this component over the loading spinner component is this component allows the user to anticipate the loading time. This component can be called using the iv-loading-bar tag.

LoadingBarMidProgress.png

Technical information

The iv-loading-bar is a non-reactive that takes in a number and display the number through its percentage width.

Props

Name: loadingProgress

Type: Number

Default: 0

Description: The number that is taken in and turned into percentage width of the blue progress bar.

Usage

To display the loading progress of a visualisation, bind a number, which must have a range of only 0 to 100, that reflects the loading.

Picture of the loading bar at 0% completeness.

LoadingBar2.png

LoadingBar3.png


Design choice

The blue progress bar is chosen to fit in the general ImpVis blue while the grey background gives a sense of incomplete or inactive.