I’ve been Googling for about an hour or so trying to find a jquery control that would come close to what I’m trying to do (or a control that I could tweak), but couldn’t find any.
Perhaps anyone could share a link or might propose a different approach.
I’m trying to achieve the following:
I have a web site that targets dealers (not the general public). Each dealer has a predefined money target. For example, dealer A has a 59K target. Dealer B has a 21K target.
In addition, we currently have 3 rules.
- If 2% of the customer’s target has been reached, we offer 20%
discount. - If 4% of the customer’s target has been reached, we offer 40%
discount. - If 6% of the customer’s target has been reached, we offer 60%
discount.
I’m trying to find some sort of progress bar that would show the 3 rules in addition to the current amount the user is at. Example:
——8K—————-|——————|————————|
20% 40% 60%
The 8K represents the current amount the current logged in dealer has.
Another example (for a different logged in dealer) might be:
———————|——-27K———–|————————|
20% 40% 60%
How would one create (or tweak) such a control?
Thanks
Try something like this: Live Demo
HTML
CSS
jQuery
Just call
showBarwith the target value and current value.