Walk-Through: Use ‘:Group By’ to Return and Display Data

Learn how and when to use the ‘:group by’ operator with this step-by-step guide.

Abhinav Narain
January 17, 2024 • A quick read
Walk-Through: Use ‘:Group By’ to Return and Display Data

Whether you’re creating an internal dashboard, building a user-facing analytics app, or simply trying to illustrate a point, data visualization can be a powerful tool for conveying information.

With the :group by operator, you can define one or more groupings of data and aggregate that data based on how you want to slice and dice it. For example, you might want to group data by creation date or owner and present that data by sum or average. By using :group by, you’re able to cross-hatch your data easily and dynamically.

Here’s a step-by-step guide to using the :group by operator and the free Chart.js plugin to return and display data in a bar chart.

💡
For more interactive tutorials, visit the academy.
Start building for free

Build for as long as you want on the Free plan. Only upgrade when you're ready to launch.

Join Bubble

LATEST STORIES

blog-thumbnail

Bubble vs. Cursor AI: A 2025 Comparison of Two Popular AI-Powered App Builders

Bubble and Cursor both use AI to speed up app development, but take different approaches to coding, AI use, accessibility, and more. Here’s how to pick the right one for your next project.

Bubble
January 23, 2026 • 17 minute read
blog-thumbnail

Bubble vs. Vercel v0: Which Is the Best AI-Powered App Builder?

Bubble is the only fully visual AI app builder that lets you vibe code without the code to build web and native mobile apps. Vercel gives you an AI assistant for code generation, iteration, and debugging. Which is right for you? We analyzed key factors to help you decide.

Bubble
January 23, 2026 • 25 minute read
blog-thumbnail

January Founder AMA Recap: How We Ship Features, the New Podcast, and 2026 Priorities

Emmanuel kicked off the new year with our latest AMA, covering AI Agent updates, the new podcast, mobile development, and more.

Emmanuel Straschnov
January 20, 2026 • 9 minute read
blog-thumbnail

Episode 1: 6 Weeks to Pivot, Build, and Win SXSW With Elita

A pandemic puppy sparked a pet health startup. Here's how Elita’s co-founders pivoted, built on Bubble, and won at SXSW Sydney.

Bubble
January 20, 2026 • 4 minute read

9 Best Replit Alternatives in 2026

January 13, 2026 • 7 minute read

7 Best Lovable Alternatives for AI App and Web Development

January 13, 2026 • 6 minute read

How to Build an Employee Portal With AI

January 13, 2026 • 6 minute read

How to Keep Track of Inventory: 9 Proven Methods for Business Owners

January 13, 2026 • 9 minute read

How to Build an App for Your Business: 8 Simple Steps

January 13, 2026 • 6 minute read

Build the next big thing with Bubble

Start building for free