Google Visualization ISYS 650. Google Visualization API We can use the Google Visualization.

Slides:



Advertisements
Similar presentations
PART IV - EMBED VIDEO, AUDIO, AND DOCUMENTS. Find a video on Youtube.com: Search for a video, then look for the Embed code. Copy this code into the HTML/JavaScript.
Advertisements

Google Apps Access Google Apps from the Parkland Intranet Page:
Microsoft Excel 2013 An Overview. Environment Quick Access Toolbar Customizable toolbar for one-click shortcuts Tabs Backstage View Tools located outside.
JQUERY/AJAX ALIREZA KHATAMIAN DELARAM YAZDANSEPAS.
Newsletter Plugin The newsletter plugin allows you to create and send newsletters to a managed list or multiple lists of users. Your users can subscribe.
Microsoft Excel 2010 Chapter 7
1 Chapter 12 Working With Access 2000 on the Internet.
Create slices and hotspots Create links in Web pages Create rollovers from slices Create basic animation Add tweening symbol instances to create animation.
Computing Concepts Advanced HTML: Tables and Forms.
1 Computing for Todays Lecture 22 Yumei Huo Fall 2006.
1 Committed to Shaping the Next Generation of IT Experts. Chapter 3 – Graphs and Charts: Delivering a Message Robert Grauer and Maryann Barber Exploring.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
My Workspace Profile. Using the course menu, click on Profile.
Tutorial 11: Connecting to External Data
+ EDU Glogster and You Presentations that work! Created by Beth van Kan April 2, 2010.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Instructor: Professor Cora Martinez, PhD Department of Civil and Environmental Engineering Florida International University.
NAWD National Conference on Student Activities – 2009 can produce Yip-pees! Saturday December 5, 2009 – Fort Lauderdale, FL Lou Miller – Executive Director,
Chapter 4 Dreamweaver: Part II The Web Warrior Guide to Web Design Technologies.
WaveMaker Visual AJAX Studio 4.0 Training Studio Overview.
Classroom User Training June 29, 2005 Presented by:
Microsoft Excel 2000 Adding Visual Elements and Managing Files.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
INTRODUCTION TO FRONTPAGE. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features Features  Starting Front Page Starting Front Page  Components.
History ChartGizmo was created by Max Kuchin and Galinkskiy Dmitriy, two software developers from Sankt- Petersburg, Russia. The first version of ChartGizmo.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Chapter 10 Fireworks: Part II The Web Warrior Guide to Web Design Technologies.
Computers Are Your Future © 2005 Prentice-Hall, Inc.
Creating webpages in Google Sites. 1- Create a Gmail account.
University of Sunderland CDM105 Session 6 Dreamweaver and Multimedia Fireworks MX 2004 Creating Menus and Button images.
 Word Processing  Spreadsheets  Presentations  Drawings  Forms.
