Fixed WordCloud not displaying values correctly #95
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue