5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

re:dash 初めてのクエリ(サンプル)

Last updated at Posted at 2016-11-13

Install

Structure Overview

Dashboard
\
 `- Widget
    \
     `- Query 
        \
         `- Chart
            \
             `- Query Result (Table)
                \
                 `- Query Code
                    \
                     `- Data Source

Data Sources

  • 右上のディスク積み上げたアイコンからデータソース設定画面へ
  • + New Data Source
  • 今回は Heroku で動いている PostgreSQL 環境があったのでそこを使う
  • データベース内のテーブル等の情報はクエリ作成画面にある

Data Source Types

  • Web 上のデモ版だと選べるデータソースが限られている

Query

  • クエリ名や補足の編集は文字列をクリック
  • X 軸を Date 型にしたら時系列にできた

クエリ サンプル

Dashboard

  • 適当にダッシュボードを作成して右のボタンから Add Widget を選んで、上で作ったクエリを選択

Dash.png

おわり

5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?