{
const sunburstElement = tooltipDiv;
const sunburst = new uv.Sunburst(sunburstElement, JSON.parse(JSON.stringify(taxonomy)), {
getTooltipText: (d) => {
let numberFormat = d3.format(",d");
return (
numberFormat(!d.selfCount ? "0" : d.selfCount) +
(d.selfCount && d.selfCount === 1 ? " sequence" : " sequences") +
" specific to this level<br/>" +
numberFormat(!d.count ? "0" : d.count) +
(d.count && d.count === 1 ? " sequence" : " sequences") +
" specific to this level or lower"
);
}
});
}