Online Documentation Resources
Progressive disclosure strategy: Fetch these URLs only when user's request requires features beyond basic templates.
When to Fetch Documentation
DO NOT fetch preemptively. Only fetch when:
- User requests feature not in skill templates (e.g., "add brush selection", "use conditional formatting")
- Error occurs that requires spec validation
- User asks "how do I..." for advanced feature
- Need to understand parameter syntax for complex interaction
DO NOT fetch for:
- Basic charts covered in templates (bar, line, scatter, pie, heatmap, area)
- Standard customizations in customization.md (colors, tooltips, axis formatting)
- Data structure questions (use analyze_data.py instead)
Core Reference Pages
Spec Structure
URL: https://vega.github.io/vega-lite/docs/spec.html
When to fetch:
- User asks about overall spec structure
- Need to understand top-level properties
- Validating spec completeness
Contains:
- Complete spec schema
- Required vs optional properties
- Top-level configuration options
Mark Types
URL: https://vega.github.io/vega-lite/docs/mark.html
When to fetch:
- User requests mark type not in templates
- Need mark-specific properties (cornerRadius, interpolate, etc.)
- Understanding mark styling options
Contains:
- All mark types (bar, line, point, area, rect, text, tick, circle, square, rule, geoshape, boxplot, errorbar, errorband)
- Mark property reference
- Mark-specific configuration
Encoding Channels
URL: https://vega.github.io/vega-lite/docs/encoding.html
When to fetch:
- User wants encoding channel not used in templates (angle, radius, shape, strokeWidth, etc.)
- Complex multi-field encoding needed
- Understanding encoding precedence
Contains:
- All encoding channels (x, y, color, size, shape, opacity, etc.)
- Channel-specific properties
- Type compatibility rules
Interactive Features
Selections (Parameters)
URL: https://vega.github.io/vega-lite/docs/selection.html
When to fetch:
- User says "interactive", "clickable", "filter by clicking"
- Need brush, interval, or point selection
- Linking multiple views with shared selection
Contains:
- Selection types (point, interval, brush)
- Selection configuration
- Cross-view selection binding
- Selection predicates
Conditions
URL: https://vega.github.io/vega-lite/docs/condition.html
When to fetch:
- User wants conditional styling ("color positive values green")
- Selection-based styling needed
- Data-driven visual encoding
Contains:
- Conditional encoding syntax
- Test expressions
- Selection-based conditions
- Value-based conditions
Tooltips
URL: https://vega.github.io/vega-lite/docs/tooltip.html
When to fetch:
- User wants custom tooltip formatting beyond examples in customization.md
- Need to disable/customize default tooltips
- Multi-field tooltip with complex formatting
Contains:
- Tooltip encoding options
- Formatting specifications
- Disabling tooltips
- Custom tooltip content
Data Transformations
Transform Overview
URL: https://vega.github.io/vega-lite/docs/transform.html
When to fetch:
- User needs data transformation not in basic templates
- Request for filtering, aggregation, calculation, binning
- Need to understand transform pipeline
Contains:
- Transform types overview
- Transform ordering
- Common patterns
Aggregate
URL: https://vega.github.io/vega-lite/docs/aggregate.html
When to fetch:
- User wants "sum by category", "average per month", etc.
- Grouping and aggregation needed
- Statistical operations required
Contains:
- Aggregate operations (count, sum, mean, median, min, max, etc.)
- Grouping syntax
- Multiple aggregations
Filter
URL: https://vega.github.io/vega-lite/docs/filter.html
When to fetch:
- User wants to "show only", "exclude", "filter data"
- Predicate expressions needed
- Time-based filtering
Contains:
- Filter predicate syntax
- Comparison operators
- Logical operators (and, or, not)
- Field predicates
Calculate
URL: https://vega.github.io/vega-lite/docs/calculate.html
When to fetch:
- User needs computed fields
- Mathematical operations on existing fields
- Derived values
Contains:
- Expression syntax
- Available functions
- Field references
Bin
URL: https://vega.github.io/vega-lite/docs/bin.html
When to fetch:
- User wants histogram
- Need to create value ranges
- Binning continuous data
Contains:
- Bin parameters (maxbins, step, extent)
- Binning strategies
- Custom bin specification
Layout and Composition
Faceting
URL: https://vega.github.io/vega-lite/docs/facet.html
When to fetch:
- User wants "small multiples", "one chart per category"
- Trellis plots needed
- Grid layouts of charts
Contains:
- Facet encoding
- Row and column facets
- Facet configuration
Layer
URL: https://vega.github.io/vega-lite/docs/layer.html
When to fetch:
- User wants multiple marks on same chart (e.g., line + points)
- Overlay visualizations needed
- Combining different mark types
Contains:
- Layer specification
- Shared encodings
- Layer-specific encodings
Concat
URL: https://vega.github.io/vega-lite/docs/concat.html
When to fetch:
- User wants multiple independent charts side-by-side
- Dashboard-style layouts
- Horizontal/vertical concatenation
Contains:
- Concat specification
- Horizontal and vertical concat
- Flexible composition
Repeat
URL: https://vega.github.io/vega-lite/docs/repeat.html
When to fetch:
- User wants same chart template for multiple fields
- Scatterplot matrix (SPLOM)
- Repeated specifications
Contains:
- Repeat specification
- Row and column repeat
- Field substitution
Styling and Configuration
Scale
URL: https://vega.github.io/vega-lite/docs/scale.html
When to fetch:
- User needs custom scale configuration beyond color schemes
- Domain/range customization
- Scale type questions (linear, log, sqrt, etc.)
Contains:
- Scale types
- Domain and range
- Scale properties (clamp, padding, nice, etc.)
- Color schemes
Axis
URL: https://vega.github.io/vega-lite/docs/axis.html
When to fetch:
- User needs axis customization beyond format strings
- Custom tick placement
- Axis styling details
Contains:
- Axis properties
- Tick configuration
- Grid lines
- Axis orientation
Legend
URL: https://vega.github.io/vega-lite/docs/legend.html
When to fetch:
- User needs legend customization beyond position
- Custom legend formatting
- Legend styling
Contains:
- Legend properties
- Symbol configuration
- Label formatting
- Legend layout
Title
URL: https://vega.github.io/vega-lite/docs/title.html
When to fetch:
- User needs complex title configuration
- Subtitle, anchor positioning
- Title styling details
Contains:
- Title properties
- Subtitle support
- Positioning options
- Text styling
Time Series Specific
Time Unit
URL: https://vega.github.io/vega-lite/docs/timeunit.html
When to fetch:
- User has temporal data needing aggregation by time unit
- "Group by month", "show by year" requests
- Time-based binning
Contains:
- Time unit types (year, quarter, month, week, day, hour, etc.)
- Time unit transformations
- Temporal binning
Examples Gallery
Example Gallery
URL: https://vega.github.io/vega-lite/examples/
When to fetch:
- User's request matches complex pattern not in templates
- Need inspiration for advanced visualization
- Looking for specific example type
Contains:
- Categorized examples
- Interactive specs
- Copy-paste ready code
Browse by category:
Fetching Strategy
Step 1: Identify need
IF user_request requires [feature]:
IDENTIFY most specific documentation page for [feature]
ELSE:
USE templates and existing references
Step 2: Fetch documentation
# Use web_search tool to fetch specific URL
# Extract relevant section from page
# Apply pattern to user's data
Step 3: Synthesize and apply
EXTRACT relevant syntax from fetched docs
MODIFY user's spec with new feature
TEST in artifact
PROVIDE updated link
URL Structure Pattern
All Vega-Lite docs follow this pattern:
https://vega.github.io/vega-lite/docs/[TOPIC].html
Common topics:
- mark.html, encoding.html, transform.html
- [specific-transform].html (aggregate.html, filter.html, etc.)
- [specific-encoding].html (color.html, size.html, etc.)
- config.html (global configuration)
- data.html (data loading options)
To find specific feature documentation:
- Check if topic exists in inventory above
- If not, construct URL:
https://vega.github.io/vega-lite/docs/[topic-name].html
- Fetch and validate URL works
- Extract relevant information
Critical Rules
- Only fetch when necessary - Don't preload documentation
- Be specific - Fetch exact page needed, not entire doc site
- Extract and apply - Don't just link to docs, implement the solution
- Cache knowledge - If fetched once in conversation, reuse that knowledge
- Verify applicability - Ensure fetched pattern works with user's data structure
1---2name: 637-online-resources-caef91863description: Online Documentation Resources4---5# Online Documentation Resources67**Progressive disclosure strategy:** Fetch these URLs only when user's request requires features beyond basic templates.89## When to Fetch Documentation1011**DO NOT fetch preemptively.** Only fetch when:12- User requests feature not in skill templates (e.g., "add brush selection", "use conditional formatting")13- Error occurs that requires spec validation14- User asks "how do I..." for advanced feature15- Need to understand parameter syntax for complex interaction1617**DO NOT fetch for:**18- Basic charts covered in templates (bar, line, scatter, pie, heatmap, area)19- Standard customizations in customization.md (colors, tooltips, axis formatting)20- Data structure questions (use analyze_data.py instead)2122## Core Reference Pages2324### Spec Structure25**URL:** https://vega.github.io/vega-lite/docs/spec.html26**When to fetch:**27- User asks about overall spec structure28- Need to understand top-level properties29- Validating spec completeness3031**Contains:**32- Complete spec schema33- Required vs optional properties34- Top-level configuration options3536### Mark Types37**URL:** https://vega.github.io/vega-lite/docs/mark.html38**When to fetch:**39- User requests mark type not in templates40- Need mark-specific properties (cornerRadius, interpolate, etc.)41- Understanding mark styling options4243**Contains:**44- All mark types (bar, line, point, area, rect, text, tick, circle, square, rule, geoshape, boxplot, errorbar, errorband)45- Mark property reference46- Mark-specific configuration4748### Encoding Channels49**URL:** https://vega.github.io/vega-lite/docs/encoding.html50**When to fetch:**51- User wants encoding channel not used in templates (angle, radius, shape, strokeWidth, etc.)52- Complex multi-field encoding needed53- Understanding encoding precedence5455**Contains:**56- All encoding channels (x, y, color, size, shape, opacity, etc.)57- Channel-specific properties58- Type compatibility rules5960## Interactive Features6162### Selections (Parameters)63**URL:** https://vega.github.io/vega-lite/docs/selection.html64**When to fetch:**65- User says "interactive", "clickable", "filter by clicking"66- Need brush, interval, or point selection67- Linking multiple views with shared selection6869**Contains:**70- Selection types (point, interval, brush)71- Selection configuration72- Cross-view selection binding73- Selection predicates7475### Conditions76**URL:** https://vega.github.io/vega-lite/docs/condition.html77**When to fetch:**78- User wants conditional styling ("color positive values green")79- Selection-based styling needed80- Data-driven visual encoding8182**Contains:**83- Conditional encoding syntax84- Test expressions85- Selection-based conditions86- Value-based conditions8788### Tooltips89**URL:** https://vega.github.io/vega-lite/docs/tooltip.html90**When to fetch:**91- User wants custom tooltip formatting beyond examples in customization.md92- Need to disable/customize default tooltips93- Multi-field tooltip with complex formatting9495**Contains:**96- Tooltip encoding options97- Formatting specifications98- Disabling tooltips99- Custom tooltip content100101## Data Transformations102103### Transform Overview104**URL:** https://vega.github.io/vega-lite/docs/transform.html105**When to fetch:**106- User needs data transformation not in basic templates107- Request for filtering, aggregation, calculation, binning108- Need to understand transform pipeline109110**Contains:**111- Transform types overview112- Transform ordering113- Common patterns114115### Aggregate116**URL:** https://vega.github.io/vega-lite/docs/aggregate.html117**When to fetch:**118- User wants "sum by category", "average per month", etc.119- Grouping and aggregation needed120- Statistical operations required121122**Contains:**123- Aggregate operations (count, sum, mean, median, min, max, etc.)124- Grouping syntax125- Multiple aggregations126127### Filter128**URL:** https://vega.github.io/vega-lite/docs/filter.html129**When to fetch:**130- User wants to "show only", "exclude", "filter data"131- Predicate expressions needed132- Time-based filtering133134**Contains:**135- Filter predicate syntax136- Comparison operators137- Logical operators (and, or, not)138- Field predicates139140### Calculate141**URL:** https://vega.github.io/vega-lite/docs/calculate.html142**When to fetch:**143- User needs computed fields144- Mathematical operations on existing fields145- Derived values146147**Contains:**148- Expression syntax149- Available functions150- Field references151152### Bin153**URL:** https://vega.github.io/vega-lite/docs/bin.html154**When to fetch:**155- User wants histogram156- Need to create value ranges157- Binning continuous data158159**Contains:**160- Bin parameters (maxbins, step, extent)161- Binning strategies162- Custom bin specification163164## Layout and Composition165166### Faceting167**URL:** https://vega.github.io/vega-lite/docs/facet.html168**When to fetch:**169- User wants "small multiples", "one chart per category"170- Trellis plots needed171- Grid layouts of charts172173**Contains:**174- Facet encoding175- Row and column facets176- Facet configuration177178### Layer179**URL:** https://vega.github.io/vega-lite/docs/layer.html180**When to fetch:**181- User wants multiple marks on same chart (e.g., line + points)182- Overlay visualizations needed183- Combining different mark types184185**Contains:**186- Layer specification187- Shared encodings188- Layer-specific encodings189190### Concat191**URL:** https://vega.github.io/vega-lite/docs/concat.html192**When to fetch:**193- User wants multiple independent charts side-by-side194- Dashboard-style layouts195- Horizontal/vertical concatenation196197**Contains:**198- Concat specification199- Horizontal and vertical concat200- Flexible composition201202### Repeat203**URL:** https://vega.github.io/vega-lite/docs/repeat.html204**When to fetch:**205- User wants same chart template for multiple fields206- Scatterplot matrix (SPLOM)207- Repeated specifications208209**Contains:**210- Repeat specification211- Row and column repeat212- Field substitution213214## Styling and Configuration215216### Scale217**URL:** https://vega.github.io/vega-lite/docs/scale.html218**When to fetch:**219- User needs custom scale configuration beyond color schemes220- Domain/range customization221- Scale type questions (linear, log, sqrt, etc.)222223**Contains:**224- Scale types225- Domain and range226- Scale properties (clamp, padding, nice, etc.)227- Color schemes228229### Axis230**URL:** https://vega.github.io/vega-lite/docs/axis.html231**When to fetch:**232- User needs axis customization beyond format strings233- Custom tick placement234- Axis styling details235236**Contains:**237- Axis properties238- Tick configuration239- Grid lines240- Axis orientation241242### Legend243**URL:** https://vega.github.io/vega-lite/docs/legend.html244**When to fetch:**245- User needs legend customization beyond position246- Custom legend formatting247- Legend styling248249**Contains:**250- Legend properties251- Symbol configuration252- Label formatting253- Legend layout254255### Title256**URL:** https://vega.github.io/vega-lite/docs/title.html257**When to fetch:**258- User needs complex title configuration259- Subtitle, anchor positioning260- Title styling details261262**Contains:**263- Title properties264- Subtitle support265- Positioning options266- Text styling267268## Time Series Specific269270### Time Unit271**URL:** https://vega.github.io/vega-lite/docs/timeunit.html272**When to fetch:**273- User has temporal data needing aggregation by time unit274- "Group by month", "show by year" requests275- Time-based binning276277**Contains:**278- Time unit types (year, quarter, month, week, day, hour, etc.)279- Time unit transformations280- Temporal binning281282## Examples Gallery283284### Example Gallery285**URL:** https://vega.github.io/vega-lite/examples/286**When to fetch:**287- User's request matches complex pattern not in templates288- Need inspiration for advanced visualization289- Looking for specific example type290291**Contains:**292- Categorized examples293- Interactive specs294- Copy-paste ready code295296**Browse by category:**297- Single view: https://vega.github.io/vega-lite/examples/#single-view-plots298- Composite views: https://vega.github.io/vega-lite/examples/#composite-marks299- Interactive: https://vega.github.io/vega-lite/examples/#interactive300- Geo: https://vega.github.io/vega-lite/examples/#geographic301302## Fetching Strategy303304**Step 1: Identify need**305```306IF user_request requires [feature]:307 IDENTIFY most specific documentation page for [feature]308ELSE:309 USE templates and existing references310```311312**Step 2: Fetch documentation**313```bash314# Use web_search tool to fetch specific URL315# Extract relevant section from page316# Apply pattern to user's data317```318319**Step 3: Synthesize and apply**320```321EXTRACT relevant syntax from fetched docs322MODIFY user's spec with new feature323TEST in artifact324PROVIDE updated link325```326327## URL Structure Pattern328329All Vega-Lite docs follow this pattern:330```331https://vega.github.io/vega-lite/docs/[TOPIC].html332```333334**Common topics:**335- mark.html, encoding.html, transform.html336- [specific-transform].html (aggregate.html, filter.html, etc.)337- [specific-encoding].html (color.html, size.html, etc.)338- config.html (global configuration)339- data.html (data loading options)340341**To find specific feature documentation:**3421. Check if topic exists in inventory above3432. If not, construct URL: `https://vega.github.io/vega-lite/docs/[topic-name].html`3443. Fetch and validate URL works3454. Extract relevant information346347## Critical Rules3483491. **Only fetch when necessary** - Don't preload documentation3502. **Be specific** - Fetch exact page needed, not entire doc site3513. **Extract and apply** - Don't just link to docs, implement the solution3524. **Cache knowledge** - If fetched once in conversation, reuse that knowledge3535. **Verify applicability** - Ensure fetched pattern works with user's data structure