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

> Explo is an easy-to-use, open source UI tool for asking questions about your data.

# Connecting Explo to 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 = "lg", background}) => {
  const normalizedSize = ["sm", "md", "lg"].includes(size) ? size : "lg";
  const backgroundColor = background === "white" ? "white" : background === "black" ? "rgb(31 31 28)" : undefined;
  return <div className={`ch-image-${normalizedSize}`}>
      <Frame>
        <img src={img} alt={alt} style={{
    backgroundColor
  }} />
      </Frame>
    </div>;
};

<CommunityMaintainedBadge />

Customer-facing analytics for any platform. Designed for beautiful visualization. Engineered for simplicity.

<h2 id="goal">
  Goal
</h2>

In this guide you will connect your data from ClickHouse to Explo and visualize the results.  The chart will look like this:

<Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_15.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=ffa8fdb76ca106338f9c0e02c1792672" size="md" alt="Explo Dashboard" width="1152" height="661" data-path="images/integrations/data-visualization/explo_15.webp" />

<p />

<Tip>
  **Add some data**

  If you don't have a dataset to work with you can add one of the examples.  This guide uses the [UK Price Paid](/get-started/sample-datasets/uk-price-paid) dataset, so you might choose that one.  There are several others to look at in the same documentation category.
</Tip>

