VisualGrammar Laboratory
Map observational units and statistical meaning to accurate visual geometry.
Core Product Philosophy & 10-Dimension Mapping
Different charts can represent the exact same observations while emphasizing different mathematical properties. Conversely, two charts that look visually similar may encode fundamentally different statistical quantities (such as raw data spread vs. a 95% confidence interval).
Pillar A: Understand Data
19-type inference, summaries & transforms.
Pillar B: Find a View
Rule-based chart discovery & trade-offs.
Pillar C: Chart Studio
Interactive builder, audit & exports.
Pillar D: Visualization Unity
16 multi-view structural transformations.
Pillar E: Chart Literacy Lab
15 distortion repairs & 7 challenges.
Pillar F: Knowledge Atlas
34 chart specs & 26 concept lessons.
Immediate Data Entry & Local Session
Live Dataset Preview
Interact directly or jump into Chart Studio for full controls.
Built-In Sample Datasets & Statistical Structures (17 Presets — Click to Expand/Collapse)
Dataset Inspection & Variable Taxonomy
Variable Classification & Semantic Overrides
Override any inferred statistical type below to update chart recommendations and integrity rules.
| Variable | Semantic Type (Override) | Storage | Confidence & Rationale | Valid / Missing | Unique | Summary Statistics / Top Categories / Range | Unit |
|---|
Non-Destructive Transformations
Derive columns, filter, or bin without overwriting raw observations.
Transformation Provenance Log
Dataset Preview & Inline Cell Editor
Double-click any cell to edit values directly.
Visualization Discovery & Recommendation Engine
Match your variables and analytical question to valid chart families with expandable trade-off notes.
Active Statistical Graphic
Hover or click any mark to inspect/highlight observations.
Statistical Summary & Accessible Data Table
n = 0Summary Moments, Diagnostics & Accessible Table Equivalent
Known Visualization Unity — "One Dataset, Many Views"
Compare how 4 chart families project the exact same observations under synchronized parameters.
View A
View B
View C
View D
Uncertainty & Sampling Distribution Unity (Part 10.7)
Compare raw observation spread (s) against the bootstrap sampling distribution of the mean (SE = s/√n).
Structured Chart Similarity Ontology Matrix (Part 10.8 — Click to Expand)
| From Chart | To Chart | Relationship | Statistical Target | Transformation & Encoding Shift | Information Preservation & Caution |
|---|
Visualization Knowledge Atlas (34 Chart Families)
Filter by family, variable structure, objective, and implementation tier.
Chart Families (34)
Select a Chart Family
Chart Literacy Lab — Reading Graphics & Repairing Distortions
Compare 15 misleading vs. corrected graphics and test your skills on 7 mathematical challenges.
5-Step Repeatable Chart Reading Protocol (Click to Expand Guide)
15 Misleading Visualization Repair Experiments
Toggle between the Misleading Distortion and the Mathematically Corrected Graphic.
Active Chart Literacy Challenges (7 Practical Problems)
Explicit rule-based mathematical feedback.
Learn — 26 Graphical, Perceptual, & Statistical Concepts
Use the top Simple / Standard / Technical toggle to adjust mathematical depth.
Concept Curriculum (26 Topics)
About VisualGrammar, Statistical Methods, & Source Authority
Software Version 1.0.0 — Canonical DataSense Studio Ecosystem Application
1. Mathematical & Statistical Conventions (Float64 Precision)
All calculations in js/math-engine.js execute in IEEE 754 64-bit floating-point arithmetic adhering strictly to STATISTICAL_STANDARDS.md:
- Two-Pass Centered Moments: Sample variance s² = (1 / n-1)∑ (x_i - x̄)² uses Bessel’s n-1 correction and two-pass centering.
- Hyndman–Fan Type 7 Quantiles: Quartiles (Q_1, Q_2, Q_3) and percentiles use linear interpolation at k = (n-1)q + 1.
- Histogram Density vs Count: Probability density scales bin counts as f̂_k = n_k / (n · w_k) so ∑ f̂_k w_k = 1.0.
- Kernel Density Estimation: Gaussian and Epanechnikov kernels with Silverman’s bandwidth h = 0.9 min(s, IQR/1.34) n^{-1/5}.
- OLS & Influence Diagnostics: Closed-form Gauss-Markov OLS, Student-t p-values via Lentz incomplete beta, Blom Normal Q–Q positions p_i = (i - 0.375)/(n + 0.25), leverage h_i, studentized residuals r_i, and Cook’s distance D_i.
2. Local-First Privacy, Security, & Ecosystem Scope
- 100% Client-Side Processing: Uploaded CSV, TSV, and JSON datasets never leave your browser. Zero external analytics or third-party CDNs are loaded.
- CSV Injection Protection: Exported CSV cells beginning with
=,+,-, or@are automatically escaped perDATA_CONVENTIONS.md. - Shareable URL Safety: Shareable URL hashes encode chart configurations and preset IDs without embedding raw personal datasets.
- Ecosystem Interoperability: Exchange datasets and outputs with QuartetLab, ResampleLab, and ForecastLab via shared
DataSensev1.0.0 JSON schemas.
3. Approved Statistical & Visualization Reference Ecosystem
Grounded in the canonical DataSense standards library (DESIGN.md, STATISTICAL_STANDARDS.md, VISUALIZATION_STANDARDS.md, DATA_CONVENTIONS.md, APPLICATION_GUIDELINES.md, STATISTICAL_AUDIT.md) and reference literature:
Claus O. Wilke (Fundamentals of Data Visualization), Alberto Cairo (How Charts Lie), Lock et al. (Statistics: Unlocking the Power of Data), Cannon et al. (STAT2: Modeling with Regression and ANOVA), Chihara & Hesterberg (Mathematical Statistics with Resampling and R), H. Pishro-Nik (Introduction to Probability, Statistics, and Random Processes), James, Witten, Hastie, & Tibshirani (An Introduction to Statistical Learning), and Hyndman & Athanasopoulos (Forecasting: Principles and Practice).