> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-home-button.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Exploは、データに関する質問を簡単に行える、使いやすいオープンソースのUIツールです。

# ExploをClickHouseに接続する

export const CommunityMaintainedBadge = () => {
  return <div className="CommunityMaintainedBadge">
            <div className="CommunityMaintainedIcon">
            <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 256 256">
                <path d="M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1-7.37-4.89,8,8,0,0,1,0-6.22A8,8,0,0,1,192,112a24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.84,8,57,57,0,0,0-98.16,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"></path>
            </svg>
        </div>
            Community Maintained
        </div>;
};

export const Image = ({img, alt, size}) => {
  return <Frame>
      <img src={img} alt={alt} />
    </Frame>;
};

あらゆるプラットフォーム向けの顧客向け分析。美しい可視化を実現するために設計され、シンプルさを追求して構築されています。

<div id="goal">
  ## 目標
</div>

このガイドでは、ClickHouse のデータを Explo に接続して、結果を可視化します。グラフは次のようになります。

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_15.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=39654a2f6eca30998461f4b95fc25006" size="md" alt="Explo Dashboard" width="1152" height="661" data-path="images/integrations/data-visualization/explo_15.png" />

<p />

<Tip>
  **データを追加する**

  使用するデータセットがない場合は、サンプルの 1 つを追加できます。このガイドでは [UK Price Paid](/ja/get-started/sample-datasets/uk-price-paid) データセットを使用しているため、それを選ぶとよいでしょう。同じドキュメントカテゴリには、ほかにもいくつかサンプルがあります。
</Tip>

<div id="1-gather-your-connection-details">
  ## 1. 接続情報を確認する
</div>

HTTP(S) で ClickHouse に接続するには、次の情報が必要です。

| Parameter(s)              | Description                                               |
| ------------------------- | --------------------------------------------------------- |
| `HOST` and `PORT`         | 通常、TLS を使用する場合のポートは 8443、TLS を使用しない場合は 8123 です。           |
| `DATABASE NAME`           | デフォルトでは `default` という名前のデータベースがあります。接続先のデータベース名を使用してください。 |
| `USERNAME` and `PASSWORD` | デフォルトのユーザー名は `default` です。用途に応じたユーザー名を使用してください。           |

ClickHouse Cloud サービスの詳細は、ClickHouse Cloud コンソールで確認できます。
サービスを選択し、**Connect** をクリックします。

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/kULrYc6Yc_Td1RKY/images/_snippets/cloud-connect-button.png?fit=max&auto=format&n=kULrYc6Yc_Td1RKY&q=85&s=f8f30304147d67b79b22a095be5c28d9" size="md" alt="ClickHouse Cloud サービスの接続ボタン" border width="998" height="932" data-path="images/_snippets/cloud-connect-button.png" />

**HTTPS** を選択します。接続情報は `curl` コマンドの例として表示されます。

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/kULrYc6Yc_Td1RKY/images/_snippets/connection-details-https.png?fit=max&auto=format&n=kULrYc6Yc_Td1RKY&q=85&s=e0ad7ca41bc3d183bee88082e548cd76" size="md" alt="ClickHouse Cloud HTTPS 接続情報" border width="1320" height="1184" data-path="images/_snippets/connection-details-https.png" />

セルフマネージド ClickHouse を使用している場合、接続情報は ClickHouse 管理者によって設定されます。

<div id="2--connect-explo-to-clickhouse">
  ## 2.  Explo を ClickHouse に接続する
</div>

1. Explo アカウントにサインアップします。

2. 左側のサイドバーにある Explo の **Data** タブをクリックします。

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_01.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=c59b1ed6d4e8d6bd770138e1c0e95559" size="sm" alt="Data Tab" border width="432" height="500" data-path="images/integrations/data-visualization/explo_01.png" />

3. 右上の **Connect Data Source** をクリックします。

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_02.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=9ba3e9f4e677bd2b4dacc8388bce383e" size="sm" alt="Connect Data Source" border width="288" height="78" data-path="images/integrations/data-visualization/explo_02.png" />

4. **Getting Started** ページで情報を入力します

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_03.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=110b31decb878f3b166542b89b7fa4ac" size="md" alt="Getting Started" border width="1152" height="894" data-path="images/integrations/data-visualization/explo_03.png" />

