score:0

const formatter = (value, name, props) => {
    console.log("V", value, "N", name, "P", props); // for debug
    props.payload = Object.keys(props.payload).map(k => {
        return props.payload[k] = isNaN(props.payload[k]) ? props.payload[k] : format(props.payload[k]);
    })
    return [value, name, props]
}

score:0

<Tooltip content={<CustomTooltip />} />

score:0

<Tooltip
  labelFormatter={value => {
    return `label: ${value}`;
  }} 
/>

Related Articles