Name : Tatiana “Tania” Harrison Office : 216 Phone number: CWU page: Syllabus Name :
Saving Form Data You can save form data in Google Spreadsheets using the following steps. 1.Create a Google Spreadsheet in your documents 2.Use Tools to.
1 ADVANCED MICROSOFT POWERPOINT Lesson 9 – Importing and Exporting Information Microsoft Office 2003: Advanced.
Online Surveys Jacqui James and Malcolm Roberts School of Education.
Chapter 2: Variables, Functions, Objects, and Events JavaScript - Introductory.
How to Use Google Charts. Using Google Charts Google Charts is used to provide a way to visualize data on your website. You can choose to use simple line.
XP Tutorial 7 Creating a Flash Web Site. XP New Perspectives on Macromedia Flash 82 Objectives Plan and create a Flash Web site Create a Flash template.
Online Surveys Jacqui James Malcolm Roberts School of Education.
FIRST COURSE PowerPoint Tutorial 4 Integrating PowerPoint with Other Programs and Collaborating with Workgroups.
Basic ActionScript and PHP Cis 126. Getting Started set up a basic folder structure so we can keep our files organized. Mirror this structure on your.
WaveMaker Visual AJAX Studio 4.0 Training Java Script Events.
HINDU STYLE PORTFOLIO TEMPLATE
Web Page Creation Standard Grade Computing. WWW n The World Wide Web is a collection of information held in multimedia form on the Internet. n This information.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
JavaScript and Ajax (JavaScript Environment) Week 6 Web site:
Chapter 7 Creating Templates, Importing Data, and Working with SmartArt, Images, and Screen Shots Microsoft Excel 2013.
Introducing Scratch Learning resources for the implementation of the scenario
Creating Web Pages in Word. Sharing Office Files Online Many Web pages are created using the HTML programming language. Web page editors are software.
Weebly is Your Friend. * To Enhance And Promote Your Curriculum * To Provide A Student Resource * Add Efficiency to Your Planning * Informational * Promote.
XP Creating Web Pages with Microsoft Office
CSE3 Winter 2014 Making Information Available to the World with HTML and Web Pages Notepad++ was used for every webpage that was created. Used XHTML (Extensible.
MicrosoftTM SharePoint Content Management SystemTutorial
Dreamweaver – Setting up a Site and Page Layouts
Creating a Flash Web Site
Mapping for the interwebs
Excel Part 4 Working with Charts and Graphics
TU170 Learning online and computing with confidence
Kanban Task Manager SharePoint Editions ‒ Introduction
Excel Part 4 Working with Charts and Graphics
Computers Are Your Future
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Basic Web Page Creation
Tutorial 7 – Integrating Access With the Web and With Other Programs
Tutorial 8 Sharing, Integrating, and Analyzing Data
Excel Part 4 Working with Charts and Graphics
Generate Data with Google Analytics SQL Saturday /04/2019.
Presentation transcript:

Google Visualization ISYS 650

Google Visualization API We can use the Google Visualization API to embed an interactive chart, graph, or other graphic onto your web page. Visualizations are interactive, and also expose events, such as user mouse clicks.

Using Visualizations Add a to your page. Your page must have an HTML element that will hold your visualization; typically you'll use a in your page. Add a to your page Load your libraries. A visualization requires three libraries to be included or loaded on the page: the Google AJAX API; the Google Visualization API core; and a library for each type of visualization. Load your libraries Prepare your data. You'll need to prepare the data to visualize; this means either specifying the data yourself in code, or querying a remote site for data. Prepare your data Create an instance of your visualization. Instantiate your visualization by calling its constructor and passing in a reference to your element. Create an instance of your visualization Draw your visualization. Call draw() on your visualization and pass in your data to draw your visualization on the page. Draw your visualization

Code PlayGround Google's Code Playground lets you play around without opening an external editor, and all of the APIs are loaded for you in the Pick an API box.

Using the Code Playground Pick an API Edit Code – View Docs – Edit HTML Debug/Run code Output

Example: Pie chart Change the template and see the result Click Edit Html to generate html code Copy the code and paste to an text editor to create a html file

DataTable Two columns. The first column should be a string, and contain the slice label. The second column should be a number, and contain the slice value. Example: – data.addColumn('string', 'Task'); data.addColumn('number', 'Hours per Day'); data.addRows(5); data.setValue(0, 0, 'Work'); data.setValue(0, 1, 11); data.setValue(1, 0, 'Eat'); data.setValue(1, 1, 2); data.setValue(2, 0, 'Commute'); data.setValue(2, 1, 2); data.setValue(3, 0, 'Watch TV'); data.setValue(3, 1, 2); data.setValue(4, 0, 'Sleep'); data.setValue(4, 1, 7);

Examples GeoMap – Adding two other countries: China, 100 Vietnam: 80 – DataTable Gauge Motion Chart

Gadgets Gadgets are simple HTML and JavaScript applications that can be embedded in webpages and other apps.

Creating gadget Using Google Spreadsheet Create the spreadsheet with data for charting – You need Google Doc account to create a Google Spreadsheet Select the data range for charting Insert/Gadget – Choose the gadget to create

Gadget Command Button

To publish a gadget Gadget/Publish Gadget Copy and paste code to a web page

Data Queries Send a request to a data source that supports the Visualization API (such as a Google Spreadsheet).Google Spreadsheet) Step 1: To send a request, create a Query object, specify a URL for the data source, and then send the request. Step 2: Processing the Response – response handler function – If the request was successful, the response contains a data table. If the request failed, the response contains information about the error, and no DataTable.

Using a Google Spreadsheet as a Data Source Finding out the proper URL to use for a sheet or a range of cells in a spreadsheet to which it has access, and using that URL as a data source URL. Spreadsheet must set to share

Example: Using the Query Language Copy the spreadsheet’s URL and paste to replace the one in the template. Use column label as field name: – Select D, E query.setQuery('SELECT D, E'); – Select A, B Where B > 100

Creating a PieChart Gadget with Selected Range in a Spreadsheet I use two templates: – 1. The Data Source Quest template to generate the code for defining query object and sending the query. – 2. The PieChart template to generate the code to draw the PieChart. – Then somehow combines the needed code from both templates. Note 1: The PieChartChart is part of the basic charts package: google.load('visualization', '1', {packages:["corechart"]}); Note 2: The Data Source Quest example is a Intensitymap and belongs to a different package: google.load('visualization', '1', {packages: ['intensitymap']});

Use buttons to select PieChart Google Visualization API Sample google.load('visualization', '1', {packages: ['corechart']}); function drawYear(MyYear) { // To see the data that this visualization uses, browse to // if (MyYear==2010) { query = new google.visualization.Query( ' query.send(handleQueryResponse); } else { query = new google.visualization.Query( ' query.send(handleQueryResponse); } } function handleQueryResponse(response) { if (response.isError()) { alert('Error in query: ' + response.getMessage() + ' ' + response.getDetailedMessage()); return; } var data = response.getDataTable(); visualization = new google.visualization.PieChart(document.getElementById('visualization')); visualization.draw(data, null); } google.setOnLoadCallback(drawYear);

Create a Chart from a Query in Data Warehouse 1. Define a yearly sales query to compute the total sales for year 1996, 1997 and Export the query to an Excel file. 3. Upload to Google Docs 4. Create a column chart for the yearly sales 5. Choose Publish Chart option to publish the chart with a webpage.