Dashboard Creation Mapping SQL queries to Google Chart Images.

Slides:



Advertisements
Similar presentations
A Guide to Oracle9i1 Creating Database Reports Chapter 7.
Advertisements

1Key – Report Creation with DB2. DB2 Databases Create Domain for DB2 Test Demo.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Planning and Statistics ADVIZOR TRAINING PLANNING AND STATISTICS V.1 1 ADVIZOR Tips.
2 Part II Enhancing a Presentation Changing the Presentation Design Design template Professionally created slide designs contain –Color schemes –Custom.
Chap8: Trends in DBMS 8.1 Database support for Field Entities 8.2 Content-based retrieval 8.3 Introduction to spatial data warehouses 8.4 Summary.
ArcView Documents Francisco Olivera, Ph.D., P.E. Department of Civil Engineering Texas A&M University.
A Guide to SQL, Seventh Edition. Objectives Retrieve data from a database using SQL commands Use compound conditions Use computed columns Use the SQL.
SQL Reporting Services Overview SSRS includes all the development and management pieces necessary to publish end user reports in  HTML  PDF 
Word Processing Chapter 5 Review Slides. All template files have this file extension and are stored in the Templates folder.dotx.
Widget Gallery Your Score Company Overview Level Trending Drilldown Ranking Recent [Client label for jobs] Improvable Questions Survey Summary Section.
Introduction To ArcMap ArcMa p. ArcMap is a Map-centric GUI tool used to perform map-based tasks Mapping –Create maps by working geographically and interactively.
Personal Reporting. Make any view you want Match your own branding.
Programming Languages
IST722 Data Warehousing Business Intelligence Development with SQL Server Analysis Services and Excel 2013 Michael A. Fudge, Jr.
Chapter 3 Single-Table Queries
Introducing Reporting Services for SQL Server 2005.
1 Chapter 7 Query-By-Example by Monica Chan CS157B Professor Lee.
Custom Reporting with Contact Center Enterprise
CSS/417 Introduction to Database Management Systems Workshop 2.
Inside Crystal Reports 7 for DataFlex T.M. Arnett Training Specialist.
Chapter 5: Charts Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Pablo del Castro Galán GS-ASE-EDS 2014/05/06 EDMS Doc EDMS.
Working with Reports in Microsoft Excel Session Version 1.0 © 2011 Aptech Limited.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
© Anselm Spoerri Web Design Information Visualization Course Prof. Anselm Spoerri
Data Visualization Data Visualization. Business Analytics (BA) Overview.
Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! With Microsoft ® Office 2007 Intermediate Chapter.
An Internet of Things: People, Processes, and Products in the Spotfire Cloud Library Dr. Brand Niemann Director and Senior Data Scientist/Data Journalist.
Microsoft Office Illustrated Fundamentals Unit I: Working with Charts.
DATA, SITE AND RESOURCE MANAGEMENT SOFTWARE. A Windows application software designed for use with Stylitis data loggers. EMMETRON consolidates resources,
Chapter 3 Data Visualization 1. Introduction Data visualization involves: Creating a summary table for the data. Generating charts to help interpret,
© Anselm Spoerri Web Design Information Visualization Course Prof. Anselm Spoerri
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
Google Visualization Mapper
Microsoft® Office Visio® Professional 2007 for IT How to Use Visio for Project Management Presenter: Date: 1.
Google Charts API Ashwin Neurgaonkar 10/13/2008. What are APIs ? API stands for ‘Application Programmable Interface’. As it’s name implies, it is an interface.
Unit 42 : Spreadsheet Modelling
What’s New EG 4.2 TASS, September 25, 2009 Judy Orr Lawrence, SAS Instructor.
VizDB A tool to support Exploration of large databases By using Human Visual System To analyze mid-size to large data.
Building Dashboards SharePoint and Business Intelligence.
0 eCPIC User Training: Portfolios Module These training materials are owned by the Federal Government. They can be used or modified only by FESCOM member.
Gold – Crystal Reports Introductory Course Cortex User Group Meeting New Orleans – 2011.
1/18/00CSE 711 data mining1 What is SQL? Query language for structural databases (esp. RDB) Structured Query Language Originated from Sequel 2 by Chamberlin.
Chapter 15: Spreadsheet and Worksheet Basics Lesson 96: Worksheets with Charts © 2010, 2006 South-Western, Cengage Learning.
Creating the basic bar chart Creating the Basic Bar Chart, Slide 1Copyright © 2004, Jim Schwab, University of Texas at Austin Bar charts and column charts.
(SQL - Structured Query Language)
1 Chapter 3: Getting Started with Tasks 3.1 Introduction to Task Dialogs 3.2 Creating a Listing Report 3.3 Creating a Frequency Report 3.4 Creating a Two-Way.
A Guide to SQL, Eighth Edition Chapter Four Single-Table Queries.
21 Copyright © 2009, Oracle. All rights reserved. Working with Oracle Business Intelligence Answers.
Crystal Report CIS 764 – Presentation - Srunokshi Kaniyur Prema Neelakantan CIS Presentation on Crystal reports.
24 Copyright © 2009, Oracle. All rights reserved. Building Views and Charts in Requests.
5 Copyright © 2008, Oracle. All rights reserved. Testing and Validating a Repository.
Analysis in DHIS 2. Principles of DHIS 2 analysis  Flexible data model enables dynamic reporting (input != output)  Customize with report design tools.
Storing extension specific metadata in ODF documents - EuroOffice Map Chart Supporting grants: TECH_08-A2/ SZOMIN08;
Data Visualization with Tableau
PROJECT ON MS-EXCEL.
QLIK Overview & Desk Aid
Add More Zing to your Dashboards – Creating Zing Plot Gadgets
Please silence cell phones – thank you!
Data Visualizer.
MANAGEMENT OF DASHBOARD MODELS
INTRODUCTION TO SPREADSHEET APPLICATIONS
Leveraging BI in SharePoint with PowerPivot and Power View
Sample Column Chart- No Data Labels, no lines SOURCE:
Intermountain West Data Warehouse
CSc4730/6730 Scientific Visualization
Chapter 4 Summary Query.
Introduction To ArcMap
Microsoft Office Illustrated Fundamentals
Presentation transcript:

