charting/chart.py
def split_text_to_line(text: str, cut_off: int = 60) -> List[str]:
    """
    Split a string to meet line limit
    """
    bits = text.split(" ")
    rows = []
    current_item = []
    for b in bits:
        if len(" ".join(current_item + [b])) > cut_off:
            rows.append(" ".join(current_item))
            current_item = []
        current_item.append(b)
    rows.append(" ".join(current_item))
    return rows

    Split a string to meet line limit
    
Split a string to meet line limit
Split a string to meet line limit
def split_text_to_line(text: str, cut_off: int = 60) -> List[str]:
    bits = text.split(" ")
    rows = []
    current_item = []
    for b in bits:
        if len(" ".join(current_item + [b])) > cut_off:
            rows.append(" ".join(current_item))
            current_item = []
        current_item.append(b)
    rows.append(" ".join(current_item))
    return rows
def split_text_to_line ( text : str , cut_off : int = 60 ) -> List [ str ] : bits = text . split ( " " ) rows = [ ] current_item = [ ] for b in bits : if len ( " " . join ( current_item + [ b ] ) ) > cut_off : rows . append ( " " . join ( current_item ) ) current_item = [ ] current_item . append ( b ) rows . append ( " " . join ( current_item ) ) return rows
Split a string to meet line limit
Split a string to meet line limit
"""
    Split a string to meet line limit
    """
text
str
cut_off
int