help for wordcloud

Title

wordcloud —— Program for drawing word cloud figure based on echarts developed by Baidu.

Syntax

wordcloud,
name:(varname)
value:(varname)
file:(filename.html)
[
title:(string)
label:(string)
]

Description

wordcloud is a program for drawing word clouds based on changes made to
echarts for the Stata programming style. It relies heavily on the versatility
and interactivity of HTML mapping. Note that since the final HTML file
generated contains online scripts, you need to make sure that your computer
is connected to the Internet, otherwise you may not be able to load the final image.

In addition, you can refer to the official website of echarts for more settings
on chart detail options. Since the final image file is saved in HTML format,
make sure you have sufficient knowledge of HTML or intuition of the programming
language before making changes.
-Link-

Requirements

name:(varname) This variable is used to specify
specific text, such as in a word cloud map composed of word frequencies, and
this variable should be used to specify specific words.

value:(varname) This variable is used to specify
the size of the specific value corresponding to the text, which should be
of numeric type. For example, in a word cloud map composed of word frequencies,
this variable should be used to specify the frequency of occurrence of words.

file:(filename.html) This variable is used to specify
the name and path of the saved file. For example, if you specify it as
"a.html", then the final graphics file will be stored in the current
Stata working path. Of course, you can also specify any other path.

title:(string) This is an optional option, usually
used to specify the title of the generated image, which will be displayed on
the left at the top of the page.

label:(string) This is an option that is usually
used to specify the label that is displayed after hovering over text in html.

Results

After running wordcloud, You will get an html file, please note where the
html file is stored. If you can't load this html file, please refresh the web
page after networking.

Examples

*- Generating Sample Data

.
`"clear"'

.
`"set obs 12"'

.
`"gen name = "你好" in 1"'

.
`"replace name = "Hello" in 2"'

.
`"replace name = "Привет " in 3"'

.
`"replace name = "こんにちは" in 4"'

.
`"replace name = "안녕하세요" in 5"'

.
`"replace name = "Bonjour" in 6"'

.
`"replace name = "Hallo" in 7"'

.
`"replace name = "مرحب" in 8"'

.
`"replace name = "¡¡Buenas!" in 9"'

.
`"replace name = "здравей" in 10"'

.
`"replace name = "Γεια σου" in 11"'

.
`"replace name = "สวัสดีครับ" in 12"'

.
`"gen value = 1000 in 1"'

.
`"replace value = int(runiform()*1000) if value == ."'

.
`"wordcloud, n(name) v(value) f("test.html")"'

Author

Shutter Zor(左祥太)

Accounting Department, Xiamen University

E-mail: Shutter_Z@outlook.com