Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add $schema to JSON specs #631

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion bin/prepare-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { parse } from 'yaml';
// - YAML, non-parsed JSON, and ESM code written to /docs/public/specs
// - Example Markdown pages written to /docs/examples

import pgk from '../packages/spec/package.json' with { type: "json" };
domoritz marked this conversation as resolved.
Show resolved Hide resolved

const specDir = join('specs', 'yaml');
const esmTestDir = join('specs', 'esm');
const jsonTestDir = join('specs', 'json');
Expand Down Expand Up @@ -49,7 +51,10 @@ const files = await Promise.allSettled((await readdir(specDir))
// write JSON spec to tests
writeFile(
resolve(jsonTestDir, `${base}.json`),
JSON.stringify(ast.toJSON(), 0, 2)
JSON.stringify({
$schema: `https://idl.uw.edu/mosaic/schema/v${pgk.version}.json`,
...ast.toJSON()
}, 0, 2)
),
// write TS JSON spec to tests
writeFile(
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
ecmaVersion: 2025,
sourceType: "module",
globals: {
...globals.browser,
Expand Down
1 change: 1 addition & 0 deletions specs/json/aeromagnetic-survey.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Aeromagnetic Survey",
"description": "A raster visualization of the 1955 [Great Britain aeromagnetic survey](https://www.bgs.ac.uk/datasets/gb-aeromagnetic-survey/), which measured the Earth’s magnetic field by plane. Each sample recorded the longitude and latitude alongside the strength of the [IGRF](https://www.ncei.noaa.gov/products/international-geomagnetic-reference-field) in [nanoteslas](https://en.wikipedia.org/wiki/Tesla_(unit)). This example demonstrates both raster interpolation and smoothing (blur) options.\n",
Expand Down
1 change: 1 addition & 0 deletions specs/json/airline-travelers.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Airline Travelers",
"description": "A labeled line chart comparing airport travelers in 2019 and 2020.",
Expand Down
1 change: 1 addition & 0 deletions specs/json/athlete-birth-waffle.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Athlete Birth Waffle",
"description": "Waffle chart counting Olympic athletes based on which half-decade they were born. The inputs enable adjustment of waffle mark design options.\n",
Expand Down
1 change: 1 addition & 0 deletions specs/json/athlete-height.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Athlete Height Intervals",
"description": "Confidence intervals of Olympic athlete heights, in meters. Data are batched into groups of 10 samples per sport. Use the samples slider to see how the intervals update as the sample size increases (as in [online aggregation](https://en.wikipedia.org/wiki/Online_aggregation)). For each sport, the numbers on the right show the maximum number of athletes in the full dataset.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/athletes.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Olympic Athletes",
"description": "An interactive dashboard of athlete statistics. The menus and searchbox filter the display and are automatically populated by backing data columns.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/axes.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Axes & Gridlines",
"description": "Customized axis and gridline marks can be used in addition to standard scale attributes such as `xAxis`, `yGrid`, etc. Just add data!\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/bias.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Bias Parameter",
"description": "Dynamically adjust queried values by adding a Param value. The SQL expression is re-computed in the database upon updates.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/contours.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Contour Plot",
"description": "Here `heatmap` and `contour` marks visualize the density of data points in a scatter plot of penguin measurments. Setting the `fill` color to `\"species\"` subdivides the data into three sets of densities.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/crossfilter.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"data": {
"flights": {
"type": "parquet",
Expand Down
1 change: 1 addition & 0 deletions specs/json/density-groups.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Density Groups",
"description": "Density plots of penguin bill depths, grouped by species. The normalize parameter supports different forms of comparison, controlling if an individual density estimate is scaled by total point mass or normalized by the sum or max of the point mass. The stack and offset parameters control stacking of density areas.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/density1d.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Density 1D",
"description": "Density plots (`densityY` mark) for over 200,000 flights, created using kernel density estimation. Binning is performned in-database, subsequent smoothing in-browser. The distance density uses a log-scaled domain. To change the amount of smoothing, use the slider to set the kernel bandwidth.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/density2d.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Density 2D",
"description": "A 2D `density` plot in which circle size indicates the point density. The data is divided by fill color into three sets of densities. To change the amount of smoothing, use the slider to set the kernel bandwidth.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/driving-shifts.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Driving Shifts into Reverse",
"description": "A connected scatter plot of miles driven vs. gas prices.",
Expand Down
1 change: 1 addition & 0 deletions specs/json/earthquakes-feed.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Earthquakes Feed",
"description": "Earthquake data from the USGS live feed. To show land masses, this example loads and parses TopoJSON data in the database. Requires the DuckDB `spatial` extension.\n",
Expand Down
1 change: 1 addition & 0 deletions specs/json/earthquakes-globe.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Earthquakes Globe",
"description": "A rotatable globe of earthquake activity. To show land masses, this example loads and parses TopoJSON data in the database. Requires the DuckDB `spatial` extension.\n",
Expand Down
1 change: 1 addition & 0 deletions specs/json/facet-interval.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Faceted Interval Selections",
"description": "A faceted plot with 2D interval selections.",
Expand Down
1 change: 1 addition & 0 deletions specs/json/flights-10m.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Cross-Filter Flights (10M)",
"description": "Histograms showing arrival delay, departure time, and distance flown for 10 million flights.\nOnce loaded, automatic pre-aggregation optimizations enable efficient cross-filtered selections.\n\n_You may need to wait a few seconds for the dataset to load._\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/flights-200k.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Cross-Filter Flights (200k)",
"description": "Histograms showing arrival delay, departure time, and distance flown for over 200,000 flights. Select a histogram region to cross-filter the charts. Each plot uses an `intervalX` interactor to populate a shared Selection with `crossfilter` resolution.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/flights-density.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Flights Density",
"description": "Density `heatmap` and `contour` lines for 200,000+ flights by departure hour and arrival delay. The sliders adjust the smoothing (bandwidth) and number of contour thresholds.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/flights-hexbin.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Flights Hexbin",
"description": "Hexagonal bins show the density of over 200,000 flights by departure time and arrival delay. Select regions in the marginal histograms to filter the density display.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/gaia.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Gaia Star Catalog",
"description": "A 5M row sample of the 1.8B element Gaia star catalog.\nA `raster` sky map reveals our Milky Way galaxy. Select high parallax stars in the histogram to reveal a\n[Hertzsprung-Russel diagram](https://en.wikipedia.org/wiki/Hertzsprung%E2%80%93Russell_diagram)\nin the plot of stellar color vs. magnitude on the right.\n\n_You may need to wait a few seconds for the dataset to load._\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/legends.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Legends",
"description": "Tests for different legend types and configurations. We test both legends defined within plots (with a zero-size frame) and external legends that reference a named plot.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/line-density.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Line Density",
"description": "The `denseLine` mark shows the densities of line series, here for a collection of stock prices. The top plot normalizes by arc length to remove the vertical artifacts visible in the unnormalized plot below. Select a region in the lower plot to zoom the upper plot. The bandwidth slider smooths the data, while the pixel size menu adjusts the raster resolution.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/line-multi-series.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Line Multi-Series",
"description": "This line chart shows the unemployment rate of various U.S. metro divisions from 2000 through 2013. On hover, the closest data point to the pointer and its associated series is highlighted. Highlighting of series is performed using `nearestX` and `highlight` interactors. Point and text annotations instead use the mark `select` filter option.\n",
Expand Down
1 change: 1 addition & 0 deletions specs/json/line.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"data": {
"aapl": {
"type": "parquet",
Expand Down
1 change: 1 addition & 0 deletions specs/json/linear-regression-10m.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Linear Regression 10M",
"description": "A linear regression plot predicting flight arrival delay based on the time of departure, over 10 million flight records. Regression computation is performed in the database, with optimized selection updates using pre-aggregated materialized views. The area around a regression line shows a 95% confidence interval. Select a region to view regression results for a data subset.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/linear-regression.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Linear Regression",
"description": "A linear regression plot predicting athletes' heights based on their weights. Regression computation is performed in the database. The area around a regression line shows a 95% confidence interval. Select a region to view regression results for a data subset.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/mark-types.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Mark Types",
"description": "A subset of supported mark types.\n\n- Row 1: `barY`, `lineY`, `text`, `tickY`, `areaY`\n- Row 2: `regressionY`, `hexbin`, `contour`, `heatmap`, `denseLine`\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/moving-average.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Moving Average",
"description": "This plot shows daily reported COVID-19 cases from March 3 (day 1) to May 5, 2020 (day 64) in Berlin, Germany, as reported by the [Robert Koch Institute](https://www.rki.de/DE/Content/InfAZ/N/Neuartiges_Coronavirus/nCoV.html). We can smooth the raw counts using a moving average over various choices of window query frames.\n",
Expand Down
1 change: 1 addition & 0 deletions specs/json/normalize.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Normalized Stock Prices",
"description": "What is the return on investment for different days? Hover over the chart to normalize the stock prices for the percentage return on a given day. A `nearestX` interactor selects the nearest date, and parameterized expressions reactively update in response.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/nyc-taxi-rides.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "NYC Taxi Rides",
"description": "Pickup and dropoff points for 1M NYC taxi rides on Jan 1-3, 2010.\nThis example projects lon/lat coordinates in the database upon load.\nSelect a region in one plot to filter the other.\nWhat spatial patterns can you find?\nRequires the DuckDB `spatial` extension.\n\n_You may need to wait a few seconds for the dataset to load._\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/observable-latency.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Observable Latency",
"description": "Web request latency on Observable.com.\nEach pixel in the heatmap shows the most common route (URL pattern) at a given response latency within a time interval.\nUse the bar chart of most-requested routes to filter the heatmap and isolate specific patterns.\nOr, select a range in the heatmap to show the corresponding most-requested routes.\n\n_You may need to wait a few seconds for the dataset to load._\n",
Expand Down
1 change: 1 addition & 0 deletions specs/json/overview-detail.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Overview + Detail",
"description": "Select the top \"overview\" series to zoom the \"focus\" view below. An `intervalX` interactor updates a selection that filters the focus view. The `line` and `area` marks can apply [M4](https://observablehq.com/@uwdata/m4-scalable-time-series-visualization) optimization to reduce the number of data points returned: rather than draw all points, a dramatically smaller subset can still faithfully represent these area charts.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/pan-zoom.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Pan & Zoom",
"description": "Linked panning and zooming across plots: drag to pan, scroll to zoom. `panZoom` interactors update a set of bound selections, one per unique axis.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/population-arrows.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Population Change Arrows",
"description": "An `arrow` connects the positions in 1980 and 2015 of each city on this population × inequality chart. Color encodes variation.\n",
Expand Down
1 change: 1 addition & 0 deletions specs/json/presidential-opinion.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Presidential Opinion",
"description": "Opinion poll data on historical U.S. presidents. Image marks are used to show presidential pictures. The dropdown menu toggles the opinion metric shown.\n",
Expand Down
1 change: 1 addition & 0 deletions specs/json/protein-design.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Protein Design Explorer",
"description": "Explore synthesized proteins generated via\n[RFDiffusion](https://www.bakerlab.org/2023/07/11/diffusion-model-for-protein-design/).\n\"Minibinders\" are small proteins that bind to a specific protein target.\nWhen designing a minibinder, a researcher inputs the structure of the\ntarget protein and other parameters into the AI diffusion model. Often, a\nsingle, promising (parent) _version_ can be run through the model again to\nproduce additional, similar designs to better sample the design space.\n\nThe pipeline generates tens of thousands of protein designs. The metric\n_pAE_ (predicted alignment error) measures how accurate a model was at\npredicting the minibinder shape, whereas _pLDDT_ (predicted local distance\ndifference test) measures a model's confidence in minibinder structure\nprediction. For _pAE_ lower is better, for _pLDDT_ higher is better.\n\nAdditional parameters include _partial t_ to set the time steps used by\nthe model, _noise_ to create more diversity of designs, _gradient decay\nfunction_ and _gradient scale_ to guide prioritizing different positions\nat different time points, and _movement_ to denote whether the minibinder\nwas left in its original position (\"og\") or moved to a desirable position\n(\"moved\").\n\nThe dashboard below enables exploration of the results to identify\npromising protein designs and assess the effects of process parameters.\n",
Expand Down
1 change: 1 addition & 0 deletions specs/json/region-tests.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Region Interactor Tests",
"descriptions": "Varied plots using region interactors to highlight selected values.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/seattle-temp.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Seattle Temperatures",
"description": "Historical monthly temperatures in Seattle, WA. The gray range shows the minimum and maximum recorded temperatures. The blue range shows the average lows and highs.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/sorted-bars.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Sorted Bars",
"description": "Sort and limit an aggregate bar chart of gold medals by country.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/splom.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Scatter Plot Matrix (SPLOM)",
"description": "A scatter plot matrix enables inspection of pairwise bivariate distributions. Do points cluster or separate in some dimensions but not others? Select a region to highlight corresponding points across all plots.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/symbols.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Symbol Plots",
"description": "Two scatter plots with `dot` marks: one with stroked symbols, the other filled. Drop-down menus control which data table columns are plotted.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/table.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Sortable Table",
"description": "A sortable, \"infinite scroll\" `table` view over a backing database table. Click column headers to sort, or command-click to reset the order. Data is queried as needed as the table is sorted or scrolled.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/unemployment.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "U.S. Unemployment",
"description": "A choropleth map of unemployment rates for U.S. counties. Requires the DuckDB `spatial` extension.\n",
Expand Down
1 change: 1 addition & 0 deletions specs/json/us-county-map.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "U.S. Counties",
"description": "A map of U.S. counties. County name tooltips are anchored to invisible centroid dot marks. Requires the DuckDB `spatial` extension.\n"
Expand Down
1 change: 1 addition & 0 deletions specs/json/us-state-map.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "U.S. States",
"description": "A map of U.S. states overlaid with computed centroids. Requires the DuckDB `spatial` extension.\n",
Expand Down
1 change: 1 addition & 0 deletions specs/json/voronoi.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Voronoi Diagram",
"description": "The `voronoi` mark shows the regions closest to each point. It is [constructed from its dual](https://observablehq.com/@mbostock/the-delaunays-dual), a Delaunay triangle mesh. Reveal triangulations or convex hulls using the dropdowns.\n",
Expand Down
1 change: 1 addition & 0 deletions specs/json/walmart-openings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Walmart Openings",
"description": "Maps showing Walmart store openings per decade. Requires the DuckDB `spatial` extension.\n",
Expand Down
1 change: 1 addition & 0 deletions specs/json/weather.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Seattle Weather",
"description": "An interactive view of Seattle's weather, including maximum temperature, amount of precipitation, and type of weather. By dragging on the scatter plot, you can see the proportion of days in that range that have sun, fog, drizzle, rain, or snow.\n",
Expand Down
1 change: 1 addition & 0 deletions specs/json/wind-map.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://idl.uw.edu/mosaic/schema/v0.12.2.json",
"meta": {
"title": "Wind Map",
"description": "`vector` marks on a grid show both direction and intensity—here, the speed of winds. Expressions for `rotate`, `length`, and `stroke` values are evaluated in the database. Both the legend and map support interactive selections to highlight values.\n",
Expand Down
Loading
Loading