def make_autopct(values):
    """
    Setting data labels on pie/donut chart

    Parameters
    ----------
    :param values: values of data label [type: np.array]

    Return
    -------
    :return my_autopct: formatted string for putting on chart label
    """

    def my_autopct(pct):
        total = sum(values)
        val = int(round(pct * total / 100.0))

        return '{p:.1f}%\n({v:d})'.format(p=pct, v=val)

    return my_autopct