def prepare_data_for_maintability_index(maintainability_index):
    """Prepare data (values, labels, colors) for the maintainability index chart."""
    filtered_index = {k: v for k, v in maintainability_index.items()
                      if v > 0 and k != "status"}

    labels = sorted(filtered_index.keys())

    fractions = [filtered_index[key] for key in labels]

    colors = ('#60a060', 'yellow', 'red')

    return labels, fractions, colors