Data Visualization (CIS/DSC 468)

Similar documents
Data Visualization (DSC 530/CIS )

Data Visualization (CIS 468)

Data Visualization (DSC 530/CIS )

Data Visualization (CIS 468)

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

ITNP43: HTML Lecture 4

Introduction to WEB PROGRAMMING

CSS.

CSS: The Basics CISC 282 September 20, 2014

Data Visualization (DSC 530/CIS )

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

2. Write style rules for how you d like certain elements to look.

Data Visualization (DSC 530/CIS )

CSS Cascading Style Sheets

INTRODUCTION TO CSS. Mohammad Jawad Kadhim

LING 408/508: Computational Techniques for Linguists. Lecture 14

Cascading Style Sheets Level 2

Programmazione Web a.a. 2017/2018 HTML5

Cascading Style Sheet

Introduction to using HTML to design webpages

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations

Web Design and Development ACS-1809

Understanding this structure is pretty straightforward, but nonetheless crucial to working with HTML, CSS, and JavaScript.

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors

CSS is applied to an existing HTML web document--both working in tandem to display web pages.

HTML & CSS November 19, 2014

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

COMS 359: Interactive Media

Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework

More about HTML. Digging in a little deeper

Client-Side Web Technologies. CSS Part I

HTML CS 4640 Programming Languages for Web Applications

CSS - Cascading Style Sheets

Block & Inline Elements

Html basics Course Outline

Assignments (4) Assessment as per Schedule (2)

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

To link to an external stylesheet, the link element is placed within the head of the html page:

S. Rinzivillo DATA VISUALIZATION AND VISUAL ANALYTICS

CSC 121 Computers and Scientific Thinking

CSC309 Programming on the Web week 3: css, rwd

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

Chapter 3 Style Sheets: CSS

ICT IGCSE Practical Revision Presentation Web Authoring

CSS worksheet. JMC 105 Drake University

HTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources

CSS Selectors. element selectors. .class selectors. #id selectors

CSS. Location, Inheritance & the Cascade. Copyright DevelopIntelligence LLC

CSS 1: Introduction. Chapter 3

CSS: Cascading Style Sheets

HTML and CSS COURSE SYLLABUS

Web Publishing Basics I

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

MODULE 2 HTML 5 FUNDAMENTALS. HyperText. > Douglas Engelbart ( )

CSS: Cascading Style Sheets

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

A Balanced Introduction to Computer Science, 3/E

The Benefits of CSS. Less work: Change look of the whole site with one edit

CSS Cascading Style Sheets

Markup Language SGML: Standard Generalized Markup Language. HyperText Markup Language (HTML) extensible Markup Language (XML) TeX LaTeX

Cascading Style Sheets (CSS)

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

CHAPTER 1: GETTING STARTED WITH HTML CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY)

CSS: Beyond the Code. Karen Perone Rodman Public Library.

Reading 2.2 Cascading Style Sheets

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

HTML/XML. HTML Continued Introduction to CSS

11. HTML5 and Future Web Application

INTRODUCTION TO CSS. Topics MODULE 5

WEBSI TE DESIGNING TRAINING

Final Exam Study Guide

.hedgehog { background-image: url(backyard.jpg); color: #ffff99; height: 6in; width: 12in; } .tube {

HTML/CSS. HTML review and extra CSS review CSS Color

Cascading Style Sheet. Styles as Tag Attributes. Syntax. <h1>: what font type/size is used? STYLE = SELECTOR {RULES} Attributes such as bgcolor

CS134 Web Site Design & Development. Quiz1

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

3. Each of these mark examples contains an error. a. <input name= country value= Your country here. /> b. <checkbox name= color value= teal />

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

CSS exercise - Part 1

What is a web site? Web editors Introduction to HTML (Hyper Text Markup Language)

Tizen Web UI Technologies (Tizen Ver. 2.3)

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

Fundamentals: Client/Server

Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes

BIM222 Internet Programming

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

Lab 4 CSS CISC1600, Spring 2012

IDM 221. Web Design I. IDM 221: Web Authoring I 1

Transcription:

Data Visualization (CIS/DSC 468) Web Programming Dr. David Koop

Definition of Visualization Computer-based visualization systems provide visual representations of datasets designed to help people carry out tasks more effectively. T. Munzner 2

Why Visual? y 1 12 10 8 6 4 y 2 12 10 8 6 4 4 6 8 10 12 14 16 18 4 6 8 10 12 14 16 18 x 1 x 2 12 12 y 3 10 8 6 y 4 10 8 6 4 4 4 6 8 10 12 14 16 18 x 3 4 6 8 10 12 14 16 18 x 4 [F. J. Anscombe] 3

What are the limitations of visualization? 4

Design Iteration http://kpq.github.io/chartsnthings/2013/09/19-sketches-of-quarterback-timelines.html 5

Design Iteration http://kpq.github.io/chartsnthings/2013/09/19-sketches-of-quarterback-timelines.html 6

Design Iteration http://kpq.github.io/chartsnthings/2013/09/19-sketches-of-quarterback-timelines.html 7

Effectiveness [S. Hayward, 2015] 8

Effectiveness [S. Hayward, 2015] 9

Administrivia Course Web Site Syllabus page on course web site - Please review! Textbook - Munzner (required) - Murray (available online) Assignments Exams (2 + Final, 3 Total) Registration - Add/Drop Deadline Today 10

How do we create modern visualizations? 11

Tools Desktop Applications: - Excel (see excelcharts.com) - Tableau - Programming Frameworks - Processing - OpenFrameworks - d3.js - Advantages and disadvantages - Speed, customization, control, data, audience 12

d3.js Overview Examples Documentation Source Data-Driven Documents D3.js is a JavaScript library for manipulating documents based on data. D3 helps you bring data to life using HTML, SVG, and CSS. D3 s emphasis on web standards gives you the full capabilities of modern browsers without tying yourself to a proprietary framework, combining powerful visualization See more examples. components and a data-driven approach to DOM manipulation. 13

Web Programming Tools Basic: Text editor and Modern Browser Developer Tools: Built in to browsers Web Environments: JSFiddle, Liveweave, CodePen, etc. IDEs: WebStorm, etc. 14

What languages do we use on the Web? 15

Languages of the Web HTML CSS SVG JavaScript - Versions of Javascript: ES6, ES2015, ES2017 - Specific frameworks: react, jquery, bootstrap, 16

What is HTML? 17

Hyper Text Markup Language (HTML) Markup languages allow users to encode the semantics of text Tags define the boundaries of the structures of the content - Tags are enclosed in angle brackets (e.g. <html>) - Most of the time, you have a start and end tag - End tags are just like start tags except that they have forward slash after the open bracket (e.g. </html>) - Tags may be nested but not mismatched <p>a <strong><em>very</em></strong> cool example</p> <p>a <strong>very <em>cool</strong></em> example</p> - What about <img src= mypicture.png alt= My Image >? 18

HTML Elements and Attributes Tags denote elements of the content (e.g. sections, paragraphs, images) Each element may have attributes which define other information about the element - An attribute has a key and value (key= value ) - e.g. <img src= mypicture.png alt= My Image > Many different elements available - Common: headers (h1,, h6), paragraph (p), lists (ul, ol, li), emphasis (em, strong), link (a), spans & divisions (span, div) - Lots more (e.g. abbr): see MDN Documentation Many different attributes available - See MDN Documentation: note that some are legacy due to CSS 19

HTML Element Structure & Naming Elements structure a document - Document Object Model (DOM) - We can visualize this information - More importantly, we can navigate this tree Identifying and Classifying elements: id and class attributes - id identifies a single element use for a unique case - class may identify multiple elements use for common cases - Each element may have multiple classes, separate by spaces - Use normal identifiers: don t start the name with a number 20

Other HTML Trivia <, >, &, and " are special characters, escape with <, >, &, and " (note the semi-colon) Comments are enclosed by <!-- and --> - <!-- This is a comment --> HTML Documents begin with a DOCTYPE declaration - For HTML5, this is easier <!DOCTYPE html> meta tag: <meta charset="utf-8"/> HTML has audio and video tags, math equation support, and more 21

Basic HTML File <!DOCTYPE html> <html> <head> <title>a Basic Web Page</title> </head> <body> <h1>my Wicked Awesome Web Page</h1> <p><em>this is <strong>cool</strong>. What about <u><strong>this?</strong></u></em></p> <img src="patriots.jpg"/> </body> </html> 22

What is CSS? 23

Cascading Style Sheets (CSS) Separate from content, just specifies how to style the content Style information can appear in three places: - External file - In a style element at the beginning of the HTML file - In a specific element in the body of a document (least preferable) Why Cascading? - Don t want to have to specify everything over and over - Often want to use the same characteristics in a region of the DOM - Use inheritance: properties that apply to children cascade down 24

CSS Selectors How do we specify what part(s) of the page we want to style? The element types themselves (the HTML tag) - strong { color: red; } Classes of elements (ties to HTML class attribute) -.cool { color: blue; } A specific element (ties to HTML id attribute) - #main-section { color: green; } Relationships - Descendant: p em { color: yellow; } - Child: p > em { color: orange; } Pseudo-classes: a:hover { color: purple; } 25

Other CSS Bits Comments: /* This is a comment in CSS */ Grouping Selectors: p, li { font-size: 12pt; } Multiple Classes:.cool.temp { color: blue; } Colors: - Names (Level 1, 2, & 3): red, orange, antiquewhite - Dash notation (3- & 6-character): #fff, #00ff00 - Integer or % RGB and HSL Functions: rgb( 255, 0, 0), rgb(50%, 50%, 0%), hsl(120, 100% 50%) - Also background-color Watch out for multiple rules (look at how a web browser parses) Again, much more documentation at MDN 26

Sample CSS body { font-face: sans-serif; font-size: 12pt; } em { color: green; } em u { color: red; } em > strong { color: blue; } img { border: 4px solid red; } What colors are displayed for this HTML (with the above stylesheet)? - <em>this is <strong>cool</strong>. What about <u><strong>this?</strong></u></em> 27

How to add CSS to HTML External: a separate file via a link element (in the <head> section): - <link rel= stylesheet href= styles.css > Embedded: in the header: - <style type= text/css > </style> Inline: for a specific element: (Discouraged!) - <p style= font-weight: bold; >Some text</p> 28