tableau可視化
Sometime last year, I got fascinated with bubble charts when I saw a data visualization video, Han's Rosling's 200 Countries, 200 Years, 4 Minutes - The Joy of Stats from BBC.
去年的某個時候,當我看到一個數據可視化視頻時,我迷上了氣泡圖,這是Hans Rosling的200個國家/地區,200年,4分鐘-來自BBC的《統計的喜悅》 。
什么是氣泡圖? (What are bubble charts?)
"A bubble chart is a type of chart that displays three dimensions of data. Each entity with its triplet of associated data is plotted as a disk that expresses two of the values through the disk's xy location and the third through its size." Wikipedia
“氣泡圖是一種顯示三個維度的數據的圖表。每個實體及其關聯數據的三元組被繪制為一個磁盤,該磁盤通過磁盤的xy位置表示兩個值,通過磁盤的大小表示第三個值。” 維基百科
Last January 2019, I was checking Tableau Desktop, a data visualization software, and their basic tutorials included a heat map of the United States.
去年2019年1月,我正在檢查Tableau Desktop這個數據可視化軟件,其基本教程包括美國的熱點地圖。
什么是熱圖? (What are heat maps?)
"A heat map is a graphical representation of data where the individual values contained in a matrix are represented as colors. "Heat map" is a newer term but shading matrices have existed for over a century."Wikipedia
“熱圖是數據的圖形表示,其中矩陣中包含的各個值用顏色表示。“熱圖”是一個較新的術語,但是陰影矩陣已經存在了一個多世紀。” 維基百科
While going through the Tableau tutorial, I remembered the bubble charts and started looking for an inspiration. I was googling for image silhouettes and got the result below:
在完成Tableau教程時,我記得氣泡圖并開始尋找靈感。 我正在搜尋圖像輪廓,并得到以下結果:
This led to my short data visualization experiment. I looked for a dataset and found NBA Injuries from 2010-2018, on Kaggle . I modified the dataset to make it simple to use.
這導致了我簡短的數據可視化實驗。 我尋找了一個數據集,并在Kaggle上發現了2010- 2018年的 NBA傷害。 我修改了數據集以使其易于使用。
I ended up giving up on using Tableau and creating my own data visualization in Microsoft Powerpoint. Still, my friends were amazed and thought that I used a data visualization tool.
我最終放棄了使用Tableau并在Microsoft Powerpoint中創建自己的數據可視化。 盡管如此,我的朋友們還是感到驚訝,并認為我使用了數據可視化工具。
Fast track to August 2019, I returned to studying the Tableu tutorial. Just look at the result below! =)
快速回到2019年8月,我回到了學習Tableu教程的地方。 請看下面的結果! =)
我是怎么做到的? (How did I do it? )
I used Excel, Tableu, and a little bit of creativity.
我使用了Excel,Tableu和一些創意。
Feel free to follow along and create the same dataset and visualization.
隨時跟隨并創建相同的數據集和可視化。
Steps
腳步
- Create an Excel file. Column B and Column C will serve as the location on the X-axis and Y-axis of an item in Tableau. Count represents how many players had a particular injury from 2010 to 2018. 創建一個Excel文件。 B列和C列將用作Tableau中項目在X軸和Y軸上的位置。 計數表示從2010年到2018年有多少名球員受到了特殊傷害。
2. Download Tableau Desktop here.
2. 在此處下載Tableau Desktop。
3. Open the Tableau Desktop App
3.打開Tableau Desktop應用程序
4. Click Connect To a File > ?Microsoft Excel
4.單擊連接到文件 > Microsoft Excel
4. Drag a Sheet from the left pane to the right pane
4.將圖紙從左窗格拖到右窗格
5. At the bottom, click the Sheet.
5.在底部,單擊圖紙。
6. At the menu, click Background Images > Sheet
6.在菜單上,單擊背景圖像 > 圖紙
7 . Click Add Image
7。 點擊添加圖片
8. Browse for an image and set X Field: Right to 500 and Y Field: Top to 500.
8.瀏覽圖像,然后將X字段:右設置為500,將Y字段:頂部設置為500。
9. In Columns and Rows, add SUM(X) and SUM(Y), respectively.
9.在“列和行”中,分別添加SUM(X)和SUM(Y) 。
10. For Marks, add SUM(COUNT) in Color, SUM(Count) in Size, and Position in Label.
10.對于標記,在顏色中添加SUM(COUNT) ,在尺寸中添加SUM( Count) ,在標簽中添加位置 。
Tableau will then generate this visualization for you:
然后,Tableau將為您生成此可視化文件:
One of the super powers of data visualization is processing the data and understanding it by just looking at the image. With this visualization, I can communicate to you clearly and easily that ankle and knee injuries are the most common sports injuries for an NBA player, and dizziness and nose injuries are the least common.
數據可視化的超級力量之一就是通過查看圖像來處理數據并理解它。 借助這種可視化,我可以輕松方便地向您傳達, 踝關節和膝蓋受傷是NBA球員最常見的運動傷害, 頭暈和鼻子傷是最不常見的傷害。
Voila! Hope you enjoyed this simple experiment =)
瞧! 希望您喜歡這個簡單的實驗=)
翻譯自: https://www.freecodecamp.org/news/cjn-how-to-build-custom-map-visualization-in-tableau/
tableau可視化