export function percentFormatter()

in src/lib/helpers/tickFormatters.js [16:27]


export function percentFormatter(tickValues) {
    const length = tickValues.length;    
    return (d, i) => {
        const isTopTick = i === length - 1;
        
        if (isTopTick) {
            return `${d}%`;
        }

        return d;
    }
}