Week 6 Lab - Vega-lite introduction and structure breakdown
Автор: SFU Data & Dialogue Lab
Загружено: 2026-02-06
Просмотров: 193
Описание:
In this tutorial, we explore the fundamentals of Vega and Vega-Lite and demonstrate how to integrate these visualizations directly into an HTML page. We break down the "onion-shaped" architecture of these libraries, explaining how high-level Vega-Lite JSON descriptions compile down to low-level Vega specifications, and ultimately render using SVG or HTML Canvas.
The session moves from theory to practice, walking through the necessary file setup (HTML, CSS, and JavaScript) and the required script libraries needed to run these visualizations in a browser. We cover three distinct methods for defining visualization specifications: using pure JavaScript, writing explicit JSON, and a hybrid approach that mixes both. Finally, we troubleshoot a common issue regarding tooltips and offer advice on balancing AI tools with hands-on coding for better learning.
00:00 - Introduction and Overview
00:41 - What is Vega-Lite? (Grammar of Interactive Graphics)
00:52 - The "Onion Structure": Vega-Lite vs. Vega
02:59 - The Rendering Core: SVG and HTML Canvas
03:42 - JavaScript Abstraction and Observable Context
06:01 - Project Setup: HTML, CSS, and JS Files
06:55 - Required Libraries and Script Tags
08:54 - Method 1: Pure JavaScript Specification (Bar Chart)
10:36 - Method 2: Explicit JSON Specification (Point Chart)
13:18 - Method 3: Hybrid Approach (Mixing JS and JSON)
15:13 - Customizing Tooltips and Troubleshooting
21:43 - Debugging Solution: Correct Syntax for Tooltips
22:46 - Best Practices: Using AI vs. Manual Coding
For more information visit
https://datadialogue.vercel.app/
https://github.com/mehdijahani1998/te...
#DataVisualization #OnePiece #Silksong #Politics #IntroToVisualization #designersuits
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: