Trusted by the world’s leading companies
Overview
The JavaScript ProgressBar is a control that indicates the progress of a task with customizable visuals. It includes features to visualize progress in rectangular and circular shapes, determinate and indeterminate states, segments, and customized ranges in different colors. It also supports animation.
Types
Visualize progress in different shapes (rectangle, circle, and semi-circle) to give a unique appearance to your app design.
States
Visualize progress in different modes.
Determinate
Use the determinate mode progress bar when progress can be estimated.
Indeterminate
Use the indeterminate mode progress bar when progress cannot be estimated or calculated. It can be combined with determinate mode to let users know that the app is estimating the progress before the actual progress starts.
Buffer
Use a secondary progress indicator when the primary task depends on the secondary task. This will allow users to visualize both primary and secondary tasks’ progress simultaneously.
Segments
Avoid writing several lines of code to create and position multiple progress bars: just divide a progress bar into multiple segments using a single API to visualize the progress of multiple sequential tasks.
Angle
Customize the start and sweep angles of circular progress to give a unique style to the circular progress bar.
Tooltip
Display tooltips during initial load of progress bars and mouse hover with numeric or text values of the progress.
Custom content
Add any view to the center of a circular progress bar to: indicate the completion of the progress; add start, pause, or cancel buttons to control the progress interactively; add an image that indicates the actual task in progress; add custom text that conveys the progress.
Visualize multiple ranges
Along with visualizing the progress of a task, users can also visualize multiple ranges with gradient colors or solid colors that are mapped to each range to enhance the readability.
Appearance
The appearance of a progress bar is highly customizable.
Thickness
Tweak the thickness of the track and progress indicator to render the ProgressBar with different appearances.
Colors
Apply appealing colors to the track and progress indicator to match your app theme.
Corner radius
The corner radius of the progress bar can be customized.
JavaScript Progress Bar Code Example
Easily get started with JavaScript Progress Bar using a few simple lines of HTML and JS code example as demonstrated below. Also explore our JavaScript Progress Bar Example that shows you how to render and configure the chart.
<!DOCTYPE html>
<html>
<head></head>
<body>
<div id="container">
<div id="percentage"></div>
</div>
</body>
</html>import { ProgressBar } from '@syncfusion/ej2-progressbar ';
// Initialize ProgressBar component
let ProgressBar: ProgressBar = new ProgressBar({
value: 40
});
// Render initialized ProgressBar
ProgressBar.appendTo('#percentage');Other supported frameworks
The ProgressBar component is also available in Blazor, React, Angular, and Vue frameworks. Check out the different ProgressBar platforms from the links below,
145+ JAVASCRIPT UI CONTROLS
Our Customers Love Us
Here are some of their experiences.
Awards
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.