Need a customized project? We build it to your exact requirements.Contact us on WhatsApp

Free Pie Chart Web App from Google Sheets – Apps Script

L3 Tools & Utilities CRUD & Dashboards Premium Plan Weekly Plan VIP Premium Plan
❤️
Need a Custom Business Solution?
Connect with us on WhatsApp to discuss your requirements. Our team will design and develop a tailored software solution aligned with your business workflow, operational needs, and growth objectives.
How to Create a Pie Chart Web App from Google Sheet Database | L3
You get
  • Google Sheet link
  • Source code file
  • Resale rights
  • Edit rights
  • Setup guide
  • AI setup help

Key Features

Pie chart drawn from a Google Sheet Labels values and colours all read from the sheet Slice colour set per row in its own column Add a row and refresh to add a slice Reads down to the last filled row automatically Points at a named sheet rather than the first tab Chart size set in one place in the HTML Heading text above the chart editable Built with the Chart.js library Runs on the active spreadsheet with no ID to paste Deployed as a Google Apps Script web app Short commented code written to learn from

Description

L3 is the third file in the learning series, and it answers a question that comes up as soon as anyone builds a dashboard in Apps Script: how do I draw a chart from the sheet, and how do I keep it drawing itself when the data changes? The answer here is a pie chart built with Chart.js that takes everything — the labels, the values and even the colour of each slice — from rows in a Google Sheet.

The sheet is the chart

Each row is one slice: a name, a number and a colour. Add a row with Blue, 456 and the colour blue, refresh the web app, and the slice is there. Nothing in the code needs touching, because the script reads down to the last filled row rather than a fixed range, so the chart grows with the data instead of quietly cutting it off.

Pointed at a named sheet

One detail worth understanding, and the walkthrough spends time on it: the script names the sheet it reads rather than grabbing whichever tab happens to be first. That is what lets the same workbook hold a dozen other tabs without any of them ending up in the chart by accident.

Size and titles

The chart lives in a canvas whose width and height sit in one place in the HTML. Change 400 to 800 and the chart is twice the size on the next refresh. The heading above it is plain text in the same file, so putting your own title there takes a second.

Learning, not just using

The code is short and commented for the reason the series exists — doGet returning the page, a function fetching the range, the labels, data and colours pushed into Chart.js. It is the piece you lift into a bigger dashboard once you can see how the three arrays get filled.

Requirements

  • A Google account with Drive and Sheets
  • Your own copy of the provided spreadsheet
  • Label value and colour columns in the data sheet
  • Apps Script editor access on that copy
  • Deploy as a web app to view the chart

What's Included

  • Complete Apps Script code for the chart web app
  • Google Sheet with the label value and colour layout
  • Pie chart rendered with the Chart.js library
  • Data read to the last filled row automatically
  • Per slice colour taken from the sheet
  • Named sheet lookup so other tabs are ignored
  • Adjustable chart size in the HTML
  • Editable heading above the chart
  • Commented code explaining each part
  • Step-by-step video walkthrough of the full build
  • Free support from the developer

Item Details

Versionv1.0
PublishedAug 22, 2025
PlatformGoogle Apps Script
DatabaseGoogle Sheets
CategoryTools & Utilities, CRUD & Dashboards
Tagspie chart web app google sheetshow to chart in google sheetsgoogle sheets chart scriptchart js google apps scriptgoogle sheet data to chartdynamic pie chart from sheet datagoogle apps script dashboard chartlive chart google sheets web app
VideoWatch walkthrough
LicenseRegular License
Subscription Verification Required
This is a free file. Subscribe to our YouTube channel to unlock the source code + Google Sheet. One click — no payment. Google only confirms you are subscribed.
Verify Now
Free download

Subscribe & Unlock Source Code

Subscribe on YouTube, then verify with one click. No payment, no card. Google is used only to confirm your subscription.

What you get

  • Code.gs + HTML filesThe complete Apps Script project
  • Google SheetYour own copy with the data
  • Setup guideInstall steps from start to finish

Not subscribed yet? Subscribe to our channel

Browse More Free Files

Need This Customized For Your Business?

Extra modules, your branding, integrations or reports built on top of this file. You get a clear quote and timeline before any work starts, and support after delivery.

400+
Projects Delivered
91+
Countries Served

What We Customize

Features & Functions
Add new features, modify existing scripts, custom formulas & automations
API & Integrations
Connect with WhatsApp, Payment Gateways, CRM & more
Design & UI Changes
Custom branding, layout redesign, dark mode, mobile optimization
Full Custom Projects
Dashboards, billing systems, inventory, CRM — built from scratch
Get Free Quote on WhatsApp

20-30% advance to start • Clear quote before work begins • Support included after delivery

Free
Source Code File

People choose these

Paid picks from the same category

R14 | Scan QR Code and search data from Google sheet | Search Data Using Scan QR CODE R14 | Scan QR Code and search data from Google sheet | Search Data Using Scan QR CODE 25 views this month Apps Script Grocery Store POS System with Barcode Scanner | Google Sheet POS + Apps Script + AI Grocery Store POS System with Barcode Scanner | Google Sheet POS + Apps Script + AI 233 views this month Apps Script How to Build an App with Claude AI: Complete Church Management System in Google Sheets How to Build an App with Claude AI: Complete Church Management System in Google Sheets 161 views this month Apps Script

Reviews & Feedback

What buyers and viewers say about How to Create a Pie Chart Web App from Google Sheet Database | L3.

No star ratings yet Tap a star to be the first to rate it.
2 comments from
YouTube viewers
Sort
@krishnanmanoj1 via YouTube
interesting❤
@dimitrisvoudouris via YouTube
very nice app with easy customization