As Christmas comes to an end, AntV G6 has created an interactive graph to tell you what people on Twitter are tweeting on Christmas Eve and Christmas Day.

Figure 1. Overview of the top 100 most frequently tweeted words on Christmas Eve and Christmas Day.


We extracted the top 100 meaningful words from 5W Tweets posted on Christmas Eve/Christmas day, that is, words with no actual meaning such as “of”, “I” and “you” were removed, and G6 was used to make the bubble word cloud map of the above Q bomb.


A bubble represents a word. In addition to the bubble size reflecting the occurrence frequency of the word, the color mapping part of speech (noun, adjective, verb, adverb), there are also a series of interesting interactions: drag and play, click to expand, fold and gather…


Picture 2 play with bubbles.


Play and analyze

Drag the bubble

First, let’s drag and drop the bubbles to take a look at what people are Posting.

Figure 3. Drag the bubble to explore.

Obviously ‘Christmas’ and’ merry ‘are the most popular words, along with’ Xmas’ and ‘Christmastree’. Gift, happy, holiday, and Santa followed. The red node represents the verb ‘love’ with the highest frequency, it seems that the world is still full of love and peace. ‘Hope’, ‘wish’, ‘new’ and ‘best’ are all in the top 100 words. ‘quizzes’? Is everyone busy with exams on Christmas? The most amazing thing is that shit is in the top 100? This makes us want to explore the context of these words, so click on the nodes to expand.


A bubble

For each top 100 words, we randomly filter 5 to N contextual words in tweets, that is, the word before or after the word in a sentence.

Figure 4 (left) Click on the ‘Christmas’ node to see its context words. (right) The context word of ‘merry’.

As shown in Figure 4, the relevant context word will be linked to the clicked top 100 words, and if the context word is not in the top 100 words, its fill color will be white.

First, let’s explore the words with the highest frequency, ‘Christmas’ (Figure 4, left) and’ merry ‘(Figure 4, right), as contexts for each other. The adjectives in the context of ‘Christmas’ are all positive:’ happy ‘, ‘best’, ‘great’, ‘special’, ‘wonderful’… Emmm? What is’ conjunctivitis’? A guy got conjunctivitis on Christmas?


Figure 5 (left) Context word for ‘love’. (right) Context word for ‘holidays’.

Take a look at the “love” in figure 5 (left). There are positive “joy”, “fun”, “celebrate”, “hopeful” and so on, as well as “worry” from the single dog. “Defender”? It seems that some people are happy and some are sad this Christmas. What is everyone doing in ‘Holidays’? Familytime. Bryantpark. A park.


FIG. 6 context words of ‘shit’??

Finally, take a look at the context of ‘shit’. ‘shit slippers? It’s a big holiday. Are the slippers bothering you? Probably not enough data is being presented and a lot of information is not being presented. After all, extracting data G6 is amateur. Do graphics visualization, G6 is professional!


Over?

Feeling like there’s a lot more hidden treasure to be found in this data? G6 open source! The Demo code is open source! The data set is still open! You can do whatever you want with it!


AntV G6 is an open source graph visualization and analysis engine focused on relational data.

Welcome to follow and star on our GitHub: github.com/antvis/G6

Liverpoolfc.tv: g6. Antv. Vision/useful /

The Demo address: g6. Antv. Vision/useful/examples…

Data sources: open data set www.kaggle.com/dhruvm/chri…



“Eggs”

Other people’s eggs are eggs. Our egg, EMMM, is a class project? “I didn’t expect to grow up so big, still warm memories of my childhood.”

After implementing the above diagram, we found a Bug: due to the large number of context nodes for ‘Christmas’, when it was expanded, there was a crazy jitter as the layout was about to converge. No time, do not want to repair, is so capricious :). Does anyone have time for a PR? A little red flower.

Tips: Probably related to the force balance state of force-oriented layout and difficult convergence?