Datasets:
Store tables as Parquet
Browse filesFiles changed (18)
- README.md+32-142
- analysis/main/error-analysis/report.md+1-1
- generations/constructors.jsonlDeleted
- generations/main.jsonl → generations/constructors.parquetRenamed+2-2
- generations/docs_fix.jsonlDeleted
- generations/docs_fix.parquetAdded+3
- generations/familiarity.jsonlDeleted
- generations/familiarity.parquetAdded+3
- generations/generations.csvDeleted
- generations/main.parquetAdded+3
- generations/turns.jsonlDeleted
- generations/turns.parquetAdded+3
- judging/human/rater-1.jsonlDeleted-180
- judging/human/sample.jsonlDeleted
- judging/judge-ratings.jsonlDeleted
- pilot/runs.jsonlDeleted
- pilot/tasks.jsonlDeleted-5
- tasks/tasks.jsonlDeleted
20 unmodified lines2122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917026 unmodified lines19719819920020120220320420520620720820921021162 unmodified lines2742752762772782792804 unmodified lines28528628728828929029175 unmodified lines3673683693703713723733743753764 unmodified lines38138238338438538638731 unmodified lines4194204214224234244251 unmodified line42742842943043143243345 unmodified lines4794804814824834844858 unmodified lines49449549649749849950050150250350450550650750820 unmodified linesdefault: truedata_files:- split: mainpath: generations/main.jsonl- split: docs_fixpath: generations/docs_fix.jsonl- split: familiaritypath: generations/familiarity.jsonl- split: constructorspath: generations/constructors.jsonl- split: turnspath: generations/turns.jsonl- config_name: tasksdata_files:- split: taskspath: tasks/tasks.jsonl- config_name: judge_ratingsdata_files:- split: stagespath: judging/judge-ratings.jsonl- config_name: human_sampledata_files:- split: samplepath: judging/human/sample.jsonl- config_name: human_ratingsdata_files:- split: rater_1path: judging/human/rater-1.jsonl- config_name: pilotdata_files:- split: runspath: pilot/runs.jsonldataset_info:- config_name: generationsfeatures:- name: iddtype: string- name: studydtype: string- name: source_dirdtype: string- name: grammardtype: string- name: task_iddtype: string- name: modeldtype: string- name: providerdtype: string- name: in_cohortdtype: bool- name: interfacedtype: string- name: variantdtype: string- name: formatdtype: string- name: granularitydtype: string- name: docsdtype: string- name: docs_versiondtype: string- name: hintsdtype: bool- name: repetitiondtype: int64- name: in_interface_mapdtype: bool- name: infrastructure_failuredtype: bool- name: failure_classdtype: string- name: first_validdtype: bool- name: first_nonblankdtype: bool- name: first_task_scoredtype: float64- name: first_judge_ratingdtype: int64- name: first_qualitydtype: float64- name: final_validdtype: bool- name: final_nonblankdtype: bool- name: final_croppeddtype: bool- name: final_task_scoredtype: float64- name: final_judge_ratingdtype: int64- name: final_qualitydtype: float64- name: first_second_judge_ratingdtype: int64- name: final_second_judge_ratingdtype: int64- name: substitutionssequence: string- name: usage_censoreddtype: bool- name: input_tokensdtype: int64- name: output_tokensdtype: int64- name: total_tokensdtype: int64- name: reasoning_tokensdtype: int64- name: cache_read_tokensdtype: int64- name: cost_usddtype: float64- name: charged_usddtype: float64- name: run_secondsdtype: float64- name: run_seconds_with_renderdtype: float64- name: model_secondsdtype: float64- name: stepsdtype: int64- name: step_cap_reacheddtype: bool- name: submissionsdtype: int64- name: rejected_submissionsdtype: int64- name: repairsdtype: int64- name: validator_messagesdtype: int64- name: malformed_tool_callsdtype: int64- name: constructor_callsdtype: int64- name: constructor_failuresdtype: int64- name: lookupsdtype: int64- name: final_specdtype: string- name: final_codedtype: string---# Code vs Tools: How LLM Agents Author Large Visualization Specs26 unmodified lines|---|---:|---:|| `analysis/` | 34 | 3.8 MB || `configs/` | 19 | 1.1 MB || `generations/` | 6 | 31.8 MB || `interfaces/` | 101 | 4.5 MB || `judging/` | 213 | 13.3 MB || `pilot/` | 8 | 3.8 MB || `tasks/` | 28 | 0.6 MB || `transcripts/` | 14 | 45.3 MB |```generations/ one row per generation, one file per study (+ one CSV of all scalar columns)transcripts/ the harness's full record of each generation, keyed by `id`tasks/ the 24 tasks (8 per grammar), reference renders, source licensesinterfaces/ the docs and tool descriptions each interface showed, hint tables, example request bodies62 unmodified lines|---|---|---|---|| Setup: 3,840 cohort generations | `main`, `in_cohort` | | `analysis/main/report.md` || Judge validation: second judge, 93.7% agreement, κ 0.89 | `main` | `first_/final_judge_rating`, `first_/final_second_judge_rating` | `judging/second-judge/report.{md,json}` || Judge validation: rater 1 κ 0.72 [0.65, 0.79] | `judging/human/sample.jsonl`, `rater-1.jsonl` | `primary_judge_rating`, `rating` | `judging/human/agreement.{md,json}` || R1: code − JSON with full docs, −0.007 / −0.004 / −0.005 | `docs_fix`, `in_cohort` | `interface` `json-complete` vs `code-complete`, `final_quality` | `analysis/docs-fix/<grammar>/analysis.json` (`contrasts`, plan `json-vs-code:complete`, scope `pooled`, side `fixed`) || R1: code first seemed to win on GenomeSpy (+0.084) | `main`, GenomeSpy (sealed docs) | same | same file, side `sealed`; printer bugs in `analysis/docs-fix/type-check/` || R2: JSON constructors 1.5M tokens, $0.25, 65 s; whole spec 22–87k, $0.03–0.04, 20–33 s | `main` + `docs_fix`, `in_interface_map` | `total_tokens`, `cost_usd`, `run_seconds` | `analysis/interface-map/map.json` (`defaults`) |4 unmodified lines| R4: index cuts tokens 2.3–2.4× against full docs | `main` (index groups) and `docs_fix` (full docs), `in_interface_map` | `docs`, `total_tokens` | `analysis/interface-map/map.json` (`defaults`: `*-complete` vs `*-complete-index`) || R4: on GenomeSpy the index alone loses (−0.14 JSON, −0.16 code) | `docs_fix` (full docs) vs `main` (index), `in_cohort` | `final_quality` | `analysis/docs-fix/genomespy/analysis.json` (`contrasts`, plan `documentation-2x2:literal`, side `fixed`) || R4: hints (GenomeSpy +0.13 JSON, +0.17 code; Gosling JSON −0.05) | `main` | `interface` `*-complete-index` vs `*-complete-index-hints` | `analysis/main/analysis.json` (plan `error-hints:compact`) || R4: collecting every validation error (+9.8 points, 2.4× fewer tokens) | `pilot/runs.jsonl`, `arm` `code-stop-at-first-error` vs `code-collect-errors`, `measures_the_cell` | `reproduced`, `total_tokens` | `analysis/pilot-collect-errors/report.txt` || R5: no-docs first-try quality 0.87 / 0.61 / 0.23 (six models) | `familiarity` | `first_quality` | `analysis/familiarity/report.md` || R5: ρ −0.81 between no-docs quality and best − worst spread; \|ρ\| ≤ 0.27 for which interface wins | `familiarity` and `in_interface_map` rows | per-cell means | `analysis/interface-map/map.json` (`map`, `correlations`) || R6 / Table 2: shortfall from each pair's best, tokens, cost, time | `main` + `docs_fix`, `in_interface_map` (18 grammar × model pairs, 10 interfaces) | per-cell `final_quality`, `total_tokens`, `cost_usd`, `run_seconds` | `analysis/interface-map/map.json` (`defaults`), `report.md`, `map.html` |75 unmodified linesreturning every validation error of a program at once, instead of stopping atthe first, raised visual reproduction by 9.8 points and used 2.4× fewertokens. The pilot asked the agent to edit a chart to match a target, on fivetasks of increasing size (`rung` 1–5, `pilot/tasks.jsonl`), 3 repetitions permodel, task, and arm.- `runs.jsonl`: one row per run (660). `arm` is `code-stop-at-first-error`,`code-collect-errors` (both with factory constructors),`code-collect-errors-literal` (literal objects), or`tools-stop-at-first-error` (one tool per edit). `reproduced` is the4 unmodified linesrun. `spec_score` is a secondary spec-distance score. `final_state` is thefinal spec.- `records.jsonl.gz`: the harness's full record of each run, keyed by `id`.- `tasks.jsonl` and `references/`: prompts, starting and reference specs,and reference renders.## How quality is scored31 unmodified lines## Column dictionaries### `generations/*.jsonl` (and `generations.csv`, without `final_spec` and `final_code`)| Column | Meaning ||---|---|1 unmodified line| `study` | `main`, `docs_fix`, `familiarity`, `constructors`, `turns` || `source_dir` | Results directory in the authors' archive the row came from || `grammar` | `vega-lite`, `gosling`, `genomespy` || `task_id` | Task, see `tasks/tasks.jsonl` || `model`, `provider` | Model setting and API provider || `in_cohort` | One of the five cohort settings (not DeepSeek) || `interface` | Interface (group) name as the analyses use it, e.g. `code-complete-index-hints` |45 unmodified linesmodel on the first task; `interfaces/<grammar>/documents/` has eachinterface's docs.### `tasks/tasks.jsonl``grammar`, `task_id`, `position`, `prompt`, `data_json` (rows the modelreceived), `field_semantics_json`, `requirements`, `visual_checks` (shown to8 unmodified lines- `rubric.md`: judge system prompt, response schema, user message template,and the quality formula.- `judge-ratings.jsonl`: per `id` and `stage`: `judge_rating`, `source`(`judge`, `reused` for an identical render judged once, `rule` for invalidor blank, `supplement`), `reused_from`, `differences`, `rationale`.- `second-judge/`: GPT-6.1 Sol (medium) on every judged `main` cohort stage.- `human/sample.jsonl`: 180 stages sampled by grammar × primary rating(`stratum_weight` reweights to all judged stages), with the judge's text andboth images in `human/images/`. `rater-1.jsonl`: one rater's blind ratings(`item_id`, `rating`, `notes`). Raters are anonymous. **Rater 2's ratings arepending**; they will be added as `human/rater-2.jsonl`, with human–humanagreement in `agreement.{md,json}`.## Citation20 unmodified lines212223242526272829303132333435363738394041424344454647484950515253545526 unmodified lines82838485868788899091929394959697989910010162 unmodified lines1641651661671681691704 unmodified lines17517617717817918018175 unmodified lines2572582592602612622632642652664 unmodified lines27127227327427527627731 unmodified lines3093103113123133143151 unmodified line31731831932032132232345 unmodified lines3693703713723733743758 unmodified lines38438538638738838939039139239339439539639739820 unmodified linesdefault: truedata_files:- split: mainpath: generations/main.parquet- split: docs_fixpath: generations/docs_fix.parquet- split: familiaritypath: generations/familiarity.parquet- split: constructorspath: generations/constructors.parquet- split: turnspath: generations/turns.parquet- config_name: tasksdata_files:- split: taskspath: tasks/tasks.parquet- config_name: judge_ratingsdata_files:- split: stagespath: judging/judge-ratings.parquet- config_name: human_sampledata_files:- split: samplepath: judging/human/sample.parquet- config_name: human_ratingsdata_files:- split: rater_1path: judging/human/rater-1.parquet- config_name: pilotdata_files:- split: runspath: pilot/runs.parquet---# Code vs Tools: How LLM Agents Author Large Visualization Specs26 unmodified lines|---|---:|---:|| `analysis/` | 34 | 3.8 MB || `configs/` | 19 | 1.1 MB || `generations/` | 5 | 1.5 MB || `interfaces/` | 101 | 4.5 MB || `judging/` | 213 | 4.9 MB || `pilot/` | 8 | 1.2 MB || `tasks/` | 28 | 0.4 MB || `transcripts/` | 14 | 45.3 MB |Tables are Parquet, for example `pd.read_parquet` or`load_dataset(..., "generations", split="main")`. Specs, programs, and othernested values are JSON strings. The full records (`transcripts/`, thepilot's `records.jsonl.gz`, example requests) are gzipped JSON Lines.```generations/ one row per generation, one Parquet file per studytranscripts/ the harness's full record of each generation, keyed by `id`tasks/ the 24 tasks (8 per grammar), reference renders, source licensesinterfaces/ the docs and tool descriptions each interface showed, hint tables, example request bodies62 unmodified lines|---|---|---|---|| Setup: 3,840 cohort generations | `main`, `in_cohort` | | `analysis/main/report.md` || Judge validation: second judge, 93.7% agreement, κ 0.89 | `main` | `first_/final_judge_rating`, `first_/final_second_judge_rating` | `judging/second-judge/report.{md,json}` || Judge validation: rater 1 κ 0.72 [0.65, 0.79] | `judging/human/sample.parquet`, `rater-1.parquet` | `primary_judge_rating`, `rating` | `judging/human/agreement.{md,json}` || R1: code − JSON with full docs, −0.007 / −0.004 / −0.005 | `docs_fix`, `in_cohort` | `interface` `json-complete` vs `code-complete`, `final_quality` | `analysis/docs-fix/<grammar>/analysis.json` (`contrasts`, plan `json-vs-code:complete`, scope `pooled`, side `fixed`) || R1: code first seemed to win on GenomeSpy (+0.084) | `main`, GenomeSpy (sealed docs) | same | same file, side `sealed`; printer bugs in `analysis/docs-fix/type-check/` || R2: JSON constructors 1.5M tokens, $0.25, 65 s; whole spec 22–87k, $0.03–0.04, 20–33 s | `main` + `docs_fix`, `in_interface_map` | `total_tokens`, `cost_usd`, `run_seconds` | `analysis/interface-map/map.json` (`defaults`) |4 unmodified lines| R4: index cuts tokens 2.3–2.4× against full docs | `main` (index groups) and `docs_fix` (full docs), `in_interface_map` | `docs`, `total_tokens` | `analysis/interface-map/map.json` (`defaults`: `*-complete` vs `*-complete-index`) || R4: on GenomeSpy the index alone loses (−0.14 JSON, −0.16 code) | `docs_fix` (full docs) vs `main` (index), `in_cohort` | `final_quality` | `analysis/docs-fix/genomespy/analysis.json` (`contrasts`, plan `documentation-2x2:literal`, side `fixed`) || R4: hints (GenomeSpy +0.13 JSON, +0.17 code; Gosling JSON −0.05) | `main` | `interface` `*-complete-index` vs `*-complete-index-hints` | `analysis/main/analysis.json` (plan `error-hints:compact`) || R4: collecting every validation error (+9.8 points, 2.4× fewer tokens) | `pilot/runs.parquet`, `arm` `code-stop-at-first-error` vs `code-collect-errors`, `measures_the_cell` | `reproduced`, `total_tokens` | `analysis/pilot-collect-errors/report.txt` || R5: no-docs first-try quality 0.87 / 0.61 / 0.23 (six models) | `familiarity` | `first_quality` | `analysis/familiarity/report.md` || R5: ρ −0.81 between no-docs quality and best − worst spread; \|ρ\| ≤ 0.27 for which interface wins | `familiarity` and `in_interface_map` rows | per-cell means | `analysis/interface-map/map.json` (`map`, `correlations`) || R6 / Table 2: shortfall from each pair's best, tokens, cost, time | `main` + `docs_fix`, `in_interface_map` (18 grammar × model pairs, 10 interfaces) | per-cell `final_quality`, `total_tokens`, `cost_usd`, `run_seconds` | `analysis/interface-map/map.json` (`defaults`), `report.md`, `map.html` |75 unmodified linesreturning every validation error of a program at once, instead of stopping atthe first, raised visual reproduction by 9.8 points and used 2.4× fewertokens. The pilot asked the agent to edit a chart to match a target, on fivetasks of increasing size (`rung` 1–5, `pilot/tasks.parquet`), 3 repetitions permodel, task, and arm.- `runs.parquet`: one row per run (660). `arm` is `code-stop-at-first-error`,`code-collect-errors` (both with factory constructors),`code-collect-errors-literal` (literal objects), or`tools-stop-at-first-error` (one tool per edit). `reproduced` is the4 unmodified linesrun. `spec_score` is a secondary spec-distance score. `final_state` is thefinal spec.- `records.jsonl.gz`: the harness's full record of each run, keyed by `id`.- `tasks.parquet` and `references/`: prompts, starting and reference specs,and reference renders.## How quality is scored31 unmodified lines## Column dictionaries### `generations/*.parquet`| Column | Meaning ||---|---|1 unmodified line| `study` | `main`, `docs_fix`, `familiarity`, `constructors`, `turns` || `source_dir` | Results directory in the authors' archive the row came from || `grammar` | `vega-lite`, `gosling`, `genomespy` || `task_id` | Task, see `tasks/tasks.parquet` || `model`, `provider` | Model setting and API provider || `in_cohort` | One of the five cohort settings (not DeepSeek) || `interface` | Interface (group) name as the analyses use it, e.g. `code-complete-index-hints` |45 unmodified linesmodel on the first task; `interfaces/<grammar>/documents/` has eachinterface's docs.### `tasks/tasks.parquet``grammar`, `task_id`, `position`, `prompt`, `data_json` (rows the modelreceived), `field_semantics_json`, `requirements`, `visual_checks` (shown to8 unmodified lines- `rubric.md`: judge system prompt, response schema, user message template,and the quality formula.- `judge-ratings.parquet`: per `id` and `stage`: `judge_rating`, `source`(`judge`, `reused` for an identical render judged once, `rule` for invalidor blank, `supplement`), `reused_from`, `differences`, `rationale`.- `second-judge/`: GPT-6.1 Sol (medium) on every judged `main` cohort stage.- `human/sample.parquet`: 180 stages sampled by grammar × primary rating(`stratum_weight` reweights to all judged stages), with the judge's text andboth images in `human/images/`. `rater-1.parquet`: one rater's blind ratings(`item_id`, `rating`, `notes`). Raters are anonymous. **Rater 2's ratings arepending**; they will be added as `human/rater-2.parquet`, with human–humanagreement in `agreement.{md,json}`.## Citation
356 unmodified lines357358359360361362363356 unmodified lines## 3. The human-rated sampleThe 180 stages rated by one person (`judging/human/rater-1.jsonl`) are first and final stages from the sealed batches (so `json-complete` and `code-complete` use the sealed docs, and Flint groups are included), all rendered and judged; invalid and blank stages were never in the sample. 76 were rated below 3. The judge’s differences for those stages, sorted with the same rules (no rater notes were recorded):| Human rating | Items | Judge categories ||---|---|---|356 unmodified lines357358359360361362363356 unmodified lines## 3. The human-rated sampleThe 180 stages rated by one person (`judging/human/rater-1.parquet`) are first and final stages from the sealed batches (so `json-complete` and `code-complete` use the sealed docs, and Flint groups are included), all rendered and judged; invalid and blank stages were never in the sample. 76 were rated below 3. The judge’s differences for those stages, sorted with the same rules (no rater notes were recorded):| Human rating | Items | Judge categories ||---|---|---|
123version https://git-lfs.github.com/spec/v1oid sha256:c6177e549f9f5190c74174a863c6b5570a904d65f262dca6d9eaaecfd640ecfasize 21035209123version https://git-lfs.github.com/spec/v1oid sha256:bb942794d3cdb0a046f64bb2d5a14e6cbb60d1076a6000d1894e447ebc657c93size 116901
123version https://git-lfs.github.com/spec/v1oid sha256:68258e6d640fefb7fa290f4d1247a8dd9de51db9f8c2491c8b9588488050b797size 268074123version https://git-lfs.github.com/spec/v1oid sha256:6cadb2ac2888430a2c601e292d53e84bab7d531ccf0f9b44d2d3967aab8bb744size 87992123version https://git-lfs.github.com/spec/v1oid sha256:a2b6105f42580cefd8856924ca4a3e0ed7cc57094f0aabdbd1ca8c214b46684csize 959104123version https://git-lfs.github.com/spec/v1oid sha256:0e5b77610e72016adbfa9ea2471c8b5a85376837cc470a7ad7a5ef7946879558size 29462123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180{"item_id":"2ba40800fea4","rating":3,"notes":""}{"item_id":"583865332b5c","rating":1,"notes":""}{"item_id":"bda88ccc2860","rating":1,"notes":""}{"item_id":"a0a610866efa","rating":3,"notes":""}{"item_id":"c5b99987c690","rating":3,"notes":""}{"item_id":"b8b7789477a3","rating":1,"notes":""}{"item_id":"aabdb23e7392","rating":1,"notes":""}{"item_id":"dddb4e993951","rating":3,"notes":""}{"item_id":"cf07ff9e7c98","rating":1,"notes":""}{"item_id":"a5a3d33a987a","rating":3,"notes":""}{"item_id":"fd54b5da200f","rating":2,"notes":""}{"item_id":"82258225c239","rating":3,"notes":""}{"item_id":"ea38106e1e8f","rating":3,"notes":""}{"item_id":"7f385be71911","rating":3,"notes":""}{"item_id":"596d9be97934","rating":1,"notes":""}{"item_id":"5b0e8c232d63","rating":3,"notes":""}{"item_id":"34f63bb5f1dd","rating":3,"notes":""}{"item_id":"288230776cdb","rating":1,"notes":""}{"item_id":"a640c1fb0666","rating":3,"notes":""}{"item_id":"abfdff917fd3","rating":3,"notes":""}{"item_id":"addd3744b729","rating":3,"notes":""}{"item_id":"6d7dbcffa5ce","rating":3,"notes":""}{"item_id":"6905b1708b00","rating":2,"notes":""}{"item_id":"f5d30a84b19f","rating":3,"notes":""}{"item_id":"71c74fcc42a7","rating":1,"notes":""}{"item_id":"331d5cd40b57","rating":3,"notes":""}{"item_id":"cf21178f7f6d","rating":1,"notes":""}{"item_id":"090c43f4435b","rating":1,"notes":""}{"item_id":"241e1d326083","rating":2,"notes":""}{"item_id":"df9e7f05644a","rating":2,"notes":""}{"item_id":"cb698ca60f54","rating":3,"notes":""}{"item_id":"29b85df633d9","rating":3,"notes":""}{"item_id":"50c6f256a509","rating":1,"notes":""}{"item_id":"0b0a6fee3a81","rating":2,"notes":""}{"item_id":"b89860e7f4b7","rating":3,"notes":""}{"item_id":"1df51508346e","rating":2,"notes":""}{"item_id":"8468577d1b96","rating":1,"notes":""}{"item_id":"5c553e581024","rating":2,"notes":""}{"item_id":"ea2d5c45c5b8","rating":2,"notes":""}{"item_id":"fbbaaf9886af","rating":3,"notes":""}{"item_id":"66402f49ac3e","rating":3,"notes":""}{"item_id":"47f0262dfa4c","rating":3,"notes":""}{"item_id":"531cab04c4dd","rating":3,"notes":""}{"item_id":"e242a49624e4","rating":3,"notes":""}{"item_id":"a51a86bf9216","rating":1,"notes":""}{"item_id":"923800213272","rating":3,"notes":""}{"item_id":"20d4c815dde7","rating":3,"notes":""}{"item_id":"f4308adbafb3","rating":3,"notes":""}{"item_id":"5043f6fb436f","rating":1,"notes":""}{"item_id":"6299bd6c13db","rating":3,"notes":""}{"item_id":"400fc7df562d","rating":1,"notes":""}{"item_id":"44f370f05e9c","rating":3,"notes":""}{"item_id":"cd3a6b50071c","rating":1,"notes":""}{"item_id":"fbb968ee9c72","rating":3,"notes":""}{"item_id":"fcfcbf0a14e1","rating":3,"notes":""}{"item_id":"4a86e1846577","rating":3,"notes":""}{"item_id":"4bdb4d04f909","rating":3,"notes":""}{"item_id":"4b17a0baf96f","rating":2,"notes":""}{"item_id":"22a3ba173928","rating":1,"notes":""}{"item_id":"9c70f4a8dbf4","rating":3,"notes":""}{"item_id":"4be05f04ab48","rating":1,"notes":""}{"item_id":"74008d199fba","rating":2,"notes":""}{"item_id":"66fa69211eb6","rating":3,"notes":""}{"item_id":"a2d375063b54","rating":3,"notes":""}{"item_id":"2357d3f3e877","rating":1,"notes":""}{"item_id":"8e6295972086","rating":3,"notes":""}{"item_id":"8e9c5d3d6ac6","rating":3,"notes":""}{"item_id":"1d6b61a3dacd","rating":3,"notes":""}{"item_id":"8eceec61e5d1","rating":2,"notes":""}{"item_id":"64d83bc8f1e5","rating":3,"notes":""}{"item_id":"d75bd12b6e11","rating":3,"notes":""}{"item_id":"1acbffc6e458","rating":3,"notes":""}{"item_id":"a04f5abf291e","rating":2,"notes":""}{"item_id":"f18dacd42f39","rating":1,"notes":""}{"item_id":"1d9f1eded05f","rating":2,"notes":""}{"item_id":"3f7ddb09bddd","rating":3,"notes":""}{"item_id":"4d89ad7f66b0","rating":3,"notes":""}{"item_id":"2a53786bdb82","rating":1,"notes":""}{"item_id":"87d9d2eec6f2","rating":3,"notes":""}{"item_id":"a0c2e12145fb","rating":3,"notes":""}{"item_id":"645cdf1a7fcf","rating":1,"notes":""}{"item_id":"ea4d4e70aa69","rating":2,"notes":""}{"item_id":"ccf713649b95","rating":3,"notes":""}{"item_id":"4e3a613a80b5","rating":3,"notes":""}{"item_id":"d7430c88d15c","rating":3,"notes":""}{"item_id":"1be0078a9a86","rating":3,"notes":""}{"item_id":"901540006aa7","rating":2,"notes":""}{"item_id":"989fedd0fa08","rating":1,"notes":""}{"item_id":"73881aceb973","rating":3,"notes":""}{"item_id":"d0b61c3cc726","rating":1,"notes":""}{"item_id":"777e98587e1e","rating":2,"notes":""}{"item_id":"4c1f4fcd1771","rating":2,"notes":""}{"item_id":"63d4da0ae2fe","rating":3,"notes":""}{"item_id":"804f5b704dcf","rating":3,"notes":""}{"item_id":"f70a770f5a76","rating":3,"notes":""}{"item_id":"9c0eecb42b56","rating":1,"notes":""}{"item_id":"db7cfdc93627","rating":1,"notes":""}{"item_id":"bc900fde2cb9","rating":3,"notes":""}{"item_id":"a8ff66fabe0c","rating":1,"notes":""}{"item_id":"101b2006032b","rating":2,"notes":""}{"item_id":"0a4b60697983","rating":3,"notes":""}{"item_id":"c645626853e3","rating":2,"notes":""}{"item_id":"d6672fc46dc7","rating":3,"notes":""}{"item_id":"5269113e85fe","rating":1,"notes":""}{"item_id":"c941830d4e50","rating":3,"notes":""}{"item_id":"1a72746a045e","rating":1,"notes":""}{"item_id":"b3268ff9f839","rating":3,"notes":""}{"item_id":"f6eb5d6fdf84","rating":2,"notes":""}{"item_id":"3b09b6afa496","rating":1,"notes":""}{"item_id":"883a0c6bc27a","rating":3,"notes":""}{"item_id":"97dac4e340e3","rating":3,"notes":""}{"item_id":"a621fb77014a","rating":3,"notes":""}{"item_id":"26da59405ab0","rating":3,"notes":""}{"item_id":"ab0f540edbc0","rating":2,"notes":""}{"item_id":"1d46adb2f425","rating":3,"notes":""}{"item_id":"f5e50432fe16","rating":2,"notes":""}{"item_id":"220a8e9bc3f1","rating":3,"notes":""}{"item_id":"91cf967f315d","rating":2,"notes":""}{"item_id":"165902323d10","rating":3,"notes":""}{"item_id":"bac1b42fa655","rating":2,"notes":""}{"item_id":"d36b0067facc","rating":3,"notes":""}{"item_id":"3f2f5d5fe93f","rating":3,"notes":""}{"item_id":"b2cfa6b6a8bb","rating":3,"notes":""}{"item_id":"8d98dc654c09","rating":1,"notes":""}{"item_id":"e7b12944c93c","rating":3,"notes":""}{"item_id":"557ad80553dd","rating":3,"notes":""}{"item_id":"aeb136ec88bd","rating":2,"notes":""}{"item_id":"9b91275b41bf","rating":1,"notes":""}{"item_id":"7b6fadd557cb","rating":1,"notes":""}{"item_id":"862fcd0eee56","rating":3,"notes":""}{"item_id":"bdc994ea20f5","rating":3,"notes":""}{"item_id":"f5e4a3db9018","rating":3,"notes":""}{"item_id":"6fc63420ff07","rating":1,"notes":""}{"item_id":"4d96a098dd4b","rating":1,"notes":""}{"item_id":"665af6fac982","rating":1,"notes":""}{"item_id":"f51d706cd8d9","rating":1,"notes":""}{"item_id":"22960cf94c5e","rating":3,"notes":""}{"item_id":"6aa616968326","rating":3,"notes":""}{"item_id":"2d3250871125","rating":3,"notes":""}{"item_id":"66fbeecddcfd","rating":3,"notes":""}{"item_id":"9423a51cf033","rating":3,"notes":""}{"item_id":"5c35e6c30fcb","rating":3,"notes":""}{"item_id":"6255cea2ca90","rating":3,"notes":""}{"item_id":"a549e29da039","rating":3,"notes":""}{"item_id":"4cef483f598d","rating":3,"notes":""}{"item_id":"121d07724c74","rating":3,"notes":""}{"item_id":"c46be429710b","rating":3,"notes":""}{"item_id":"7bb7b8884e44","rating":2,"notes":""}{"item_id":"37815db0ded7","rating":3,"notes":""}{"item_id":"37f3af05df65","rating":2,"notes":""}{"item_id":"970c4633e6fc","rating":3,"notes":""}{"item_id":"648b175d9ad4","rating":3,"notes":""}{"item_id":"30526a906533","rating":1,"notes":""}{"item_id":"7034eb72329d","rating":3,"notes":""}{"item_id":"f303e446cd2b","rating":1,"notes":""}{"item_id":"0da13761c268","rating":3,"notes":""}{"item_id":"bdb78f918c88","rating":3,"notes":""}{"item_id":"4087d2febe40","rating":3,"notes":""}{"item_id":"dc8d6a47c6a9","rating":2,"notes":""}{"item_id":"6211368a706a","rating":3,"notes":""}{"item_id":"0f08647800e8","rating":3,"notes":""}{"item_id":"dd1cb521c098","rating":3,"notes":""}{"item_id":"d06611cb2a33","rating":2,"notes":""}{"item_id":"e55573d6cf54","rating":2,"notes":""}{"item_id":"ff1c1d5ad823","rating":2,"notes":""}{"item_id":"20188452e608","rating":2,"notes":""}{"item_id":"487e61308723","rating":3,"notes":""}{"item_id":"f5bca6dad3be","rating":3,"notes":""}{"item_id":"9a881cfa7cb1","rating":2,"notes":""}{"item_id":"df755bcbefc3","rating":2,"notes":""}{"item_id":"31939086c39a","rating":3,"notes":""}{"item_id":"efed12fae2d2","rating":3,"notes":""}{"item_id":"250ba7c68ca6","rating":3,"notes":""}{"item_id":"f0065daebd62","rating":2,"notes":""}{"item_id":"1db4a7311a67","rating":3,"notes":""}{"item_id":"5deb5b82089e","rating":3,"notes":""}{"item_id":"81f697ec15e8","rating":3,"notes":""}{"item_id":"a244010fec65","rating":2,"notes":""}{"item_id":"7e22a376cb6f","rating":3,"notes":""}{"item_id":"9494678855ad","rating":1,"notes":""}12345{"rung":1,"app":"vega-lite","task_id":"point-2d","prompt":"Create a scatterplot showing horsepower and miles per gallon for various cars. Use the cars dataset (`data/cars.json`) with fields `Horsepower` (quantitative) and `Miles_per_Gallon` (quantitative). Map Horsepower to the x-axis and Miles_per_Gallon to the y-axis. Use point marks.","initial_state_json":"{}","reference_state_json":"{\"data\":{\"url\":\"data/cars.json\"},\"mark\":\"point\",\"encoding\":{\"x\":{\"field\":\"Horsepower\",\"type\":\"quantitative\"},\"y\":{\"field\":\"Miles_per_Gallon\",\"type\":\"quantitative\"}}}","reference_image":"pilot/references/vega-lite__point-2d.png","distance_from_initial":6}{"rung":2,"app":"vega-lite","task_id":"layer-dual-axis","prompt":"Create a dual-axis chart comparing temperature range and precipitation in Seattle. Use the dataset at `data/weather.csv` with fields: `location` (nominal), `date` (temporal), `temp_max` and `temp_min` (quantitative, °C), and `precipitation` (quantitative, inches). Filter the data to location \"Seattle\" using a transform filter with expression `datum.location == \"Seattle\"`. Share a monthly x-axis (timeUnit \"month\") with format \"%b\" and no title (title: null). Two layers:\n1. A semi-transparent area mark (opacity 0.3, color \"#85C5A6\") showing the average temp_max on y (scale domain [0, 30], title \"Avg. Temperature (°C)\", axis titleColor \"#85C5A6\") to average temp_min on y2. Use \"average\" aggregate on all three fields.\n2. A line mark (stroke \"#85A9C5\", interpolate \"monotone\") showing average precipitation, with title \"Precipitation (inches)\" and axis titleColor \"#85A9C5\".\nResolve y-scales independently. Size 400×300.","initial_state_json":"{}","reference_state_json":"{\"width\":400,\"height\":300,\"data\":{\"url\":\"data/weather.csv\"},\"transform\":[{\"filter\":\"datum.location == \\\"Seattle\\\"\"}],\"encoding\":{\"x\":{\"timeUnit\":\"month\",\"field\":\"date\",\"axis\":{\"format\":\"%b\",\"title\":null},\"type\":\"temporal\"}},\"layer\":[{\"mark\":{\"opacity\":0.3,\"type\":\"area\",\"color\":\"#85C5A6\"},\"encoding\":{\"y\":{\"aggregate\":\"average\",\"field\":\"temp_max\",\"scale\":{\"domain\":[0,30]},\"title\":\"Avg. Temperature (°C)\",\"axis\":{\"titleColor\":\"#85C5A6\"},\"type\":\"quantitative\"},\"y2\":{\"aggregate\":\"average\",\"field\":\"temp_min\"}}},{\"mark\":{\"stroke\":\"#85A9C5\",\"type\":\"line\",\"interpolate\":\"monotone\"},\"encoding\":{\"y\":{\"aggregate\":\"average\",\"field\":\"precipitation\",\"title\":\"Precipitation (inches)\",\"axis\":{\"titleColor\":\"#85A9C5\"},\"type\":\"quantitative\"}}}],\"resolve\":{\"scale\":{\"y\":\"independent\"}}}","reference_image":"pilot/references/vega-lite__layer-dual-axis.png","distance_from_initial":30}{"rung":3,"app":"vega-lite","task_id":"waterfall-chart","prompt":"Create a waterfall chart showing monthly cash flow changes.\n\nInline data (label, amount): Begin=4000, Jan=1707, Feb=-1425, Mar=-1030, Apr=1812, May=-1067, Jun=-1481, Jul=1228, Aug=1176, Sep=1146, Oct=1205, Nov=-1388, Dec=1492, End=0.\n\nTransforms (in order):\n1. Window: running sum of amount → \"sum\"\n2. Window: lead of label → \"lead\"\n3. Calculate: `datum.lead === null ? datum.label : datum.lead` → \"lead\"\n4. Calculate: `datum.label === 'End' ? 0 : datum.sum - datum.amount` → \"previous_sum\"\n5. Calculate: `datum.label === 'End' ? datum.sum : datum.amount` → \"amount\"\n6. Calculate: `(datum.label !== 'Begin' && datum.label !== 'End' && datum.amount > 0 ? '+' : '') + datum.amount` → \"text_amount\"\n7. Calculate: `(datum.sum + datum.previous_sum) / 2` → \"center\"\n8. Calculate: `datum.sum < datum.previous_sum ? datum.sum : ''` → \"sum_dec\"\n9. Calculate: `datum.sum > datum.previous_sum ? datum.sum : ''` → \"sum_inc\"\n\nShared x encoding: field \"label\", ordinal type, sort null, axis with labelAngle 0 and title \"Months\".\n\n5 layers:\n1. Bar (size 45): y=previous_sum, y2=sum. Conditional color: Begin/End → #f7e0b6, sum < previous_sum → #f78a64, default #93c4aa. Y title \"Amount\".\n2. Rule (color #404040, opacity 1, strokeWidth 2, xOffset -22.5, x2Offset 22.5): x2=lead field, y=sum.\n3. Text (dy -4, baseline bottom): y=sum_inc, text=sum_inc (nominal).\n4. Text (dy 4, baseline top): y=sum_dec, text=sum_dec (nominal).\n5. Text (fontWeight bold, baseline middle): y=center, text=text_amount (nominal). Conditional color: Begin/End → #725a30, default white.\n\nConfig: text fontWeight bold, color #404040.\nSize: 800×450.","initial_state_json":"{}","reference_state_json":"{\"data\":{\"values\":[{\"label\":\"Begin\",\"amount\":4000},{\"label\":\"Jan\",\"amount\":1707},{\"label\":\"Feb\",\"amount\":-1425},{\"label\":\"Mar\",\"amount\":-1030},{\"label\":\"Apr\",\"amount\":1812},{\"label\":\"May\",\"amount\":-1067},{\"label\":\"Jun\",\"amount\":-1481},{\"label\":\"Jul\",\"amount\":1228},{\"label\":\"Aug\",\"amount\":1176},{\"label\":\"Sep\",\"amount\":1146},{\"label\":\"Oct\",\"amount\":1205},{\"label\":\"Nov\",\"amount\":-1388},{\"label\":\"Dec\",\"amount\":1492},{\"label\":\"End\",\"amount\":0}]},\"width\":800,\"height\":450,\"transform\":[{\"window\":[{\"op\":\"sum\",\"field\":\"amount\",\"as\":\"sum\"}]},{\"window\":[{\"op\":\"lead\",\"field\":\"label\",\"as\":\"lead\"}]},{\"calculate\":\"datum.lead === null ? datum.label : datum.lead\",\"as\":\"lead\"},{\"calculate\":\"datum.label === 'End' ? 0 : datum.sum - datum.amount\",\"as\":\"previous_sum\"},{\"calculate\":\"datum.label === 'End' ? datum.sum : datum.amount\",\"as\":\"amount\"},{\"calculate\":\"(datum.label !== 'Begin' && datum.label !== 'End' && datum.amount > 0 ? '+' : '') + datum.amount\",\"as\":\"text_amount\"},{\"calculate\":\"(datum.sum + datum.previous_sum) / 2\",\"as\":\"center\"},{\"calculate\":\"datum.sum < datum.previous_sum ? datum.sum : ''\",\"as\":\"sum_dec\"},{\"calculate\":\"datum.sum > datum.previous_sum ? datum.sum : ''\",\"as\":\"sum_inc\"}],\"encoding\":{\"x\":{\"field\":\"label\",\"type\":\"ordinal\",\"sort\":null,\"axis\":{\"labelAngle\":0,\"title\":\"Months\"}}},\"layer\":[{\"mark\":{\"type\":\"bar\",\"size\":45},\"encoding\":{\"y\":{\"field\":\"previous_sum\",\"type\":\"quantitative\",\"title\":\"Amount\"},\"y2\":{\"field\":\"sum\"},\"color\":{\"condition\":[{\"test\":\"datum.label === 'Begin' || datum.label === 'End'\",\"value\":\"#f7e0b6\"},{\"test\":\"datum.sum < datum.previous_sum\",\"value\":\"#f78a64\"}],\"value\":\"#93c4aa\"}}},{\"mark\":{\"type\":\"rule\",\"color\":\"#404040\",\"opacity\":1,\"strokeWidth\":2,\"xOffset\":-22.5,\"x2Offset\":22.5},\"encoding\":{\"x2\":{\"field\":\"lead\"},\"y\":{\"field\":\"sum\",\"type\":\"quantitative\"}}},{\"mark\":{\"type\":\"text\",\"dy\":-4,\"baseline\":\"bottom\"},\"encoding\":{\"y\":{\"field\":\"sum_inc\",\"type\":\"quantitative\"},\"text\":{\"field\":\"sum_inc\",\"type\":\"nominal\"}}},{\"mark\":{\"type\":\"text\",\"dy\":4,\"baseline\":\"top\"},\"encoding\":{\"y\":{\"field\":\"sum_dec\",\"type\":\"quantitative\"},\"text\":{\"field\":\"sum_dec\",\"type\":\"nominal\"}}},{\"mark\":{\"type\":\"text\",\"fontWeight\":\"bold\",\"baseline\":\"middle\"},\"encoding\":{\"y\":{\"field\":\"center\",\"type\":\"quantitative\"},\"text\":{\"field\":\"text_amount\",\"type\":\"nominal\"},\"color\":{\"condition\":[{\"test\":\"datum.label === 'Begin' || datum.label === 'End'\",\"value\":\"#725a30\"}],\"value\":\"white\"}}}],\"config\":{\"text\":{\"fontWeight\":\"bold\",\"color\":\"#404040\"}}}","reference_image":"pilot/references/vega-lite__waterfall-chart.png","distance_from_initial":101}{"rung":4,"app":"vega-lite-hard","task_id":"stocks-market-terminal","prompt":"Build a market terminal over `data/stocks.csv`, parsing `date` as date and `price` as number. Every pane reads that same file with that same parse.\n\nThree top-level parameters, each bound to an input: `logScale` (checkbox \"log price axis \", false), `showMA` (checkbox \"moving average \", true), and `minPrice` (range \"min price filter \", 0 to 400 step 10, value 0).\n\nThen a vertical concatenation of four rows.\n\n**Row 1 — overview**, 800×60, titled \"Overview — drag to set the detail window\". A single line layer, size 1, opacity 0.7, declaring an interval parameter `range` selecting on the x encoding. x is `date` (temporal, title null), y is `price` (quantitative, axis null), color is `symbol` (nominal, legend null).\n\n**Row 2 — detail**, 800×230, titled \"Detail — hover to re-base the index\". Filter to the `range` parameter, then to `datum.price >= minPrice`. Four layers:\n1. An invisible point mark (opacity 0) on x `date` (temporal), declaring parameter `idxPoint`: a point selection on the x encoding, nearest, firing on \"pointerover\", with value x = January 2005.\n2. A line, size 1.8. It applies a lookup on `symbol` from the `idxPoint` parameter keyed on `symbol`, taking `price` as `basePrice`, then calculates `datum.basePrice && datum.basePrice > 0 ? datum.price / datum.basePrice - 1 : 0` as `indexed`. x is `date` (temporal, title null), y is `indexed` (quantitative, axis format \"%\", title \"change since hovered date\"), color is `symbol` (nominal, scheme \"tableau10\").\n3. A rule, color #0d1319, size 1, on x `date` (temporal), with opacity 0.6 when `idxPoint` is non-empty and 0 otherwise.\n4. A rule, color #5b6874, strokeDash [3, 3], at y datum 0.\n\n**Row 3** — two panes side by side, each faceted by column on `symbol` (nominal, sorted AAPL, AMZN, GOOG, IBM, MSFT, title null, header labelFontSize 9) with a 132×120 inner spec.\n- Left, titled \"Price, moving average and trend\", filtered to `range`. Three layers: an area at opacity 0.18 with x `date` (temporal, title null, axis format \"%y\", labelFontSize 8), y `price` (quantitative, title null, scale type from the expression `logScale ? 'log' : 'linear'`, zero false) and color `symbol` (legend null); a line, size 1.6, color #0d1319, over a window transform taking the mean of `price` as `ma` with frame [−5, 0] sorted by `date` grouped by `symbol`, with y `ma` on the same expression-driven scale and opacity from the expression `showMA ? 0.85 : 0`; and a dashed line, strokeDash [4, 2], size 1.2, color #c2620a, over a regression of `price` on `date` grouped by `symbol`.\n- Right, titled \"Drawdown from running peak\", filtered to `range`, then a window taking the max of `price` as `peak` with frame [null, 0] sorted by `date` grouped by `symbol`, then a calculate `datum.price / datum.peak - 1` as `drawdown`. Two layers: an area, color #8a2020, opacity 0.55, with x `date` (temporal, title null, axis format \"%y\", labelFontSize 8) and y `drawdown` (quantitative, title null, axis format \"%\"); and a filled point, color #0d1319, size 34, marking each symbol's worst drawdown — a joinaggregate taking the min of `drawdown` as `worst` grouped by `symbol`, then a filter `datum.drawdown === datum.worst` — with a tooltip of `symbol`, `date` (temporal) and `drawdown` (quantitative, format \".1%\").\n\n**Row 4** — two panes side by side, each 360×150.\n- Left, titled \"Rolling 6-month volatility\". Filter to `range`; window the stdev of `price` as `vol` with frame [−6, 0] sorted by `date` grouped by `symbol`; joinaggregate the mean of `price` as `lvlPrice` grouped by `symbol`; calculate `datum.vol / datum.lvlPrice` as `cv`. Draw a line, size 1.4, interpolate \"monotone\", with x `date` (temporal, title null), y `cv` (quantitative, title \"stdev / mean\", axis format \".0%\") and color `symbol` (nominal).\n- Right, titled \"Monthly returns — median and spread\". Filter to `range`; window the lag of `price` as `prev` sorted by `date` grouped by `symbol`; filter `isValid(datum.prev) && datum.prev > 0`; calculate `datum.price / datum.prev - 1` as `ret`; filter `abs(datum.ret) < 1`. Two layers: a boxplot, extent 1.5, size 22, with x `symbol` (nominal, sorted AAPL, AMZN, GOOG, IBM, MSFT, title null), y `ret` (quantitative, title \"monthly return\", axis format \"%\") and color `symbol` (legend null); and a rule, color #0d1319, strokeDash [3, 3], at y datum 0.\n\nResolve the color scale as shared. Config: view stroke null; axis labelFontSize 8 and titleFontSize 9; title fontSize 11, anchor \"start\", color #5b6874; legend labelFontSize 9 and titleFontSize 9.","initial_state_json":"{}","reference_state_json":"{\"params\":[{\"name\":\"logScale\",\"value\":false,\"bind\":{\"input\":\"checkbox\",\"name\":\"log price axis \"}},{\"name\":\"showMA\",\"value\":true,\"bind\":{\"input\":\"checkbox\",\"name\":\"moving average \"}},{\"name\":\"minPrice\",\"value\":0,\"bind\":{\"input\":\"range\",\"min\":0,\"max\":400,\"step\":10,\"name\":\"min price filter \"}}],\"vconcat\":[{\"width\":800,\"height\":60,\"title\":\"Overview — drag to set the detail window\",\"data\":{\"url\":\"data/stocks.csv\",\"format\":{\"parse\":{\"date\":\"date\",\"price\":\"number\"}}},\"layer\":[{\"params\":[{\"name\":\"range\",\"select\":{\"type\":\"interval\",\"encodings\":[\"x\"]}}],\"mark\":{\"type\":\"line\",\"size\":1,\"opacity\":0.7},\"encoding\":{\"x\":{\"field\":\"date\",\"type\":\"temporal\",\"title\":null},\"y\":{\"field\":\"price\",\"type\":\"quantitative\",\"axis\":null},\"color\":{\"field\":\"symbol\",\"type\":\"nominal\",\"legend\":null}}}]},{\"width\":800,\"height\":230,\"title\":\"Detail — hover to re-base the index\",\"data\":{\"url\":\"data/stocks.csv\",\"format\":{\"parse\":{\"date\":\"date\",\"price\":\"number\"}}},\"transform\":[{\"filter\":{\"param\":\"range\"}},{\"filter\":\"datum.price >= minPrice\"}],\"layer\":[{\"params\":[{\"name\":\"idxPoint\",\"select\":{\"type\":\"point\",\"encodings\":[\"x\"],\"on\":\"pointerover\",\"nearest\":true},\"value\":[{\"x\":{\"year\":2005,\"month\":1}}]}],\"mark\":{\"type\":\"point\",\"opacity\":0},\"encoding\":{\"x\":{\"field\":\"date\",\"type\":\"temporal\"}}},{\"transform\":[{\"lookup\":\"symbol\",\"from\":{\"param\":\"idxPoint\",\"key\":\"symbol\",\"fields\":[\"price\"]},\"as\":\"basePrice\"},{\"calculate\":\"datum.basePrice && datum.basePrice > 0 ? datum.price / datum.basePrice - 1 : 0\",\"as\":\"indexed\"}],\"mark\":{\"type\":\"line\",\"size\":1.8},\"encoding\":{\"x\":{\"field\":\"date\",\"type\":\"temporal\",\"title\":null},\"y\":{\"field\":\"indexed\",\"type\":\"quantitative\",\"axis\":{\"format\":\"%\"},\"title\":\"change since hovered date\"},\"color\":{\"field\":\"symbol\",\"type\":\"nominal\",\"scale\":{\"scheme\":\"tableau10\"}}}},{\"mark\":{\"type\":\"rule\",\"color\":\"#0d1319\",\"size\":1},\"encoding\":{\"x\":{\"field\":\"date\",\"type\":\"temporal\"},\"opacity\":{\"condition\":{\"param\":\"idxPoint\",\"empty\":false,\"value\":0.6},\"value\":0}}},{\"mark\":{\"type\":\"rule\",\"color\":\"#5b6874\",\"strokeDash\":[3,3]},\"encoding\":{\"y\":{\"datum\":0}}}]},{\"hconcat\":[{\"title\":\"Price, moving average and trend\",\"data\":{\"url\":\"data/stocks.csv\",\"format\":{\"parse\":{\"date\":\"date\",\"price\":\"number\"}}},\"transform\":[{\"filter\":{\"param\":\"range\"}}],\"facet\":{\"column\":{\"field\":\"symbol\",\"type\":\"nominal\",\"sort\":[\"AAPL\",\"AMZN\",\"GOOG\",\"IBM\",\"MSFT\"],\"title\":null,\"header\":{\"labelFontSize\":9}}},\"spec\":{\"width\":132,\"height\":120,\"layer\":[{\"mark\":{\"type\":\"area\",\"opacity\":0.18},\"encoding\":{\"x\":{\"field\":\"date\",\"type\":\"temporal\",\"title\":null,\"axis\":{\"format\":\"%y\",\"labelFontSize\":8}},\"y\":{\"field\":\"price\",\"type\":\"quantitative\",\"title\":null,\"scale\":{\"type\":{\"expr\":\"logScale ? 'log' : 'linear'\"},\"zero\":false}},\"color\":{\"field\":\"symbol\",\"type\":\"nominal\",\"legend\":null}}},{\"transform\":[{\"window\":[{\"op\":\"mean\",\"field\":\"price\",\"as\":\"ma\"}],\"frame\":[-5,0],\"sort\":[{\"field\":\"date\"}],\"groupby\":[\"symbol\"]}],\"mark\":{\"type\":\"line\",\"size\":1.6,\"color\":\"#0d1319\"},\"encoding\":{\"x\":{\"field\":\"date\",\"type\":\"temporal\"},\"y\":{\"field\":\"ma\",\"type\":\"quantitative\",\"scale\":{\"type\":{\"expr\":\"logScale ? 'log' : 'linear'\"},\"zero\":false}},\"opacity\":{\"value\":{\"expr\":\"showMA ? 0.85 : 0\"}}}},{\"transform\":[{\"regression\":\"price\",\"on\":\"date\",\"groupby\":[\"symbol\"]}],\"mark\":{\"type\":\"line\",\"strokeDash\":[4,2],\"size\":1.2,\"color\":\"#c2620a\"},\"encoding\":{\"x\":{\"field\":\"date\",\"type\":\"temporal\"},\"y\":{\"field\":\"price\",\"type\":\"quantitative\",\"scale\":{\"type\":{\"expr\":\"logScale ? 'log' : 'linear'\"},\"zero\":false}}}}]}},{\"title\":\"Drawdown from running peak\",\"data\":{\"url\":\"data/stocks.csv\",\"format\":{\"parse\":{\"date\":\"date\",\"price\":\"number\"}}},\"transform\":[{\"filter\":{\"param\":\"range\"}},{\"window\":[{\"op\":\"max\",\"field\":\"price\",\"as\":\"peak\"}],\"frame\":[null,0],\"sort\":[{\"field\":\"date\"}],\"groupby\":[\"symbol\"]},{\"calculate\":\"datum.price / datum.peak - 1\",\"as\":\"drawdown\"}],\"facet\":{\"column\":{\"field\":\"symbol\",\"type\":\"nominal\",\"sort\":[\"AAPL\",\"AMZN\",\"GOOG\",\"IBM\",\"MSFT\"],\"title\":null,\"header\":{\"labelFontSize\":9}}},\"spec\":{\"width\":132,\"height\":120,\"layer\":[{\"mark\":{\"type\":\"area\",\"color\":\"#8a2020\",\"opacity\":0.55},\"encoding\":{\"x\":{\"field\":\"date\",\"type\":\"temporal\",\"title\":null,\"axis\":{\"format\":\"%y\",\"labelFontSize\":8}},\"y\":{\"field\":\"drawdown\",\"type\":\"quantitative\",\"title\":null,\"axis\":{\"format\":\"%\"}}}},{\"transform\":[{\"joinaggregate\":[{\"op\":\"min\",\"field\":\"drawdown\",\"as\":\"worst\"}],\"groupby\":[\"symbol\"]},{\"filter\":\"datum.drawdown === datum.worst\"}],\"mark\":{\"type\":\"point\",\"color\":\"#0d1319\",\"size\":34,\"filled\":true},\"encoding\":{\"x\":{\"field\":\"date\",\"type\":\"temporal\"},\"y\":{\"field\":\"drawdown\",\"type\":\"quantitative\"},\"tooltip\":[{\"field\":\"symbol\"},{\"field\":\"date\",\"type\":\"temporal\"},{\"field\":\"drawdown\",\"type\":\"quantitative\",\"format\":\".1%\"}]}}]}}]},{\"hconcat\":[{\"width\":360,\"height\":150,\"title\":\"Rolling 6-month volatility\",\"data\":{\"url\":\"data/stocks.csv\",\"format\":{\"parse\":{\"date\":\"date\",\"price\":\"number\"}}},\"transform\":[{\"filter\":{\"param\":\"range\"}},{\"window\":[{\"op\":\"stdev\",\"field\":\"price\",\"as\":\"vol\"}],\"frame\":[-6,0],\"sort\":[{\"field\":\"date\"}],\"groupby\":[\"symbol\"]},{\"joinaggregate\":[{\"op\":\"mean\",\"field\":\"price\",\"as\":\"lvlPrice\"}],\"groupby\":[\"symbol\"]},{\"calculate\":\"datum.vol / datum.lvlPrice\",\"as\":\"cv\"}],\"mark\":{\"type\":\"line\",\"size\":1.4,\"interpolate\":\"monotone\"},\"encoding\":{\"x\":{\"field\":\"date\",\"type\":\"temporal\",\"title\":null},\"y\":{\"field\":\"cv\",\"type\":\"quantitative\",\"title\":\"stdev / mean\",\"axis\":{\"format\":\".0%\"}},\"color\":{\"field\":\"symbol\",\"type\":\"nominal\"}}},{\"width\":360,\"height\":150,\"title\":\"Monthly returns — median and spread\",\"data\":{\"url\":\"data/stocks.csv\",\"format\":{\"parse\":{\"date\":\"date\",\"price\":\"number\"}}},\"transform\":[{\"filter\":{\"param\":\"range\"}},{\"window\":[{\"op\":\"lag\",\"field\":\"price\",\"as\":\"prev\"}],\"sort\":[{\"field\":\"date\"}],\"groupby\":[\"symbol\"]},{\"filter\":\"isValid(datum.prev) && datum.prev > 0\"},{\"calculate\":\"datum.price / datum.prev - 1\",\"as\":\"ret\"},{\"filter\":\"abs(datum.ret) < 1\"}],\"layer\":[{\"mark\":{\"type\":\"boxplot\",\"extent\":1.5,\"size\":22},\"encoding\":{\"x\":{\"field\":\"symbol\",\"type\":\"nominal\",\"sort\":[\"AAPL\",\"AMZN\",\"GOOG\",\"IBM\",\"MSFT\"],\"title\":null},\"y\":{\"field\":\"ret\",\"type\":\"quantitative\",\"title\":\"monthly return\",\"axis\":{\"format\":\"%\"}},\"color\":{\"field\":\"symbol\",\"type\":\"nominal\",\"legend\":null}}},{\"mark\":{\"type\":\"rule\",\"color\":\"#0d1319\",\"strokeDash\":[3,3]},\"encoding\":{\"y\":{\"datum\":0}}}]}]}],\"resolve\":{\"scale\":{\"color\":\"shared\"}},\"config\":{\"view\":{\"stroke\":null},\"axis\":{\"labelFontSize\":8,\"titleFontSize\":9},\"title\":{\"fontSize\":11,\"anchor\":\"start\",\"color\":\"#5b6874\"},\"legend\":{\"labelFontSize\":9,\"titleFontSize\":9}}}","reference_image":"pilot/references/vega-lite-hard__stocks-market-terminal.png","distance_from_initial":286}{"rung":5,"app":"vega-lite-hard","task_id":"flight-ops-command-center","prompt":"Build an air-traffic command centre. Three top-level parameters, each bound to a range input: `minRoutes` (1 to 200 step 1, value 60, named \"min routes on arc \"), `delayCap` (20 to 600 step 10, value 180, named \"delay cap (min) \") and `topN` (4 to 30 step 1, value 12, named \"labelled airports \").\n\nThen a vertical concatenation of four rows.\n\n**Row 1 — summary strip**, width step 132, height 62, from `data/flights-airport.csv` parsing `count` as number. Filter `datum.count >= minRoutes`; aggregate the sum of `count` as `legs`, a count as `routes`, distinct `origin` as `origins`, distinct `destination` as `dests` and the max of `count` as `busiest`; fold those five into `metric` and `value`; calculate a `label` by indexing `{\"legs\":\"flight legs on arcs\",\"routes\":\"routes shown\",\"origins\":\"origin airports\",\"dests\":\"destination airports\",\"busiest\":\"busiest single route\"}` with `datum.metric`; calculate `format(datum.value, ',.0f')` as `shown`. The shared encoding puts `metric` (nominal, sorted legs, routes, origins, dests, busiest, axis null) on x. Three layers: a bar, color #f4f7fa, size 124, from y value 4 to y2 value 58; a left-aligned text at y 28, fontSize 21, fontWeight 700, xOffset −52, showing `shown` and colored by `metric` on that same sort with range [#0b4fa8, #c2620a, #2b6b5d, #8a2020, #6b3fa0] and legend null; and a left-aligned text at y 47, fontSize 9, color #5b6874, showing `label`.\n\n**Row 2** — two 440×270 maps side by side, both with an albersUsa projection.\n- Left, titled \"Airports — drag to cross-filter\", three layers. First a geoshape of `data/us-10m.json` (topojson, feature \"states\"), fill #eef1f4, stroke #fff. Second, from `data/flights-airport.csv` (parse `count` as number): aggregate a count as `routes` grouped by `origin`; look up `origin` in `data/airports.csv` (parsing `latitude` and `longitude` as numbers) keyed on `iata`, taking `state`, `latitude`, `longitude` and `city`; filter out states PR, VI and AK; window a rank as `routeRank` sorted by `routes` descending; joinaggregate the sum of `routes` as `allRoutes`; calculate `datum.routes / datum.allRoutes` as `share`. Draw a circle, stroke #fff, strokeWidth 0.5, declaring an interval parameter `mapBrush`, with longitude and latitude from those fields, size from `routes` (quantitative, scale rangeMax 700, legend null), color #c2620a when `mapBrush` is non-empty and #0b4fa8 otherwise, opacity 0.9 when non-empty and 0.45 otherwise, and a tooltip of `city`, `origin`, `routes` (quantitative) and `share` (quantitative, format \".2%\"). Third, the same aggregate, lookup (without `city`), state filter and rank, then a filter `datum.routeRank <= topN`, drawn as text at dy −9, fontSize 9, fontWeight 600, color #0d1319, showing `origin` at the same longitude and latitude.\n- Right, titled \"Route arcs above the slider threshold\", two layers. A geoshape of `data/us-10m.json` (topojson, feature \"states\"), fill #f4f7fa, stroke #fff. Then from `data/flights-airport.csv` (parse `count` as number): filter `datum.count >= minRoutes`; look up `origin` in `data/airports.csv` keyed on `iata` taking `latitude`, `longitude` and `state` as `oLat`, `oLon`, `oState`; look up `destination` the same way as `dLat`, `dLon`, `dState`; filter `isValid(datum.oLat) && isValid(datum.dLat)`; drop rows whose `oState` or `dState` is in [PR, VI, AK, HI]; joinaggregate the max of `count` as `maxCount`; calculate `datum.count / datum.maxCount` as `intensity`. Draw a rule, color #0b4fa8, from longitude `oLon` / latitude `oLat` to longitude2 `dLon` / latitude2 `dLat`, with opacity from `intensity` (scale range [0.06, 0.55], legend null) and strokeWidth from `intensity` (scale range [0.3, 2.4], legend null).\n\n**Row 3 — cross-filtered histograms**, from `data/flights-2k.json` parsing `date` as date. Filter `datum.delay < delayCap`, then look up `origin` from the `mapBrush` parameter keyed on `origin`. Repeat by column over `distance` and `delay`, with a 260×130 inner spec of four layers: a bar, color #c9d6e2, binning the repeated field to maxbins 24 on x (title null) against a count on y (title \"flights\"); a second bar, color #c2620a, filtered to `data('mapBrush_store').length && isValid(datum.mapBrush)`, binned the same way against a count; a rule, color #0d1319, strokeDash [3, 2], size 1.5, at the mean of the repeated field; and a left-aligned text at dx 4, dy −56, fontSize 9, color #0d1319, at that same mean, showing it as a quantitative value formatted \".0f\".\n\n**Row 4** — two panes side by side, both from `data/flights-2k.json` parsing `date` as date and both filtered to `datum.delay < delayCap`.\n- Left, 300×210, titled \"Busiest origins\". Aggregate a count as `n` and the mean of `delay` as `avgDelay` grouped by `origin`; window a rank as `rank` sorted by `n` descending; filter `datum.rank <= 15`. Two layers: a bar of height 11 declaring a point parameter `originClick` on the `origin` field, with y `origin` (nominal, sort \"-x\", title null), x `n` (quantitative, title \"flights\"), color `avgDelay` (quantitative, scheme \"goldorange\", title \"mean delay\") and opacity 1 when `originClick` is empty and 0.3 otherwise; and a left-aligned text at dx 3, fontSize 9, showing `n` at the same position.\n- Right, titled \"Longest delays in selection\". Look up `origin` from the `mapBrush` parameter keyed on `origin`; window a rank as `rank` sorted by `delay` descending; filter `datum.rank <= 14`. Lay out five text columns side by side, each a left-aligned text mark at fontSize 10 with y `rank` (ordinal, axis null) and color #c2620a when `originClick` is non-empty, #0d1319 otherwise: width 34 titled \"from\" showing `origin` (nominal, format null); width 34 titled \"to\" showing `destination` (nominal, format null); width 40 titled \"delay\" showing `delay` (quantitative, format \",\"); width 46 titled \"miles\" showing `distance` (quantitative, format \",\"); and width 62 titled \"date\" showing `date` (temporal, format \"%b %d\").\n\nResolve the color, size and opacity scales as independent. Config: view stroke null; axis labelFontSize 9 and titleFontSize 10; title fontSize 11, anchor \"start\", color #5b6874.","initial_state_json":"{}","reference_state_json":"{\"params\":[{\"name\":\"minRoutes\",\"value\":60,\"bind\":{\"input\":\"range\",\"min\":1,\"max\":200,\"step\":1,\"name\":\"min routes on arc \"}},{\"name\":\"delayCap\",\"value\":180,\"bind\":{\"input\":\"range\",\"min\":20,\"max\":600,\"step\":10,\"name\":\"delay cap (min) \"}},{\"name\":\"topN\",\"value\":12,\"bind\":{\"input\":\"range\",\"min\":4,\"max\":30,\"step\":1,\"name\":\"labelled airports \"}}],\"vconcat\":[{\"width\":{\"step\":132},\"height\":62,\"data\":{\"url\":\"data/flights-airport.csv\",\"format\":{\"parse\":{\"count\":\"number\"}}},\"transform\":[{\"filter\":\"datum.count >= minRoutes\"},{\"aggregate\":[{\"op\":\"sum\",\"field\":\"count\",\"as\":\"legs\"},{\"op\":\"count\",\"as\":\"routes\"},{\"op\":\"distinct\",\"field\":\"origin\",\"as\":\"origins\"},{\"op\":\"distinct\",\"field\":\"destination\",\"as\":\"dests\"},{\"op\":\"max\",\"field\":\"count\",\"as\":\"busiest\"}]},{\"fold\":[\"legs\",\"routes\",\"origins\",\"dests\",\"busiest\"],\"as\":[\"metric\",\"value\"]},{\"calculate\":\"{\\\"legs\\\":\\\"flight legs on arcs\\\",\\\"routes\\\":\\\"routes shown\\\",\\\"origins\\\":\\\"origin airports\\\",\\\"dests\\\":\\\"destination airports\\\",\\\"busiest\\\":\\\"busiest single route\\\"}[datum.metric]\",\"as\":\"label\"},{\"calculate\":\"format(datum.value, ',.0f')\",\"as\":\"shown\"}],\"encoding\":{\"x\":{\"field\":\"metric\",\"type\":\"nominal\",\"sort\":[\"legs\",\"routes\",\"origins\",\"dests\",\"busiest\"],\"axis\":null}},\"layer\":[{\"mark\":{\"type\":\"bar\",\"color\":\"#f4f7fa\",\"size\":124},\"encoding\":{\"y\":{\"value\":4},\"y2\":{\"value\":58}}},{\"mark\":{\"type\":\"text\",\"align\":\"left\",\"fontSize\":21,\"fontWeight\":700,\"xOffset\":-52},\"encoding\":{\"y\":{\"value\":28},\"text\":{\"field\":\"shown\",\"type\":\"nominal\"},\"color\":{\"field\":\"metric\",\"type\":\"nominal\",\"sort\":[\"legs\",\"routes\",\"origins\",\"dests\",\"busiest\"],\"scale\":{\"range\":[\"#0b4fa8\",\"#c2620a\",\"#2b6b5d\",\"#8a2020\",\"#6b3fa0\"]},\"legend\":null}}},{\"mark\":{\"type\":\"text\",\"align\":\"left\",\"fontSize\":9,\"color\":\"#5b6874\",\"xOffset\":-52},\"encoding\":{\"y\":{\"value\":47},\"text\":{\"field\":\"label\",\"type\":\"nominal\"}}}]},{\"hconcat\":[{\"width\":440,\"height\":270,\"title\":\"Airports — drag to cross-filter\",\"projection\":{\"type\":\"albersUsa\"},\"layer\":[{\"data\":{\"url\":\"data/us-10m.json\",\"format\":{\"type\":\"topojson\",\"feature\":\"states\"}},\"mark\":{\"type\":\"geoshape\",\"fill\":\"#eef1f4\",\"stroke\":\"#fff\"}},{\"data\":{\"url\":\"data/flights-airport.csv\",\"format\":{\"parse\":{\"count\":\"number\"}}},\"transform\":[{\"aggregate\":[{\"op\":\"count\",\"as\":\"routes\"}],\"groupby\":[\"origin\"]},{\"lookup\":\"origin\",\"from\":{\"data\":{\"url\":\"data/airports.csv\",\"format\":{\"parse\":{\"latitude\":\"number\",\"longitude\":\"number\"}}},\"key\":\"iata\",\"fields\":[\"state\",\"latitude\",\"longitude\",\"city\"]}},{\"filter\":\"datum.state !== 'PR' && datum.state !== 'VI' && datum.state !== 'AK'\"},{\"window\":[{\"op\":\"rank\",\"as\":\"routeRank\"}],\"sort\":[{\"field\":\"routes\",\"order\":\"descending\"}]},{\"joinaggregate\":[{\"op\":\"sum\",\"field\":\"routes\",\"as\":\"allRoutes\"}]},{\"calculate\":\"datum.routes / datum.allRoutes\",\"as\":\"share\"}],\"params\":[{\"name\":\"mapBrush\",\"select\":\"interval\"}],\"mark\":{\"type\":\"circle\",\"stroke\":\"#fff\",\"strokeWidth\":0.5},\"encoding\":{\"longitude\":{\"field\":\"longitude\",\"type\":\"quantitative\"},\"latitude\":{\"field\":\"latitude\",\"type\":\"quantitative\"},\"size\":{\"field\":\"routes\",\"type\":\"quantitative\",\"scale\":{\"rangeMax\":700},\"legend\":null},\"color\":{\"condition\":{\"param\":\"mapBrush\",\"empty\":false,\"value\":\"#c2620a\"},\"value\":\"#0b4fa8\"},\"opacity\":{\"condition\":{\"param\":\"mapBrush\",\"empty\":false,\"value\":0.9},\"value\":0.45},\"tooltip\":[{\"field\":\"city\"},{\"field\":\"origin\"},{\"field\":\"routes\",\"type\":\"quantitative\"},{\"field\":\"share\",\"type\":\"quantitative\",\"format\":\".2%\"}]}},{\"data\":{\"url\":\"data/flights-airport.csv\",\"format\":{\"parse\":{\"count\":\"number\"}}},\"transform\":[{\"aggregate\":[{\"op\":\"count\",\"as\":\"routes\"}],\"groupby\":[\"origin\"]},{\"lookup\":\"origin\",\"from\":{\"data\":{\"url\":\"data/airports.csv\",\"format\":{\"parse\":{\"latitude\":\"number\",\"longitude\":\"number\"}}},\"key\":\"iata\",\"fields\":[\"state\",\"latitude\",\"longitude\"]}},{\"filter\":\"datum.state !== 'PR' && datum.state !== 'VI' && datum.state !== 'AK'\"},{\"window\":[{\"op\":\"rank\",\"as\":\"routeRank\"}],\"sort\":[{\"field\":\"routes\",\"order\":\"descending\"}]},{\"filter\":\"datum.routeRank <= topN\"}],\"mark\":{\"type\":\"text\",\"dy\":-9,\"fontSize\":9,\"fontWeight\":600,\"color\":\"#0d1319\"},\"encoding\":{\"longitude\":{\"field\":\"longitude\",\"type\":\"quantitative\"},\"latitude\":{\"field\":\"latitude\",\"type\":\"quantitative\"},\"text\":{\"field\":\"origin\"}}}]},{\"width\":440,\"height\":270,\"title\":\"Route arcs above the slider threshold\",\"projection\":{\"type\":\"albersUsa\"},\"layer\":[{\"data\":{\"url\":\"data/us-10m.json\",\"format\":{\"type\":\"topojson\",\"feature\":\"states\"}},\"mark\":{\"type\":\"geoshape\",\"fill\":\"#f4f7fa\",\"stroke\":\"#fff\"}},{\"data\":{\"url\":\"data/flights-airport.csv\",\"format\":{\"parse\":{\"count\":\"number\"}}},\"transform\":[{\"filter\":\"datum.count >= minRoutes\"},{\"lookup\":\"origin\",\"from\":{\"data\":{\"url\":\"data/airports.csv\",\"format\":{\"parse\":{\"latitude\":\"number\",\"longitude\":\"number\"}}},\"key\":\"iata\",\"fields\":[\"latitude\",\"longitude\",\"state\"]},\"as\":[\"oLat\",\"oLon\",\"oState\"]},{\"lookup\":\"destination\",\"from\":{\"data\":{\"url\":\"data/airports.csv\",\"format\":{\"parse\":{\"latitude\":\"number\",\"longitude\":\"number\"}}},\"key\":\"iata\",\"fields\":[\"latitude\",\"longitude\",\"state\"]},\"as\":[\"dLat\",\"dLon\",\"dState\"]},{\"filter\":\"isValid(datum.oLat) && isValid(datum.dLat)\"},{\"filter\":\"indexof(['PR','VI','AK','HI'], datum.oState) < 0\"},{\"filter\":\"indexof(['PR','VI','AK','HI'], datum.dState) < 0\"},{\"joinaggregate\":[{\"op\":\"max\",\"field\":\"count\",\"as\":\"maxCount\"}]},{\"calculate\":\"datum.count / datum.maxCount\",\"as\":\"intensity\"}],\"mark\":{\"type\":\"rule\",\"color\":\"#0b4fa8\"},\"encoding\":{\"longitude\":{\"field\":\"oLon\",\"type\":\"quantitative\"},\"latitude\":{\"field\":\"oLat\",\"type\":\"quantitative\"},\"longitude2\":{\"field\":\"dLon\"},\"latitude2\":{\"field\":\"dLat\"},\"opacity\":{\"field\":\"intensity\",\"type\":\"quantitative\",\"scale\":{\"range\":[0.06,0.55]},\"legend\":null},\"strokeWidth\":{\"field\":\"intensity\",\"type\":\"quantitative\",\"scale\":{\"range\":[0.3,2.4]},\"legend\":null}}}]}]},{\"data\":{\"url\":\"data/flights-2k.json\",\"format\":{\"parse\":{\"date\":\"date\"}}},\"transform\":[{\"filter\":\"datum.delay < delayCap\"},{\"lookup\":\"origin\",\"from\":{\"param\":\"mapBrush\",\"key\":\"origin\"}}],\"repeat\":{\"column\":[\"distance\",\"delay\"]},\"spec\":{\"width\":260,\"height\":130,\"layer\":[{\"mark\":{\"type\":\"bar\",\"color\":\"#c9d6e2\"},\"encoding\":{\"x\":{\"field\":{\"repeat\":\"column\"},\"bin\":{\"maxbins\":24},\"title\":null},\"y\":{\"aggregate\":\"count\",\"title\":\"flights\"}}},{\"transform\":[{\"filter\":\"data('mapBrush_store').length && isValid(datum.mapBrush)\"}],\"mark\":{\"type\":\"bar\",\"color\":\"#c2620a\"},\"encoding\":{\"x\":{\"field\":{\"repeat\":\"column\"},\"bin\":{\"maxbins\":24}},\"y\":{\"aggregate\":\"count\"}}},{\"mark\":{\"type\":\"rule\",\"color\":\"#0d1319\",\"strokeDash\":[3,2],\"size\":1.5},\"encoding\":{\"x\":{\"field\":{\"repeat\":\"column\"},\"aggregate\":\"mean\"}}},{\"mark\":{\"type\":\"text\",\"align\":\"left\",\"dx\":4,\"dy\":-56,\"fontSize\":9,\"color\":\"#0d1319\"},\"encoding\":{\"x\":{\"field\":{\"repeat\":\"column\"},\"aggregate\":\"mean\"},\"text\":{\"field\":{\"repeat\":\"column\"},\"aggregate\":\"mean\",\"type\":\"quantitative\",\"format\":\".0f\"}}}]}},{\"hconcat\":[{\"width\":300,\"height\":210,\"title\":\"Busiest origins\",\"data\":{\"url\":\"data/flights-2k.json\",\"format\":{\"parse\":{\"date\":\"date\"}}},\"transform\":[{\"filter\":\"datum.delay < delayCap\"},{\"aggregate\":[{\"op\":\"count\",\"as\":\"n\"},{\"op\":\"mean\",\"field\":\"delay\",\"as\":\"avgDelay\"}],\"groupby\":[\"origin\"]},{\"window\":[{\"op\":\"rank\",\"as\":\"rank\"}],\"sort\":[{\"field\":\"n\",\"order\":\"descending\"}]},{\"filter\":\"datum.rank <= 15\"}],\"layer\":[{\"params\":[{\"name\":\"originClick\",\"select\":{\"type\":\"point\",\"fields\":[\"origin\"]}}],\"mark\":{\"type\":\"bar\",\"height\":11},\"encoding\":{\"y\":{\"field\":\"origin\",\"type\":\"nominal\",\"sort\":\"-x\",\"title\":null},\"x\":{\"field\":\"n\",\"type\":\"quantitative\",\"title\":\"flights\"},\"color\":{\"field\":\"avgDelay\",\"type\":\"quantitative\",\"scale\":{\"scheme\":\"goldorange\"},\"title\":\"mean delay\"},\"opacity\":{\"condition\":{\"param\":\"originClick\",\"empty\":true,\"value\":1},\"value\":0.3}}},{\"mark\":{\"type\":\"text\",\"align\":\"left\",\"dx\":3,\"fontSize\":9},\"encoding\":{\"y\":{\"field\":\"origin\",\"type\":\"nominal\",\"sort\":\"-x\"},\"x\":{\"field\":\"n\",\"type\":\"quantitative\"},\"text\":{\"field\":\"n\",\"type\":\"quantitative\"}}}]},{\"title\":\"Longest delays in selection\",\"data\":{\"url\":\"data/flights-2k.json\",\"format\":{\"parse\":{\"date\":\"date\"}}},\"transform\":[{\"filter\":\"datum.delay < delayCap\"},{\"lookup\":\"origin\",\"from\":{\"param\":\"mapBrush\",\"key\":\"origin\"}},{\"window\":[{\"op\":\"rank\",\"as\":\"rank\"}],\"sort\":[{\"field\":\"delay\",\"order\":\"descending\"}]},{\"filter\":\"datum.rank <= 14\"}],\"hconcat\":[{\"width\":34,\"title\":\"from\",\"mark\":{\"type\":\"text\",\"align\":\"left\",\"fontSize\":10},\"encoding\":{\"y\":{\"field\":\"rank\",\"type\":\"ordinal\",\"axis\":null},\"text\":{\"field\":\"origin\",\"type\":\"nominal\",\"format\":null},\"color\":{\"condition\":{\"param\":\"originClick\",\"empty\":false,\"value\":\"#c2620a\"},\"value\":\"#0d1319\"}}},{\"width\":34,\"title\":\"to\",\"mark\":{\"type\":\"text\",\"align\":\"left\",\"fontSize\":10},\"encoding\":{\"y\":{\"field\":\"rank\",\"type\":\"ordinal\",\"axis\":null},\"text\":{\"field\":\"destination\",\"type\":\"nominal\",\"format\":null},\"color\":{\"condition\":{\"param\":\"originClick\",\"empty\":false,\"value\":\"#c2620a\"},\"value\":\"#0d1319\"}}},{\"width\":40,\"title\":\"delay\",\"mark\":{\"type\":\"text\",\"align\":\"left\",\"fontSize\":10},\"encoding\":{\"y\":{\"field\":\"rank\",\"type\":\"ordinal\",\"axis\":null},\"text\":{\"field\":\"delay\",\"type\":\"quantitative\",\"format\":\",\"},\"color\":{\"condition\":{\"param\":\"originClick\",\"empty\":false,\"value\":\"#c2620a\"},\"value\":\"#0d1319\"}}},{\"width\":46,\"title\":\"miles\",\"mark\":{\"type\":\"text\",\"align\":\"left\",\"fontSize\":10},\"encoding\":{\"y\":{\"field\":\"rank\",\"type\":\"ordinal\",\"axis\":null},\"text\":{\"field\":\"distance\",\"type\":\"quantitative\",\"format\":\",\"},\"color\":{\"condition\":{\"param\":\"originClick\",\"empty\":false,\"value\":\"#c2620a\"},\"value\":\"#0d1319\"}}},{\"width\":62,\"title\":\"date\",\"mark\":{\"type\":\"text\",\"align\":\"left\",\"fontSize\":10},\"encoding\":{\"y\":{\"field\":\"rank\",\"type\":\"ordinal\",\"axis\":null},\"text\":{\"field\":\"date\",\"type\":\"temporal\",\"format\":\"%b %d\"},\"color\":{\"condition\":{\"param\":\"originClick\",\"empty\":false,\"value\":\"#c2620a\"},\"value\":\"#0d1319\"}}}]}]}],\"resolve\":{\"scale\":{\"color\":\"independent\",\"size\":\"independent\",\"opacity\":\"independent\"}},\"config\":{\"view\":{\"stroke\":null},\"axis\":{\"labelFontSize\":9,\"titleFontSize\":10},\"title\":{\"fontSize\":11,\"anchor\":\"start\",\"color\":\"#5b6874\"}}}","reference_image":"pilot/references/vega-lite-hard__flight-ops-command-center.png","distance_from_initial":431}README.md+32-142
analysis/main/error-analysis/report.md+1-1
generations/constructors.jsonlDeleted
generations/main.jsonl → generations/constructors.parquetRenamed+2-2
generations/docs_fix.jsonlDeleted
generations/docs_fix.parquetAdded+3
generations/familiarity.jsonlDeleted
generations/familiarity.parquetAdded+3
generations/generations.csvDeleted
generations/main.parquetAdded+3
generations/turns.jsonlDeleted
generations/turns.parquetAdded+3
judging/human/rater-1.jsonlDeleted-180
judging/human/sample.jsonlDeleted
judging/judge-ratings.jsonlDeleted
pilot/runs.jsonlDeleted
pilot/tasks.jsonlDeleted-5
tasks/tasks.jsonlDeleted