Dashboard Creation Mapping SQL queries to Google Chart Images

SQL – to – Visualization Mappings Idea: – Automatic mapping of SQL queries to visualization scripts – Enable easy creation of dashboards based on SQL queries – Enable drill-down and other interactive features – Provide a pedagogical tool for teaching practical data visualization techniques

Data-to-Visualization Mapping Algorithms Data Source Visualiza tion Object User-generated SQL queries SQL Query results Data –to- Visualization Mappings

Google Charts Images generated via parameterized URL strings (REST queries) Google Charts Developer’s Guide: s.html s.html Parameters include chart type, chart properties, data, legends, chart sizes and colors, etc. Google returns a PNG file with the graphic for the request

Example Google Charts REST String ?cht=p3 &chd=t:100,90,80,45,42.5,15 &chl=First|Second|Third|Fourth|Fifth|Sixth &chs=500x200 &chtt=My Chart &chco=FF0000,00FF00,0000FF,000000,FFFFFF,FF00FF,00FF00,00FFFF,DDDD DD,AAAAAA, Type = 3D Pie Data Labels Size Title Colors (per slice) Resulting Image

Types of Google Charts

SQL Aggregate Queries SQL Aggregate queries provide summary results (sums, averages, counts) with grouping SELECT, FROM GROUP BY Ideal for these visualizations: bar, line, and pie charts

Mapping Aggregate SQL Queries to Google Charts Aggregate query From query’s result set, generate the URL parameter values for: – chl (from grouping column) – chd (from aggregate column) – NOTE: for Google Charts, data range is So original data must be normalized before being sent. Other parameters are set based on user preferences

Sample Aggregate Query From AdventureWorks database: SELECT Production.ProductCategory.Name, COUNT(*) FROM Production.ProductCategory FULL OUTER JOIN Production.ProductSubcategory ON Production.ProductCategory.ProductCategoryID = Production.ProductSubcategory.ProductCategoryID FULL OUTER JOIN Production.Product ON Production.ProductSubcategory.ProductSubcategoryID = Production.Product.ProductSubcategoryID GROUP BY Production.ProductCategory.Name order by count(*) desc

