Tree Visualization.

Slides:



Advertisements
Similar presentations
Alternative FILE formats
Advertisements

An Introductory Tutorial. Background and Purpose.
15-Jul-15 JSON. JSON example “JSON” stands for “JavaScript Object Notation” Despite the name, JSON is a (mostly) language-independent way of specifying.
XML File Format Used By LOR2 to Save Sequences The XML format used by LOR2 makes it easier for users to view and edit a sequence file outside of LOR with.
Review HTML  What is HTML?  HTML is a language for describing web pages.  HTML stands for Hyper Text Markup Language  HTML is not a programming language,
I Want My Data © 2008 Infinite Campus. All Rights Reserved. DL1305-1, DL Angel Lindsey Support Specialist K-12 Solutions Group.
CIS 451: XSL Dr. Ralph Westfall February, Problems With XML no formatting capabilities contra formatting tags like, etc. in HTML CSS can be used.
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
10 Adding Interactivity to a Web Site Section 10.1 Define scripting Summarize interactivity design guidelines Identify scripting languages Compare common.
Miscellaneous Excel Combining Excel and Access. – Importing, exporting and linking Parsing and manipulating data. 1.
JavaScript Programming B.Ramamurthy 6/113/2014B. Ramamurthy CSE6511.
XHTML and CSS Session 1 Intro, (X)HTML, CSS, W3C, browsers, webpage, structure, tags, attributes, elements, web development process, basic XHTML elements.
1 Using XML. 2 The Ticket Booth System We need a way to retain information between program runs. In real life, we would probably use a database system.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
1 Introduction  Extensible Markup Language (XML) –Uses tags to describe the structure of a document –Simplifies the process of sharing information –Extensible.
DYNAMIC HTML What is Dynamic HTML: HTML code that allow you to change/ specify the style of your web pages. Example: specify style sheet, object model.
1 Final Review. 2 Final Exam  30% of your grade for the course  December 9 at 7:00 p.m., the regular class time  No makeup exam or alternate times.
Web Terminology Intro to Web. North Lake College 2 by Sean Griffin HTML vs. XHTML HTML: Hypertext Markup Language XHTML: eXtensible Hypertext Markup Language.
CS5604: Final Presentation ProjOpenDSA: Log Support Victoria Suwardiman Anand Swaminathan Shiyi Wei Department of Computer Science, Virginia Tech December.
AJAX. Ajax  $.get  $.post  $.getJSON  $.ajax  json and xml  Looping over data results, success and error callbacks.
OVERVIEW AND PARSING JSON. What is JSON JavaScript Object Notation Used to format data Commonly used in Web as a vehicle to describe data being sent between.
Introduction to Arrays. Learning Objectives By the end of this lecture, you should be able to: – Understand what an array is – Know how to create an array.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
Google maps engine and language presentation Ibrahim Motala.
JSON. JSON as an XML Alternative JSON is a light-weight alternative to XML for data- interchange JSON = JavaScript Object Notation It’s really language.
JSON (Copied from and from Prof Da Silva) Week 12 Web site:
Using XML. The Ticket Booth System We need a way to retain information between program runs. In real life, we would probably use a database system for.
XML & JSON. Background XML and JSON are to standard, textual data formats for representing arbitrary data – XML stands for “eXtensible Markup Language”
11 jQuery Web Service Client. 22 Objectives You will be able to Use JSON (JavaScript Object Notation) for communcations between browser and server methods.
1 Introducing Web Developer Tools Rapid application development tools ASP.NET-compatible web editors –Visual Studio.NET Professional Edition –Visual Studio.
The Brenkoweb provides the excellent online programming tutorial for the programmer in various languages like as PHP, SQL, HTML, ASP, Javascript,
Framework and Graph Visualization Tools
Storing Data.
Tips & Tricks with Multiple Skins
>> Form Data Validation in JavaScript
eXtensible Markup Language
The Object-Oriented Thought Process Chapter 11
Miscellaneous Excel Combining Excel and Access.
Creating Databases Local storage. join & split
21 Essential Data Visualization Tools
PHP –MySQL Interview Question And Answer.
Writing JavaScript Code
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
Using Access and the Web
Microsoft Office Illustrated
Chapter 1 HTML, XHTML, and the World Wide Web
Excel Functions and Tables
Tutorial 8 Objectives Continue presenting methods to import data into Access, export data from Access, link applications with data stored in Access, and.
Objectives Insert a script element Write JavaScript comments
Chapter 1 HTML, XHTML, and the World Wide Web
Your 1st Programming Assignment
Web Browser server client 3-Tier Architecture Apache web server PHP
Built in Fairfield County: Front End Developers Meetup
Preparing your Data using Python
Preparing your Data using Python
Putting it all together
Semi-Structured data (XML Data MODEL)
JavaScript Programming Labs
JSON for the Data Mortal
Structuring Content in a Web Document
Test Your Tech Blogging is: Someone's online journal.
Department of Computer Science Cal State East Bay, Hayward, CA
Building a website: Putting it all together
CS 240 – Advanced Programming Concepts
Both XML ad JSON are designed to transport data
API Overview Application Programming Interface
Consuming Web Services with 2E Generated Objects
Web Programming and Design
Using Your Resources Correctly!
Presentation transcript:

Tree Visualization

Exercise 1: Dendrogram Download the codes and data file from https://bl.ocks.org/mbostock/4063570 to your web space Test the codes and make sure it works. Change d3.cluster() to d3.tree() and see what may happen Remove the part of data sorting in the statement and see the result var root = stratify(data) sort(function(a, b) { return (a.height - b.height) || a.id.localeCompare(b.id); });

Exercise 2: Following the format of the flare.csv file, create an CSV file based on the bookstore data for visualization http://personal.psu.edu/xuz14/ds330/Programming AssignmentDataSets/Assignment4_TreeVisualization/ Test a couple categories first

Exercise 3 Download the codes and data file from https://bl.ocks.org/mbostock/4063582 to your web space Change the value in .tile(d3.treemapResquarify) to d3.treemapSliceDice and see what would happen Go to this website to understand the difference between d3.treemapResquarify and d3.treemapSliceDice Try other Treemap tiling methods

JSON JavaScript Object Notation

Purpose A data format for JavaScript More complex than CSV/TSV More like XML (eXtensible Markup Language) Good support from various JavaScript libraries

Example (http://secretgeek.net/json_3mins.asp) {"skillz": { "web":[ { "name": "html", "years": 5 }, { "name": "css", "years": 3 }], "database":[ { "name": "sql", "years": 7 }] }}

Terms and Syntax JSON is about a collection of objects, which may contain sub-objects, which may … Object: Skillz Sub-objects: web, database Each object may have name/value pairs name/html, year/5; name/css, year/3; name/sql, year/7 Colon to separate name and value Name/value pairs are grouped by {} and separated by “,”. Multiple objects/sub-objects or name/value pairs make an array. An array is enclosed by [], and items inside are separated by “,”.

Syntax } { "name1": value1, "name2": value2, "name3": value3, [ {"sub_name1": value1_1}, {"sub_name2": value1_2} ], "name2": value2

A few tips for Building JSON Files Using a good editor to help you keep track of matches of {} and [] Paying attention to commas Often seen mistakes: Missing a comma in the middle of a list Having an extra comma after the last item If data contains hierarchy, building by layers, not by objects Validating your JSON data with online tools http://www.jsoneditoronline.org/

Exercise 4 Following the format of the flare.json file, create a JSON file based on the bookstore data for visualization Test a couple categories first Modify the codes so that Radio buttons are labeled as Revenue and Sales, respectively Clicking a radio button to resize the rectangles based on revenue and the number of books sold accordingly.