Fixed WordCloud not displaying values correctly (#95)
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Co-authored-by: shahanneda <shahan.neda@gmail.com> Reviewed-on: #95 Reviewed-by: Mark Chiu <e26chiu@csclub.uwaterloo.ca>
This commit is contained in:
parent
1c0191facc
commit
ec4f33919c
|
@ -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