5. **ClickHouse** を選択します

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_04.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=82793861eba8530fa13809ca800446f6" size="md" alt="Clickhouse" border width="1152" height="1156" data-path="images/integrations/data-visualization/explo_04.png" />

6. **ClickHouse の認証情報** を入力します。

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_05.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=fdff4198dc0e162214d70fb125a38d31" size="md" alt="Credentials" border width="1152" height="902" data-path="images/integrations/data-visualization/explo_05.png" />

7. **Security** を設定します

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_06.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=37ea7f6f8e0d0ad492ea5c7df73e7170" size="md" alt="Security" border width="1152" height="855" data-path="images/integrations/data-visualization/explo_06.png" />

8. ClickHouse 側で、**Explo の IP アドレスを許可リストに追加** します。
   `54.211.43.19, 52.55.98.121, 3.214.169.94, and 54.156.141.148`

<div id="3-create-a-dashboard">
  ## 3. ダッシュボードを作成する
</div>

1. 左側のナビゲーションバーにある **Dashboard** タブを開きます。

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_07.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=1a3e63e4362bbf5a3ae25e391c7bae8a" size="sm" alt="ダッシュボード" border width="432" height="891" data-path="images/integrations/data-visualization/explo_07.png" />

2. 右上の **Create Dashboard** をクリックし、ダッシュボード名を入力します。これでダッシュボードの作成は完了です。

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_08.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=2ccf13fff7fbb2e5803b59613d5f2338" size="sm" alt="ダッシュボードを作成" border width="425" height="76" data-path="images/integrations/data-visualization/explo_08.png" />

3. 次のような画面が表示されます。

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_09.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=c45676625fde5fad2c10001ecf85dfe4" size="md" alt="Explo Dashboard" border width="1152" height="688" data-path="images/integrations/data-visualization/explo_09.png" />

<div id="4-run-a-sql-query">
  ## 4. SQLクエリを実行する
</div>

1. スキーマのタイトルの下にある右側のサイドバーでテーブル名を確認します。次に、dataset editor に以下のコマンドを入力してください。
   `SELECT * FROM YOUR_TABLE_NAME
   LIMIT 100`

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_10.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=57f362df8c4858eedf5615f6d8028495" size="md" alt="Explo Dashboard" border width="1152" height="284" data-path="images/integrations/data-visualization/explo_10.png" />

2. run をクリックし、preview タブに移動してデータを確認します。

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_11.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=a76dfebf05bf603a9a2e3f1f07fe725d" size="md" alt="Explo Dashboard" border width="1152" height="329" data-path="images/integrations/data-visualization/explo_11.png" />

<div id="5-build-a-chart">
  ## 5. チャートを作成
</div>

1. 左側の棒グラフアイコンを画面にドラッグします。

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_16.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=91563de4f87f846fa5c828dc63085a30" size="sm" alt="Explo Dashboard" border width="432" height="978" data-path="images/integrations/data-visualization/explo_16.png" />

2. データセットを選択します。すると、次のような画面が表示されます。

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_12.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=192e8d8f331d3e5e5b4769063d35be11" size="sm" alt="Explo Dashboard" border width="432" height="744" data-path="images/integrations/data-visualization/explo_12.png" />

3. 次のように、X Axis に **county**、Y Axis Section に **Price** を設定します。

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_13.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=3fc92806b21d420f3896b9d90119b8e9" size="sm" alt="Explo Dashboard" border width="432" height="754" data-path="images/integrations/data-visualization/explo_13.png" />

4. 次に、集計方法を **AVG** に変更します。

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_14.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=4383301620c108972fb6a2ac91091710" size="sm" alt="Explo Dashboard" border width="432" height="447" data-path="images/integrations/data-visualization/explo_14.png" />

5. これで、郡ごとの住宅の平均価格が表示されます。

<Image img="https://mintcdn.com/private-7c7dfe99-home-button/dU1ZOOelDu4jLzc2/images/integrations/data-visualization/explo_15.png?fit=max&auto=format&n=dU1ZOOelDu4jLzc2&q=85&s=39654a2f6eca30998461f4b95fc25006" size="md" alt="Explo Dashboard" width="1152" height="661" data-path="images/integrations/data-visualization/explo_15.png" />

<div id="learn-more">
  ## 詳細情報
</div>

Explo の詳細やダッシュボードの作成方法については、<a href="https://docs.explo.co/" target="_blank">Explo のドキュメントをご覧ください</a>。
