> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-c8329da0.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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_15.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=4489e25549b8d17237c51c0e9457ee7e" 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-mintlify-c8329da0/yyIb6NWiYvHDFcfF/images/_snippets/cloud-connect-button.png?fit=max&auto=format&n=yyIb6NWiYvHDFcfF&q=85&s=9ae0d933d1199c8a5107aa22205befe6" 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-mintlify-c8329da0/yyIb6NWiYvHDFcfF/images/_snippets/connection-details-https.png?fit=max&auto=format&n=yyIb6NWiYvHDFcfF&q=85&s=b5bcd397b557eca16da3eeff8cb51d41" 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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_01.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=7fe1adf03d02688f9718766cafc7c3f3" 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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_02.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=ac531ab9a1ffcbf5fb93e5e5d1c7e27b" 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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_03.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=1a10d0b0d9f06eeaea5f212c1da941b1" 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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_04.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=81f236c72b189f88b2ddf027fced3cd9" 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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_05.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=968351a22d0e4dc9f2a1057ae6151373" 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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_06.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=06843f5d4454822ffe165e57188c7d63" 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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_07.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=a7b94f59af3f272a1be5414b83f16e70" 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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_08.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=e8b195e882bfb6e23e1e11986a981ea8" 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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_09.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=c018c69c3946fd3a75350d700db50af5" 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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_10.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=f6bab090dc500e577f02f01027f3a932" 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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_11.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=ccfc0a2d261f3fb1a84cd75323fd23b4" 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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_16.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=ab13f185a98c57fc158fb43cc61253b8" 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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_12.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=4670a1b4bd9ead06ba73842feec63f13" 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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_13.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=2f1824eca2988a31affa659c7edeb378" 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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_14.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=927674b325517b70ce8da4b3e245675a" 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-mintlify-c8329da0/ivsqUNWwpteM-Vhd/images/integrations/data-visualization/explo_15.png?fit=max&auto=format&n=ivsqUNWwpteM-Vhd&q=85&s=4489e25549b8d17237c51c0e9457ee7e" 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>。
