Skip to content

Progress Ring Goal Chart

Progress ring goal chart with three concentric SVG rings for move, exercise and stand goals, a value legend and a last 7 days selector for fitness dashboards.

Also known as: activity rings, concentric progress rings, circular progress chart, fitness goal tracker widget, radial progress bar

Bootstrap 5 Charts Responsive #card #chart #fitness #progress #svg

Progress Ring Goal Chart live demo

Open in new tab

Bootstrap 5 code (HTML, CSS, JS)

A progress ring goal chart for Bootstrap 5 with three concentric SVG rings for move, exercise and stand goals, inspired by fitness app activity rings. Next to the circular progress chart, a legend lists the current value, the goal and what is left, and a last 7 days selector switches the rings, which makes this widget a good fit for fitness apps, health dashboards and habit trackers.

How it works

The root is section.prg with a Bootstrap card. script.js starts with two arrays: GOALS (name, unit, goal, Bootstrap Icons class and color for each ring) and DAYS (seven entries, oldest first, today last). On DOMContentLoaded, drawRings() creates a track circle and a progress circle per goal inside svg.prg-svg, and setRing() turns each ratio into a stroke-dashoffset. Above 100% a darker .prg-lap arc draws the second lap, so overachieved goals stay visible.

The day selector in [data-prg-days] is built from native btn-check radios. Their dates are computed from today, shown as weekday and day number without a year, and each label carries a mini version of the rings. Choosing a day re-renders the rings, the .prg-item legend buttons, the date line and the [data-prg-badge] badge ("1 of 3 closed"). Hovering or focusing a legend item, or tapping a ring, dims the other rings and shows that goal's percentage in .prg-center. The footer summarises how many days all rings were closed and the average move value.

Customization

  • GOALS in script.js: change a goal, its unit or its icon, e.g. goal: 600 for a higher move target.
  • DAYS in script.js: replace the sample values with your tracker data; dates are always computed from today.
  • --prg-move, --prg-exercise and --prg-stand on .prg: recolor the rings, the mini rings and the legend; they override the color values in GOALS.
  • --prg-ring-size on .prg: makes the main ring chart larger or smaller.
  • BIG.width and BIG.radii in script.js: thicker or thinner rings.
  • .prg-badge.is-open: restyle the badge shown while goals are still open.

Use cases

  • Fitness and wellness apps: daily move, exercise and stand goals at a glance.
  • Habit trackers: three habits per day with a week of history.
  • Corporate wellbeing portals: step, activity and break goals for employees.
  • Learning platforms: lessons, minutes and quiz goals per day.

Accessibility

The SVG is decorative (aria-hidden); the same numbers are in the legend buttons, each with an aria-label such as "Exercise: 33 of 30 min, 110%". Tab reaches each goal and the day radios, arrow keys move between days, and a visually hidden polite live region announces the percentages after a day change. Escape clears the ring highlight. Focus outlines are visible and ring animations are disabled with prefers-reduced-motion: reduce.

Usage notes

Requires Bootstrap 5.3 CSS and Bootstrap Icons. Several .prg widgets can share one page because radio names and ids are generated per instance.

Progress Ring Goal Chart at a glance

Framework
Bootstrap 5
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 5, Bootstrap Icons
Layout
Responsive, works on mobile
Category
Charts
License
Free for personal and commercial use

Questions about this template

Can I use the Progress Ring Goal Chart code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 5 and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
Progress Ring Goal Chart – free Bootstrap 5 chart template
Progress Ring Goal Chart · free Bootstrap 5 chart template

More Charts

Grouped Column Chart – free Bootstrap 5 chart template

Grouped Column Chart

Grouped column chart comparing two regions per quarter, with value labels, gridlines, legend, keyboard tooltips and a revenue / profit switch in a clean card.

Gauge Chart KPI – free Tailwind CSS chart template

Gauge Chart KPI

Semicircle gauge chart for a monthly sales target with a needle, red, yellow and green zones, live status text and simulated updates; a KPI speedometer card.

Stacked Bar Chart with Series Toggle – free Tailwind CSS chart template

Stacked Bar Chart with Series Toggle

Stacked bar chart of weekly support tickets by status with a rescaling value axis, per-segment tooltips and checkbox chips that show or hide each series.

Funnel Chart – free Bootstrap 6 chart template

Funnel Chart

Sales funnel chart with five narrowing stages, user counts, step and overall conversion, a channel switch and a detail panel for the selected stage.

Revenue Area Chart Card – free Tailwind CSS chart template

Revenue Area Chart Card

Revenue area chart card with total revenue, change versus the previous period, a revenue and costs SVG area chart, legend toggles and a keyboard-friendly tooltip.

Multi-Line Chart with Range Tabs – free Bootstrap 6 chart template

Multi-Line Chart with Range Tabs

SVG multi-line chart comparing organic, paid and email traffic, with 7 day, 30 day and 12 month tabs, legend toggles and a crosshair tooltip.