How to access replacement tokens present in views field rewrite output in its .tpl file of that field
Under the Field settings, you can add a class to the field:



this can accept replacement tokens, so for example you could:


create 5 classes each with a different length
add a field prior to this field that will calculate the correct length
use the replacement token of the calculated field to include the proper class:  barsize1, barsize2, barsize3, etc