1
There are a number of Ibraries that do this. I recommend you use them not to reinvent the wheel.
- https://kimmobrunfeldt.github.io/progressbar.js/
- Using jQueryUI https://jqueryui.com/progressbar/
- A simpler option https://github.com/tinacious/goalProgress
Anyway, there are hundreds of these plugins/Ibraries for you to use.
If you really wanted to create yours using pure javascript or jquery will take a certain job without need, but I can help you.
You can create your own based on one that already exists.
For example https://www.npmjs.com/package/jquery-multi-bar
For a pure and library-free Javascript implementation, here is a very simple implementation https://jsfiddle.net/ss18yedy/9/ use it as a basis and evolve to a final solution that is what you need.
You need the progress to be exactly the same as in the image (with all these assorted colors)?
– Wallace Maxters
You put the [jquery-ui] tag on your question. So I took the liberty of showing you this link. You’ve got it ready in jQueryUI
– Wallace Maxters
Red color does not need, can be two colors green and blue...
– Rady Batalha
This bar you want to use only html, css and javascript without plugins ? if yes, where you want to use it and how?
– Cleverson