some vital stats about the population in it (min, max, mean,
median, mode, stdev, etc...)
"""
- from text_utils import bar_graph
+ from text_utils import BarGraphText, bar_graph_string
details = self._get_bucket_details(label_formatter)
txt = ""
if start < details.lowest_start:
continue
label = f'[{label_formatter}..{label_formatter}): ' % (start, end)
- bar = bar_graph(
- (pop / details.max_population),
- include_text=False,
+ bar = bar_graph_string(
+ pop,
+ details.max_population,
+ text=BarGraphText.NONE,
width=bar_width,
left_end="",
right_end="",