ZingChart does not display all words in wordcloud

I use wordcloud, where I just pass the set of words that I want to display in the word words, without ignoring. For example, "text": "you are a good person." All words like "you," "there," "a," "good," "man." How can i do this?? Where is all the documentation available for this?

+4
source share
1 answer

full disclosure I am a member of the ZingChart team.

There is an attribute min-lengththat has a default value of 2. You can set the value to 1 or 0. We have interesting examples in the gallery . We also have wordcloud documentation here .

var myConfig = {
    "graphset":[
        {
            "type":"wordcloud",
            "options":{
                "text":"you are a gg good person",
                "max-items":200,
                "min-length":1
            }
       }
    ]
};

zingchart.render({ 
	id : 'myChart', 
	data : myConfig, 
	height: "100%", 
	width: "100%"
});
html,body,#myChart{
 height: 100%;
 width: 100%;
}
<!DOCTYPE html>
<html>
	<head>
	<!--Assets will be injected here on compile. Use the assets button above-->
		<script src= "https://cdn.zingchart.com/zingchart.min.js"></script>
		<script> zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";
</script>
	<!--Inject End-->
	</head>
	<body>
		<div id='myChart'></div>
	</body>
</html>
Run codeHide result
+4
source

Source: https://habr.com/ru/post/1659046/


All Articles