import numeral from '@elastic/numeral' ; import { getFormatService } from '../services' ; export function getValueForPercentageMode ( value , percentageFormatPattern ) { const formatServices = getFormatService ( ) ; const percentFormatter = formatServices . getInstance ( 'percent' , { pattern : percentageFormatPattern , } ) ; return percentFormatter . convert ( value ) ; }