class Playbook::PbDistributionBar::DistributionBar
def chart_options
def chart_options { size: size, widths: widths, colors: colors, } end
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