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
A screenshot of the Bubble editor showing how to use the :group by operator

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 with a free account

Build your app on Bubble's Free plan. No need to upgrade until you're ready to launch your app.

Join building

LATEST STORIES

A mobile shopping app mockup, with pop-up notifications, on a blue and purple gradient background.

How to Increase Push Notification Opt-In Rates: A 2026 Guide

Learn push notification opt-in best practices for mobile apps, including when to ask for permission, how iOS and Android prompts differ, what to write on a custom prompt, and how to test and measure your results.

Bubble
November 24, 2026 • 11 minute read
An abstract visual of a no-code web app with data flowing through four pipelines, on a blue gradient background.

No-Code Platform Migration: A Complete Guide for 2026

Plan your no-code platform migration step by step, from mapping your data and logic to moving users, reconnecting APIs, testing the new app, and switching over safely.

Bubble
November 24, 2026 • 10 minute read
App Store icon with notification badge over a mobile app screen mockup, cursor hand clicking, illustrating iOS app publishing process.

How to Publish Your App to the App Store in 2026

Ship your iOS app with confidence — this guide walks you through Apple Developer setup, App Store Connect, screenshots, privacy, TestFlight, and review, including 2026 SDK and age‑rating updates.

Bubble
November 24, 2026 • 19 minute read
An abstract visual of hidden, encrypted data across three cards, each with a lock icon and four lines of hidden data.

What Is Field-Level Encryption and When Does Your App Need It?

Learn what field-level encryption protects, how it differs from other security layers, and how to protect sensitive data in a no-code app’s database.

Bubble
November 23, 2026 • 11 minute read

How to Increase Push Notification Opt-In Rates: A 2026 Guide

November 24, 2026 • 11 minute read

No-Code Platform Migration: A Complete Guide for 2026

November 24, 2026 • 10 minute read

What Is Field-Level Encryption and When Does Your App Need It?

November 23, 2026 • 11 minute read

How to Plan an AI App Builder Developer Handoff: 2026 Guide

November 22, 2026 • 10 minute read

App Maintenance: A 2026 Guide to Keeping Your App Running

November 09, 2026 • 10 minute read

Build the next big thing with Bubble

Start building for free