- To learn the basics of Observable Notebooks.
- To learn the basics of creating data visualizations using the Vega Lite framework.
- To obtain your personal data sets from online services.
- To load a dataset into an Observable Notebook that you create.
- To create a data visualization of a personal data set (or subset of the data set) in an Observable Notebook using the Vega Lite framework.
The overall objectives of this module are:
- To learn the basics of Observable Notebooks.
- To learn the basics of creating data visualizations using the Vega Lite framework.
- To obtain your personal data sets from online services.s
- To load a dataset into an Observable Notebook that you create.
- To create a data visualization of a personal data set (or subset of the data set) in an Observable Notebook using the Vega Lite framework.
To learn the basics of Observable Notebooks.
- What: Observable makes working with data more collaborative, approachable, interactive, and social — maybe even joyful.
- How:
- 类电子表格,由内置cell组成,可以在其中编辑文本、代码块等
- 并非从上到下运行,当引用值改变时自动更新
- Documentation
Getting started
There are some notebooks available to get you started:
- I recommend starting with the notebook A taste of Observable.
- The reactive model used by Observable can be confusing at first if you are used to other computational notebooks like Jupyter. So it is good to get yourself familiar with how Observable runs.
- A brief explanation of the motivation and philosophy behind Observable is provided in the Why Observable notebook.
- There is also a nice Observable Tutorial to get you started and get a grasp of the fundamental components.
- I highly recommend that you study the Introduction to data notebooks, which provides a nice overview of the different ways you can work with data in Observable (inline, attached files, databases, local files, etc).
- Of course there is the full documentation and an active forum that can be useful if you get stuck on something.
- You can also explore the huge collection of notebooks made by the community.
- A basic overview of the interactivity that can be implemented in Observable notebooks is found in the Interactivity in Observable notebook.
- In terms of interactivty I recommend using the lightweight interface components available in the Observable Inputs notebook. You find shortcuts to these components (and more) through the Snippets menu in the upper right hand corner.
To learn the basics of creating data visualizations using the Vega Lite framework.
Vega Lite is an open source data visualization framework
Uses a declarative language to build a wide range of interactive data visualizations “provide a high-level specification of what you want the visualization to include, in terms of data, graphical marks, and encoding channels, rather than having to specify how to implement the visualization in terms of for-loops, low-level drawing commands, etc.”
- Introduction to Vega-Lite
- Vega-Lite – A Grammar of Interactive Graphics
- Vega-Lite uses JavaScript Object Notation (JSON) as a stand-alone file format
To obtain your personal data sets from online services.
To load a dataset into an Observable Notebook that you create.
4种方式:
- inline - embedded in the notebook as code, for small amounts of data
- files - attached to the notebook, for medium amounts of data (e.g., CSV, SQLite)
- APIs - queried from a remote server, for programmatic access to data
- databases - via an Observable database client, for accessing SQL databases