Sample AggregateQuery From AdventureWorks database: SELECT Production.ProductCategory.Name, COUNT(*) FROM Production.ProductCategory FULL OUTER JOIN Production.ProductSubcategory ON Production.ProductCategory.ProductCategoryID = Production.ProductSubcategory.ProductCategoryID FULL OUTER JOIN Production.Product ON Production.ProductSubcategory.ProductSubcategoryID = Production.Product.ProductSubcategoryID GROUP BY Production.ProductCategory.Name order by count(*) desc Grouping column, aggregate column Grouping clause

Result Set (from AdventureWorks database) Mapped to Google Chart URL String &chd=t:100, , , , &chxt=x,y&chxl=0:|0|209|1:|Accessories|Clothing|Bikes|Components|NULL &chs=310x150 &chtt=Product Category Counts &chma=30,30,30,30&chco=FF0000,00FF00,0000FF,000000,FFFFFF,FF00FF,00

Result Set (from AdventureWorks database) Mapped to Google Chart URL String &chd=t:100, , , , &chxt=x,y&chxl=0:|0|209|1:|Accessories|Clothing|Bikes|Components|NULL &chs=310x150 &chtt=Product Category Counts &chma=30,30,30,30&chco=FF0000,00FF00,0000FF,000000,FFFFFF,FF00FF,00 Aggregate data are normalized, then become the data values in the GoogleCharts URL.

Result Set (from AdventureWorks database) Mapped to Google Chart URL String &chd=t:100, , , , &chxt=x,y&chxl=0:|0|209|1:|Accessories|Clothing|Bikes|Components|NULL &chs=310x150 &chtt=Product Category Counts &chma=30,30,30,30&chco=FF0000,00FF00,0000FF,000000,FFFFFF,FF00FF,00 Grouping field results become the label values in the GoogleCharts URL.

URL String Returns Image &chd=t:100, , , , &chxt=x,y&chxl=0:|0|209|1:|Accessories|Clothing|Bikes|Components|NULL &chs=310x150 &chtt=Product Category Counts

Visualizing Geographic Data The Google Charts API includes map charts in which you can adjust colors of a map’s regions using numeric data. Good for use on aggregate queries where the group attributes are geographic units (e.g. states of the US, countries of Europe, etc.)

Result Set (from AdventureWorks database) Mapped to Google Chart URL String Grouping field in result set (state abbrev) is associated with the states of the chart (cht=t indicates a map, chtm=usa indicates US map) , , , &chld=CAWAORILOHTX&chs=250x150&chtt=Tot Customers by State&chma=30,30,30,30&chco=FFFFFF,EEEEEE,0000FF,FF0000&chf=bg,s,EAF7FE C C

URL String Returns Image , , , &chld=CAWA ORILOHTX&chs=250x150&chtt=Tot Customers by State&chma=30,30,30,30&chco=FFFFFF,EEEEEE,0000FF,FF0000&chf=bg,s,EAF7FE

Drill-Down From aggregate, get sub-aggregates for each group For a given query, you can specify a sequence of drill-down fields, which are used for each subsequent drill-down request

Example Drill-Down SELECT Production.ProductCategory.Name, COUNT(*) FROM Production.ProductCategory FULL OUTER JOIN Production.ProductSubcategory ON Production.ProductCategory.ProductCategoryID = Production.ProductSubcategory.ProductCategoryID FULL OUTER JOIN Production.Product ON Production.ProductSubcategory.ProductSubcategoryID = Production.Product.ProductSubcategoryID GROUP BY Production.ProductCategory.Name order by count(*) desc SELECT Production.ProductSubcategory.Name, COUNT(*) FROM Production.ProductCategory FULL OUTER JOIN Production.ProductSubcategory ON Production.ProductCategory.ProductCategoryID = Production.ProductSubcategory.ProductCategoryID FULL OUTER JOIN Production.Product ON Production.ProductSubcategory.ProductSubcategoryID = Production.Product.ProductSubcategoryID WHERE Production.ProductCategory.Name = 'Accessories' GROUP BY Production.ProductSubcategory.Name ORDER BY count(*) desc Production.ProductSubcategory.Name Modified query (sub-aggregate) Original query (aggregate) Drill-down field

Example Drill-Down