Redash 使用流程
DataSource –> Query –> Add Visualization –> Dashboard
新增 DataSource
- 在設定中點擊 +New Data Source 會彈出如下 DataSource 選單,予使用者增添不同數據源
![](http://localhost:8888/wordpress/wp-content/uploads/2020/07/image-8-1024x648.png)
- 點我查看所有官方支持的 datasource
新增 Query
![](http://localhost:8888/wordpress/wp-content/uploads/2020/07/image-20.png)
- 點擊 +New Query 後會看到如下方新開的 New Query 的頁面,接下來就可以直接寫SQL啦~
![](http://localhost:8888/wordpress/wp-content/uploads/2020/08/Screen-Shot-2020-08-03-at-9.43.49-AM.png)
新增 Visualization
- 根據需求寫完 SQL 點擊 Execute 後,下方會出現相對應的 Table 搜尋結果
- 在 Table 欄位旁有一個 +Add Visualization 給使用者自行增添想要的顯示型態
![](http://localhost:8888/wordpress/wp-content/uploads/2020/08/image-2.png)
- 點擊 +Add Visualization 後,會彈出如下方的操作介面供使用者客製化自己想要的圖表
![](http://localhost:8888/wordpress/wp-content/uploads/2020/08/Screen-Shot-2020-08-03-at-10.16.42-AM.png)
![](http://localhost:8888/wordpress/wp-content/uploads/2020/08/image-3.png)
- 提供多種 Chart type 供使用者選擇
- Line / Bar / Area / Pie / Scatter / Bubble / Heatmap / Box …etc
- 選定並設定好 X ,Y 座標後就完成拉! 大概的樣子可以參考下圖範例所示
- 如欲跟剛剛設定好的圖表只需要按下坐下角的 Edit Visualization 就可以直接更改拉 是不是很方便呢 ~
![](http://10.0.0.22:8889/wp-content/uploads/2020/08/Screen-Shot-2020-08-03-at-11.21.20-AM-1024x432.png)
補充!
如想要把做出來的圖表與好友分享的話,只需要點擊左下方的按鈕,及可以不同形式輸出
1. 點擊 Embed Elsewhere 即可把做就出來的圖表嵌入在網頁中 (支持Public URL / IFrame Embed 兩種選項)
2. 也可以把 Query 出來的資料下載成 CSV / TSV / Excel 檔到本地做進一步分析
![](http://localhost:8888/wordpress/wp-content/uploads/2020/08/Screen-Shot-2020-08-03-at-11.31.58-AM.png)
![](http://localhost:8888/wordpress/wp-content/uploads/2020/08/image-10.png)
- 網頁嵌入效果如下方所示
新增到 Dashboard
- 點擊左下角的 …
![](http://10.0.0.22:8889/wp-content/uploads/2020/08/Screen-Shot-2020-08-17-at-3.06.07-PM.png)
- 並選取欲加入的 Dashboard (這裡我已經事先加好一個 豹投資 Lab 的 Dashboard)
![](http://10.0.0.22:8889/wp-content/uploads/2020/08/Screen-Shot-2020-08-17-at-2.38.11-PM.png)
2. 點擊 Dashboard -> 右上角 Edit 編輯 Dashboard
![](http://10.0.0.22:8889/wp-content/uploads/2020/08/Screen-Shot-2020-08-17-at-3.25.02-PM.png)
![](http://10.0.0.22:8889/wp-content/uploads/2020/08/edit.png)
- 點擊後,可以選擇 Add Textbox / Add Widget
![](http://10.0.0.22:8889/wp-content/uploads/2020/08/Screen-Shot-2020-08-17-at-3.33.20-PM.png)
![](http://10.0.0.22:8889/wp-content/uploads/2020/08/Screen-Shot-2020-08-17-at-3.56.15-PM.png)
- Add Textbox
![](http://10.0.0.22:8889/wp-content/uploads/2020/08/Screen-Shot-2020-08-17-at-4.02.56-PM-1.png)
- Add Widget
- 選取好想加的 Query 以及 Visualization 後 按下 Add to Dashboard 就可以拉~
![](http://10.0.0.22:8889/wp-content/uploads/2020/08/image-21.png)