You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Connect Chartbrew to ClickHouse to create real-time dashboards and client reports.'
7
8
---
8
9
9
-
import ConnectionDetails from '@site/docs/_snippets/_gather_your_details_http.mdx';
10
10
import chartbrew_01 from '@site/static/images/integrations/data-visualization/chartbrew_01.png';
11
11
import chartbrew_02 from '@site/static/images/integrations/data-visualization/chartbrew_02.png';
12
12
import chartbrew_03 from '@site/static/images/integrations/data-visualization/chartbrew_03.png';
@@ -17,15 +17,21 @@ import chartbrew_07 from '@site/static/images/integrations/data-visualization/ch
17
17
import chartbrew_08 from '@site/static/images/integrations/data-visualization/chartbrew_08.png';
18
18
import chartbrew_09 from '@site/static/images/integrations/data-visualization/chartbrew_09.png';
19
19
20
+
import ConnectionDetails from '@site/docs/_snippets/_gather_your_details_http.mdx';
21
+
import CommunityMaintainedBadge from '@theme/badges/CommunityMaintained';
22
+
import Image from '@theme/IdealImage';
23
+
20
24
# Connecting Chartbrew to ClickHouse
21
25
26
+
<CommunityMaintainedBadge/>
27
+
22
28
[Chartbrew](https://chartbrew.com) is a data visualization platform that allows users to create dashboards and monitor data in real time. It supports multiple data sources, including ClickHouse, and provides a no-code interface for building charts and reports.
23
29
24
30
## Goal {#goal}
25
31
26
32
In this guide, you will connect Chartbrew to ClickHouse, run a SQL query, and create a visualization. By the end, your dashboard may look something like this:
If you do not have a dataset to work with, you can add one of the examples. This guide uses the [UK Price Paid](/getting-started/example-datasets/uk-price-paid.md) dataset.
@@ -40,7 +46,7 @@ If you do not have a dataset to work with, you can add one of the examples. This
40
46
1. Log in to [Chartbrew](https://chartbrew.com/login) and go to the **Connections** tab.
41
47
2. Click **Create connection** and select **ClickHouse** from the available database options.
42
48
43
-
<imgsrc={chartbrew_02}class="image"alt="Select ClickHouse connection in Chartbrew" />
49
+
<Imageimg={chartbrew_02}size="lg"alt="Select ClickHouse connection in Chartbrew" />
44
50
45
51
3. Enter the connection details for your ClickHouse database:
46
52
@@ -51,19 +57,19 @@ If you do not have a dataset to work with, you can add one of the examples. This
51
57
-**Username**: Your ClickHouse username.
52
58
-**Password**: Your ClickHouse password.
53
59
54
-
<imgsrc={chartbrew_03}class="image"alt="ClickHouse connection settings in Chartbrew" />
60
+
<Imageimg={chartbrew_03}size="lg"alt="ClickHouse connection settings in Chartbrew" />
55
61
56
62
4. Click **Test connection** to verify that Chartbrew can connect to ClickHouse.
57
63
5. If the test is successful, click **Save connection**. Chartbrew will automatically retrieve the schema from ClickHouse.
58
64
59
-
<imgsrc={chartbrew_04}class="image"alt="ClickHouse JSON schema in Chartbrew" />
65
+
<Imageimg={chartbrew_04}size="lg"alt="ClickHouse JSON schema in Chartbrew" />
60
66
61
67
## 3. Create a dataset and run a SQL query {#3-create-a-dataset-and-run-a-sql-query}
62
68
63
69
1. Click on the **Create dataset** button or navigate to the **Datasets** tab to create one.
64
70
2. Select the ClickHouse connection you created earlier.
65
71
66
-
<imgsrc={chartbrew_05}class="image"alt="Select ClickHouse connection for dataset" />
72
+
<Imageimg={chartbrew_05}size="lg"alt="Select ClickHouse connection for dataset" />
67
73
68
74
Write a SQL query to retrieve the data you want to visualize. For example, this query calculates the average price paid per year from the `uk_price_paid` dataset:
69
75
@@ -74,13 +80,13 @@ If you do not have a dataset to work with, you can add one of the examples. This
74
80
ORDER BY year;
75
81
```
76
82
77
-
<imgsrc={chartbrew_07}class="image"alt="ClickHouse SQL query in Chartbrew" />
83
+
<Imageimg={chartbrew_07}size="lg"alt="ClickHouse SQL query in Chartbrew" />
78
84
79
85
Click **Run query** to fetch the data.
80
86
81
87
If you're unsure how to write the query, you can use **Chartbrew's AI assistant** to generate SQL queries based on your database schema.
82
88
83
-
<imgsrc={chartbrew_06}class="image"alt="ClickHouse AI SQL assistant in Chartbrew" />
89
+
<Imageimg={chartbrew_06}size="lg"alt="ClickHouse AI SQL assistant in Chartbrew" />
84
90
85
91
Once the data is retrieved, click **Configure dataset** to set up the visualization parameters.
86
92
@@ -91,11 +97,11 @@ Once the data is retrieved, click **Configure dataset** to set up the visualizat
91
97
3. Choose a chart type (e.g., line chart, bar chart, pie chart) and add it to your dashboard.
92
98
4. Click **Complete dataset** to finalize the setup.
93
99
94
-
<imgsrc={chartbrew_08}class="image"alt="Chartbrew dashboard with ClickHouse data" />
100
+
<Imageimg={chartbrew_08}size="lg"alt="Chartbrew dashboard with ClickHouse data" />
95
101
96
102
You can create as many datasets as you want to visualize different aspects of your data. Using these datasets, you can create multiple dashboards to keep track of different metrics.
97
103
98
-
<imgsrc={chartbrew_01}class="image"alt="Chartbrew dashboard with ClickHouse data" />
104
+
<Imageimg={chartbrew_01}size="lg"alt="Chartbrew dashboard with ClickHouse data" />
99
105
100
106
## 5. Automate data updates {#5-automate-data-updates}
101
107
@@ -105,7 +111,7 @@ Once the data is retrieved, click **Configure dataset** to set up the visualizat
105
111
2. Configure the update interval (e.g., every hour, every day).
0 commit comments