<Steps>
  <Step title="Gather your connection details" id="1-gather-your-connection-details">
    To connect to ClickHouse with HTTP(S) you need this information:

    | Parameter(s) | Description |
    | - | - |
    | `HOST` and `PORT` | Typically, the port is 8443 when using TLS or 8123 when not using TLS. |
    | `DATABASE NAME` | Out of the box, there is a database named `default`, use the name of the database that you want to connect to. |
    | `USERNAME` and `PASSWORD` | Out of the box, the username is `default`. Use the username appropriate for your use case. |

    The details for your ClickHouse Cloud service are available in the ClickHouse Cloud console.
    Select a service and click **Connect**:

    <div className="ch-image-md">
      <Frame>
        <img src="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/GTkpPcjoRQ_okrH3/images/_snippets/cloud-connect-button.webp?fit=max&auto=format&n=GTkpPcjoRQ_okrH3&q=85&s=d059c1bbcc7317ff8df85b20189e65f4" alt="ClickHouse Cloud service connect button" width="998" height="932" data-path="images/_snippets/cloud-connect-button.webp" />
      </Frame>
    </div>

    Choose **HTTPS**. Connection details are displayed in an example `curl` command.

    <div className="ch-image-md">
      <Frame>
        <img src="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/GTkpPcjoRQ_okrH3/images/_snippets/connection-details-https.webp?fit=max&auto=format&n=GTkpPcjoRQ_okrH3&q=85&s=f7a41f485276d8d238dbe28772bfa56c" alt="ClickHouse Cloud HTTPS connection details" width="1320" height="1184" data-path="images/_snippets/connection-details-https.webp" />
      </Frame>
    </div>

    If you're using self-managed ClickHouse, the connection details are set by your ClickHouse administrator.
  </Step>

  <Step title="Connect Explo to ClickHouse" id="2--connect-explo-to-clickhouse">
    1. Sign up for an Explo account.

    2. Click on the Explo **data** tab on the left hand sidebar.

    <Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_01.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=cb9bff0e666af98e7ce26ad8a658dfa3" size="sm" alt="Data Tab" border width="432" height="500" data-path="images/integrations/data-visualization/explo_01.webp" />

    3. Click **Connect Data Source** in the upper right hand side.

    <Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_02.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=ae70ed9d9ae097b4c50e81d1a304aaaa" size="sm" alt="Connect Data Source" border width="288" height="78" data-path="images/integrations/data-visualization/explo_02.webp" />

    4. Fill out the information on the **Getting Started** page

    <Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_03.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=0f069b6d7b5c36e52f4a95cc7a30f896" size="md" alt="Getting Started" border width="1152" height="894" data-path="images/integrations/data-visualization/explo_03.webp" />

    5. Select **ClickHouse**

    <Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_04.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=67d3ac060701be138c11504e2011822d" size="md" alt="ClickHouse" border width="1152" height="1156" data-path="images/integrations/data-visualization/explo_04.webp" />

    6. Enter your **ClickHouse Credentials**.

    <Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_05.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=bdb8d641076146ac1d92c72c3b10ab89" size="md" alt="Credentials" border width="1152" height="902" data-path="images/integrations/data-visualization/explo_05.webp" />

    7. Configure **Security**

    <Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_06.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=164d7480e722ddc9aa95783d2373e7a1" size="md" alt="Security" border width="1152" height="855" data-path="images/integrations/data-visualization/explo_06.webp" />

    8. Within ClickHouse, **Whitelist the Explo IPs**.
       `54.211.43.19, 52.55.98.121, 3.214.169.94, and 54.156.141.148`
  </Step>

  <Step title="Create a Dashboard" id="3-create-a-dashboard">
    1. Navigate to **Dashboard** tab on the left side nav bar.

    <Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_07.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=4458ec674d988fea7195632352462409" size="sm" alt="Dashboard" border width="432" height="891" data-path="images/integrations/data-visualization/explo_07.webp" />

    2. Click **Create Dashboard** in the upper right corner and name your dashboard. You've now created a dashboard!

    <Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_08.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=6e421c163f5328d106f08a59ff051879" size="sm" alt="Create Dashboard" border width="425" height="76" data-path="images/integrations/data-visualization/explo_08.webp" />

    3. You should now see a screen that is similar to this:

    <Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_09.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=b9cb8a5bc1ac6e18a304620017000e9a" size="md" alt="Explo Dashboard" border width="1152" height="688" data-path="images/integrations/data-visualization/explo_09.webp" />
  </Step>

  <Step title="Run a SQL query" id="4-run-a-sql-query">
    1. Get your table name from the right hand sidebar under your schema title. You should then put the following command into your dataset editor:
       `SELECT * FROM YOUR_TABLE_NAME
       LIMIT 100`

    <Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_10.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=3f7e00a7bb9754cd1c8073fb95d42c3b" size="md" alt="Explo Dashboard" border width="1152" height="284" data-path="images/integrations/data-visualization/explo_10.webp" />

    2. Now click run and go to the preview tab to see your data.

    <Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_11.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=2b5fd6520b24b9bc1cb85f1c66394405" size="md" alt="Explo Dashboard" border width="1152" height="329" data-path="images/integrations/data-visualization/explo_11.webp" />
  </Step>

  <Step title="Build a Chart" id="5-build-a-chart">
    1. From the left hand side, drag the bar chart icon onto the screen.

    <Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_16.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=0b5e1fae957539ee4e0ac5720fab8fb3" size="sm" alt="Explo Dashboard" border width="432" height="978" data-path="images/integrations/data-visualization/explo_16.webp" />

    2. Select the dataset. You should now see a screen like the following:

    <Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_12.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=15ac16de8a8b210e6c524a90989cf380" size="sm" alt="Explo Dashboard" border width="432" height="744" data-path="images/integrations/data-visualization/explo_12.webp" />

    3. Fill out the **county** in the X Axis and **Price** in the Y Axis Section like so:

    <Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_13.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=19410e96fb80734ae091d92299f60b99" size="sm" alt="Explo Dashboard" border width="432" height="754" data-path="images/integrations/data-visualization/explo_13.webp" />

    4. Now, change the aggregation to **AVG**.

    <Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_14.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=3e74057a472136c043d856515ae14290" size="sm" alt="Explo Dashboard" border width="432" height="447" data-path="images/integrations/data-visualization/explo_14.webp" />

    5. We now have average price of homes broken down by price!

    <Image img="https://mintcdn.com/private-7c7dfe99-parallel-read-in-order-multi-part/wJWVx__vhmSoXLa6/images/integrations/data-visualization/explo_15.webp?fit=max&auto=format&n=wJWVx__vhmSoXLa6&q=85&s=ffa8fdb76ca106338f9c0e02c1792672" size="md" alt="Explo Dashboard" width="1152" height="661" data-path="images/integrations/data-visualization/explo_15.webp" />
  </Step>
</Steps>

<h2 id="learn-more">
  Learn more
</h2>

Find more information about Explo and how to build dashboards by <a href="https://docs.explo.co/" target="_blank">visiting the Explo documentation</a>.
