Hi i've done a progress bar in javascript. but i dont know how to do the mapping.that is map it to a percentage. the lenght of my progress bar is 260. Can someone help?
techyworld 0 Junior Poster in Training
Recommended Answers
Jump to Postwhat do you mean by mapping? You mean you have like 100% of something but scale is 260 so you want to find how much 1% means on scale?
100% - 260
1 % - x1*260/100 = 2.6
if its that what you want :)
All 4 Replies
McLaren 3 Posting Whiz in Training
techyworld 0 Junior Poster in Training
andrag73 0 Newbie Poster
Biiim 182 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.