Hello,
i have a strange issue going on with my wordcloud. I have following data, but it won't show the word 'great' or 'greater' in the wordcloud.
{question1: 'sunny'}
{question1: 'cloudy'}
{question1: 'Great'}
{question1: 'Noice '}
{question1: 'Great'}
{question1: 'Cloudy'}
{question1: 'Excellent'}
{question1: 'Kai'}
{question1: 'Sunny test Jessi '}
If I replace the word 'great' with any other word, it will show up!
You will see in the plunker that the visualizer.data has all the words, however, visualizer.getData() does NOT include the word 'great':
['sunny', 2]
['cloudy', 2]
['noice', 1]
['excellent', 1]
['kai', 1]
['test', 1]
['jes…', 1]
Can you tell me why that is?
https://plnkr.co/edit/MtNz6d4OjZflTG83
Thank you,
Manuela
Hello Manuela,
Thank you for contacting us. I forwarded this issue to the team for further investigation. Please follow this thread for further details: https://github.com/surveyjs/survey-analytics/issues/272.
Let us know if you have any questions or require further assistance.
Thank you,
Jane
SurveyJS Team
Hello Manuela,
We researched this issue and determined that the Wordcloud defines the
stopWordsDictionary
collection. It includes words which should be excluded from the output, and theGeneral
word was in the list. As a temporary solution, you can override thegetStopWords
function and exclude theGreat
from the array of stop words:var stopWords = SurveyAnalytics.textHelper.getStopWords(); stopWords.splice(stopWords.indexOf('great'), 1);
Example.
We'll continue investigating this and drop a line once we have additional information.
Thank you