def prepare_data_for_code_coverage(coverage_data):
    """Prepare data (values, labels, colors) for the unit test code coverage chart."""
    labels = ("covered", "not\ncovered")

    coverage = float(coverage_data["coverage"])
    coverage_ratio = coverage / 100.0
    fractions = [coverage_ratio, 1.0 - coverage_ratio]

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

    return labels, fractions, colors