This commit is contained in:
Rebecca-Chou 2022-11-30 21:24:27 -05:00
commit f3abc3882e
1 changed files with 4 additions and 1 deletions

View File

@ -216,7 +216,10 @@ const WordCloudWords: React.FC<WordCloudWordsProps> = ({
if (word.text) {
showTooltip(
{ text: word.text, value: data[index].value },
{
text: word.text,
value: (cloudWords[index] as WordData).value,
},
eventSvgCoords.x -
word.text.length * TOOLTIP_HORIZONTAL_SHIFT_SCALER +
alignmentOffset,