calculatePercent = (value, total, decimals) => {
        const percent = total ? (value / total * 100) : 0;

        return d3Format.format(decimals)(percent);
    }
Calculates percentage of value from total
@param  {Number}  value    Value to check
@param  {Number}  total    Sum of values
@param  {String}  decimals Specifies number of decimals https://github.com/d3/d3-format
@return {String}           Percentage