惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
Jina AI
Jina AI
罗磊的独立博客
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
J
Java Code Geeks
U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
爱范儿
爱范儿
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
I
InfoQ
月光博客
月光博客
博客园_首页
Vercel News
Vercel News
P
Proofpoint News Feed
GbyAI
GbyAI
Y
Y Combinator Blog

Supabase Blog

AI Agents Know About Supabase. They Don't Always Use It Right. Custom OIDC Providers for Supabase Auth 100,000 GitHub stars Supabase docs over SSH Navigating Regional Network Blocks Supabase Joins the Stripe Projects Developer Preview Log Drains: Now available on Pro Supabase Storage: major performance, security, and reliability updates Supabase incident on February 12, 2026 Hydra joins Supabase X / Twitter OAuth 2.0 is now available for Supabase Auth BKND joins Supabase Supabase is now an official Claude connector Supabase PrivateLink is now available Introducing: Postgres Best Practices When to use Read Replicas vs. bigger compute Introducing TRAE SOLO integration with Supabase Supabase Security Retro: 2025 Sync Stripe Data to Your Supabase Database in One Click Building ChatGPT Apps with Supabase Edge Functions and mcp-use Own Your Observability: Supabase Metrics API Introducing iceberg-js: A JavaScript Client for Apache Iceberg Introducing Supabase for Platforms Adding Async Streaming to Postgres Foreign Data Wrappers Build "Sign in with Your App" using Supabase Auth Introducing Seven New Email Templates for Supabase Auth The new Supabase power for Kiro Introducing Supabase ETL Introducing Analytics Buckets Introducing Vector Buckets
Visualizing Supabase Data using Metabase
Ant Wilson · 2022-06-29 · via Supabase Blog

Visualizing Supabase Data using Metabase

Data helps organizations make better decisions. With a programming language like Python to analyze your data and transform data into visual representations, you can effortlessly tell the story of your business. One way to create customized visuals from your data would be to use data visualization libraries in Python like Matplotlib, Seaborn, Ggplot2, Plotly, or Pandas. When you want to accomplish this task with little or no code (not even SQL), you might consider using tools like Metabase.

With Metabase, a powerful visualization tool, you can quickly turn your data into easy-to-understand visuals like graphs, pie charts, flow diagrams, and much more. Then, using Metabase’s intuitive interface, you can cut through the data noise and focus on what’s essential for your business.

In the previous blog of this series, we explained how to use Python to load data into Supabase. In this blog, we will create different kinds of charts out of the data stored in Supabase using Metabase.

Before we dive in, let’s look at some prerequisites that you will need:

  • Supabase project with data

Based on our previous article, we assume we already have a Supabase project setup and have data loaded into it.

  • Metabase Docker Container

To take advantage of the open-source version of Metabase, you can use the Metabase docker container here.

Launching Metabase#

To launch Metabase, simply go to http://localhost:3000/setup/ which is the default port that the Metabase server will be listening to.

After Metabase is launched, select your preferred language and add your contact information. In the Add your data markdown, you will need to choose PostgreSQL.

You will be prompted to add the necessary connection information to your Supabase project. Go to your Supabase project and hit Settings > Database to get the database info.

Enter the necessary information on Metabase and hit next. Finally, select your data preference, after which you will land on the Metabase homepage.

View Database and Tables#

We can now see the "Supabase DB" Supabase project under "Our data".

To view the tables, go to SupabaseDB > public

View Table Data Insights#

Go back to the home page and select public schema under "Try these x-rays based on your data"

Here is the output of the product table.

As you can see, we can get some handy information from this like:

  • How many products are present with a given range of inventory count.
  • How many products are present for a given range of price.
  • The ratio between the number of employees to the number of products.
  • How many products each vendor has created.

If you have column-specific views, you can select the zoom-in option under More x-rays.

For example, let's select the total employees field.

With information like this, you will be able to answer some key questions like

  • What are some common statistics for company employees like average, minimum, maximum, and standard deviation?
  • What is the distribution of the employees across different geo locations?
  • What is the distribution of the employees across different vendors?

We can also use custom queries to set up our dashboards. To do this, go to New > SQL query.

Next, under the database, select "SupabaseDB".

We will be using the following SQL query:


_10

select "Vendor".vendor_name, product_name, "Vendor".total_employees

_10

from

_10

"Product"

_10

left join "Vendor" on "Product".vendor_id = "Vendor".vendor_id

_10

where "Vendor".total_employees;


This query should fetch us the vendor name and the product where the number of employees for a given vendor is less than 110.

To run the SQL query, hit the play button.

This will be shown below in the output window. To visualize the data, hit the visualization button.

Next, select the type of visualizer you want. Let us choose Bar.

Choose the appropriate x-axis and y-axis fields, and you will be able to view the data in bar format.

Data visualization empowers organizations to turn unused data into actionable insights, leading to faster and better decision-making. Why wait?

With our Free Plan Supabase account, you can start a new project today and use Metabase to visualize your app data.

If you have any questions please reach out via Twitter or join our Discord.