Create Charts in Web Apps using Google Apps Script on Google Sheets

  Рет қаралды 17,286

Code With Curt

Code With Curt

Күн бұрын

Пікірлер: 10
@CodeWithCurt
@CodeWithCurt 4 жыл бұрын
Google Apps Script Code used in Video Below: function doGet(e) { return HtmlService.createHtmlOutputFromFile('WebAppChart'); } function getCases() { var ss= SpreadsheetApp.getActiveSpreadsheet(); var casesSheet = ss.getSheetByName("US COVID CASES"); var getLastRow = casesSheet.getLastRow(); return casesSheet.getRange(2, 1, getLastRow - 1, 2).getValues(); } function getPopulation() { var ss= SpreadsheetApp.getActiveSpreadsheet(); var populationSheet = ss.getSheetByName("CITY POPULATION"); var getLastRow = populationSheet.getLastRow(); return populationSheet.getRange(2, 1, getLastRow - 1, 4).getValues(); }
@mo-leejaehyung3979
@mo-leejaehyung3979 4 жыл бұрын
Thank you for sharing!! It is work!!!
@alfredgarrett6775
@alfredgarrett6775 2 жыл бұрын
Thank you soo much! I have been trying to make an example of this work with 7 other tutorials and all of them failed... Yours worked 1st time! Kudos!
@ingridzabel566
@ingridzabel566 Жыл бұрын
Thank you for this very clear explanation.
@CodeWithCurt
@CodeWithCurt 4 жыл бұрын
HTML, Javascript, jQuery, Chart.js Code used in Video Below: $( document ).ready(function() { getCases(); getCityPopulation(); }); function getCases() { google.script.run.withSuccessHandler(function(ar) { console.log(ar); var data = []; var label = []; ar.forEach(function(item, index) { data.push(item[1]); label.push(item[0]); }); var ctx = document.getElementById("lineChart").getContext("2d"); var lineChart = new Chart(ctx, { type: 'line', data: { labels: label, datasets: [{ label: 'Cases', fill: true, data: data, }] }, options: { maintainAspectRatio: false, elements: { line: { tension: 0.000001 } }, title: { display: true, text: 'COVID Cases US' }, scales: { xAxes: [{ display: true, }], yAxes: [{ display: true, }] } } }); }).getCases(); }; function getCityPopulation() { google.script.run.withSuccessHandler(function(ar) { console.log(ar); var data = []; var label = []; var color = []; ar.forEach(function(item, index) { data.push(item[2]); label.push(item[0]); color.push(item[3]); }); var ctx = document.getElementById("pieChart").getContext("2d"); var pieChart = new Chart(ctx, { type: 'pie', data: { labels: label, datasets: [{ //label: 'Cases', //fill: false, data: data, backgroundColor: color, }] }, options: { maintainAspectRatio: false, title: { display: true, text: 'CITY POPULATION' }, } }); }).getPopulation(); };
@Rolroorlo
@Rolroorlo 2 жыл бұрын
Hey Kurt Im really interested in this, but for the polar or radar chart, the basic stuff I understand it, but I want to make a slightly more complex web app, so I cant fully pull it off just with this video, is there any chance I can contact you and "commission" this little project? its mostly for educational purposes for me
@ahmedchouihi
@ahmedchouihi 3 жыл бұрын
Thanks for the video , but Is there react version?
@chetanborana5493
@chetanborana5493 4 жыл бұрын
Can able Convert to excel into web app with spreadsheet converter, easa software and xlsjuice ..But unable convert to google sheets into web app ..Pleases Help me for how to convert Google sheets into web app ....???
@jaredaron5754
@jaredaron5754 3 жыл бұрын
pro trick : watch series at flixzone. Been using them for watching a lot of movies lately.
@albertgannon4421
@albertgannon4421 3 жыл бұрын
@Jared Aron Definitely, I've been watching on flixzone for since december myself :)
Call Google Apps Script Function from Web App using Google Sheets
13:04
How to VLOOKUP in Google Sheets with Apps Script?
17:16
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 41 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Interactive dashboards in Google sheets
17:42
David Benaim
Рет қаралды 126 М.
Google Apps Script: Copy Rows To A New Sheet Based on Cell Value
25:48
Introduction to Charts in WeWeb
24:18
WeWeb
Рет қаралды 1,7 М.
Make an API With Google Sheets and Google Apps Script
15:53
Cukmekerb's Coding Class
Рет қаралды 64 М.
Web App w/ Google Charts, Google Sheets & Apps Script
33:25
Get __it Done!
Рет қаралды 22 М.
Web App - Load Data From Spreadsheet - Google Apps Script Web App Tutorial - Part 4
27:03
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 170 М.
Display Pictures on Web App using Google Apps Script
9:24
Code With Curt
Рет қаралды 27 М.
EPIC Google Sheets to Interactive Dashboard in Python ft. Streamlit / CSS
27:41
Is It Possible To Create A Website With Google Sheet - Code With Mark
18:53