class Playbook::PbDistributionBar::DistributionBar

def classname

def classname
  generate_classname("pb_distribution_bar", size)
end

def widths_to_percentages

def widths_to_percentages
  widths.map do |width|
    (width.to_f * 100 / widths.sum).round(2)
  end
end