Worked Examples

Validate chart type selection — Visualization & Graphing

Validate chart type selection — Visualization & Graphing Cross-application area: Visualization & Graphing Status: Initial scientific graphics guidance; platform-specific features not verified. Scientific objective Evaluate whether

ProductSustainable Catalyst Research LabUpdatedNovember 14, 2026Reading time15 minutes

Application area: Visualization & Graphing
Article classification: Scientific validation / Chart selection / Visualization integrity
Intended audience: Researchers, scientific programmers, data analysts, visualization developers, research reviewers, and publication editors
Technical level: Intermediate to advanced
Reference environment: Python 3, NumPy, pandas, Matplotlib, and pytest
Applicable standards: WCAG 2.2, scientific reproducibility practices, and documented renderer specifications
Primary outputs: Chart-selection rationale, validated numerical data, rendering specification, comparative figure review, and acceptance record
Estimated reading time: 13–16 minutes, excluding practical exercises

1. Scientific objective

Chart type selection determines how scientific data are encoded into graphical marks and how readers perceive relationships among variables.

A chart type is scientifically appropriate when its geometry, encoding, scales, and statistical representation support the intended analytical question without introducing misleading relationships.

The validation objective is to determine whether the chosen chart:

  1. Matches the scientific question.
  2. Represents the correct observational unit.
  3. Supports the variable types and dimensions.
  4. Preserves the intended numerical relationships.
  5. Uses appropriate graphical marks and scales.
  6. Distinguishes observations from derived statistics or modeled values.
  7. Communicates uncertainty and missingness accurately.
  8. Supports an interpretation justified by the available evidence.
  9. Provides accessible numerical and descriptive alternatives.

Central acceptance condition: The chosen graphical marks support accurate scientific comparisons, and the chart’s purpose, data transformations, and limitations are explained in its caption or accompanying documentation.

A chart should not be selected solely because it looks visually engaging or because a plotting library supports it.

2. Define the analytical question before choosing a chart

Chart validation begins with the analytical task.

Examples include:

  • Comparing numerical measurements across experimental groups.
  • Examining a relationship between two quantitative variables.
  • Identifying change over time.
  • Describing a statistical distribution.
  • Comparing observed and modeled values.
  • Examining uncertainty or variability.
  • Understanding spatial variation.
  • Representing a compositional breakdown.
  • Exploring relationships among many variables.

These tasks require different representations.

For example, a scatter plot is often appropriate for evaluating the relationship between two quantitative variables, while a distribution plot may be better suited to comparing the variability of experimental groups.

A line chart may communicate continuous temporal change, but it can imply unsupported continuity if the horizontal variable represents unordered categories.

3. Classify variable types and scientific structure

Before accepting a chart type, classify each variable and its scientific role.

Table 1. Variable types and validation considerations
Variable type Examples Validation concern
Nominal categorical Site, treatment group, material Categories have no inherent numerical distance
Ordinal categorical Severity level, ordered rating Order matters, but distances may not be equal
Quantitative continuous Temperature, concentration, mass Units, scale, precision, and uncertainty
Quantitative discrete Counts, event frequency Integer semantics and possible zero inflation
Temporal Observation date, elapsed time Time zone, temporal spacing, and aggregation
Spatial Latitude, longitude, projected coordinates Coordinate systems and spatial distortion
Compositional Material fractions, proportional allocation Denominator and whole-part assumptions
Modeled or predicted Forecast, model state, scenario output Distinguishing estimates from observations

The chart specification should also identify the observation unit, sample size, spatial or temporal coverage, and any repeated-measurement structure.

Do not treat repeated observations from the same subject, site, or experimental unit as independent samples without justification.

4. Chart-selection reference matrix

The following matrix provides starting choices. The appropriate final selection depends on the actual data, research question, and intended interpretation.

Table 2. Common scientific chart types and acceptance considerations
Scientific task Candidate chart Key validation requirement
Compare group magnitudes Dot plot or bar chart Common baseline, correct categories, and units
Compare raw observations Strip plot, jitter plot, or scatter plot Preserve sample identities and avoid misleading overlap
Show change over time Time-series line or point chart Accurate timestamp spacing and continuity assumptions
Compare distributions Histogram, box plot, violin plot, or empirical distribution Correct binning, quartile definitions, and sample sizes
Examine quantitative association Scatter plot Actual x-y pairing and appropriate axis scaling
Show fitted relationships Scatter plot with fitted curve Distinguish observations, model estimates, and uncertainty
Compare estimates and uncertainty Point-interval plot or error bars Defined estimator and interval semantics
Show temporal model uncertainty Line chart with uncertainty band Correct interval bounds, coverage, and temporal alignment
Explore a quantitative matrix Heat map Explicit color scale, units, and missing-value encoding
Map spatial variation Raster map or choropleth Coordinate reference, classification, and spatial coverage
Show part-to-whole composition Stacked bar or proportional chart Common denominator, positive quantities, and aggregation rules
Show multidimensional relationships Faceted plots or coordinated views Preserve the meaning of every additional encoding dimension

Vega-Lite distinguishes primitive graphical marks such as bars, points, lines, areas, and rectangles from composite representations including box plots and error intervals (Vega-Lite Developers, n.d.).

Library support for a chart type does not demonstrate that the chart is appropriate for a particular scientific question.

5. Validate the geometry of graphical marks

5.1 Position

Position along a common quantitative scale generally supports precise numerical comparisons.

For example, a dot plot allows numerical categories to be compared against one shared axis.

5.2 Length

Bar lengths encode magnitude relative to a baseline.

When bars represent nonnegative quantities, a zero baseline is generally important for preserving proportional interpretation.

A truncated bar axis can substantially exaggerate an apparent difference.

5.3 Area

When numerical values are encoded through graphical area, validate that the mark geometry represents the specified quantity.

For circles:

Area = pi * radius^2

If circle area should be proportional to a nonnegative measurement x:

radius proportional to sqrt(x)

Setting radius directly proportional to x instead makes area proportional to x squared.

The legend must explain which quantity the area represents.

5.4 Color

Color can represent categories or quantitative values, but essential scientific information should not depend on color alone.

For quantitative heat maps, validate the normalization range, color-map semantics, and missing-data treatment.

5.5 Lines and continuity

Lines visually connect observations.

They may imply a continuous relationship between observed points, even when intermediate values were not measured.

Use lines when the connecting relationship is scientifically defensible, and disclose interpolation or smoothing where applicable.

6. Mathematical validation of chart comparisons

6.1 Numerical consistency

Let y_ref be a validated source or derived value, and y_mark the value represented by a graphical mark.

A typical numerical comparison is:

|y_mark - y_ref|
    <= atol + rtol * |y_ref|

The absolute and relative tolerances must reflect the numerical method and scientific precision requirements.

6.2 Bar-length distortion

Consider two values:

A = 10
B = 12

The true magnitude ratio is:

B / A = 12 / 10 = 1.2

With a zero-baseline bar chart, the bar lengths preserve this ratio.

If an axis begins at 9, the visible lengths instead become:

A_visible = 10 - 9 = 1

B_visible = 12 - 9 = 3

Visible length ratio = 3 / 1 = 3

The visible length ratio of 3 does not represent the underlying value ratio of 1.2.

A dot plot with a clearly indicated truncated quantitative axis can be a more suitable alternative when close values must be compared in detail.

6.3 Aggregation

For observations grouped by category:

mean_G =
    (1/n_G) * sum(y_i for i in G)

If the chart represents the mean rather than individual observations, the caption must identify the aggregation method and relevant sample size.

6.4 Uncertainty

For a conventional sample standard deviation:

s = sqrt(
    sum((y_i - mean)^2) / (n - 1)
)

This requires more than one observation and appropriate assumptions.

Standard deviation, standard error, confidence intervals, credible intervals, and prediction intervals must not be treated as interchangeable.

7. Construct a deterministic reference dataset

Use a synthetic dataset containing three observations in each of two experimental groups.

Table 3. Synthetic group comparison fixture
Record Group Value (synthetic units)
C01 Control 10
C02 Control 12
C03 Control 14
T01 Treatment 15
T02 Treatment 18
T03 Treatment 21

Expected group means:

Control mean:
(10 + 12 + 14) / 3 = 12

Treatment mean:
(15 + 18 + 21) / 3 = 18

Descriptive difference:
18 - 12 = 6 synthetic units

The dataset is synthetic. It provides no sampling design or inferential evidence supporting a real treatment effect.

8. Generate alternative chart representations

The same data may be represented through several chart types. Comparing these representations can help identify whether aggregation, scale selection, or mark geometry obscures relevant information.

8.1 Prepare the environment

mkdir chart-selection-validation
cd chart-selection-validation

python3 -m venv .venv
source .venv/bin/activate

python -m pip install numpy matplotlib pytest

python --version
python -m pip freeze > requirements-lock.txt

8.2 Create the reference script

Save as chart_validation.py.

from pathlib import Path
import hashlib
import json

import numpy as np

import matplotlib
matplotlib.use("Agg")

import matplotlib.pyplot as plt


OUTPUT = Path("chart-output")
OUTPUT.mkdir(exist_ok=True)


GROUPS = ("Control", "Treatment")

VALUES = {
    "Control": np.array(
        [10.0, 12.0, 14.0]
    ),
    "Treatment": np.array(
        [15.0, 18.0, 21.0]
    )
}


def sha256(path):
    return hashlib.sha256(
        Path(path).read_bytes()
    ).hexdigest()


def validate_data(values):
    if set(values) != set(GROUPS):
        raise ValueError("Invalid groups")

    for group in GROUPS:
        observations = np.asarray(
            values[group],
            dtype=float
        )

        if observations.size == 0:
            raise ValueError("Empty group")

        if observations.ndim != 1:
            raise ValueError("Invalid shape")

        if not np.isfinite(observations).all():
            raise ValueError("Nonfinite values")

    return True


def group_means(values):
    validate_data(values)

    return {
        group: float(
            np.mean(values[group])
        )
        for group in GROUPS
    }


def validate_chart_spec(spec):
    chart_type = spec.get("chart_type")
    y_min = spec.get("y_min")

    if chart_type not in {
        "bar", "dot", "distribution"
    }:
        raise ValueError("Unsupported chart type")

    if chart_type == "bar" and y_min != 0:
        raise ValueError(
            "Reference bar chart requires "
            "a zero baseline"
        )

    if not spec.get("units"):
        raise ValueError("Missing measurement unit")

    if not spec.get("question"):
        raise ValueError("Missing analytical question")

    return True


def render_comparison(values):
    means = group_means(values)

    bar_spec = {
        "chart_type": "bar",
        "y_min": 0,
        "units": "synthetic units",
        "question": "Compare group means"
    }

    dot_spec = {
        "chart_type": "dot",
        "y_min": 8,
        "units": "synthetic units",
        "question": "Compare group means"
    }

    validate_chart_spec(bar_spec)
    validate_chart_spec(dot_spec)

    # Chart A: bars from zero.
    fig_a, ax_a = plt.subplots(
        figsize=(6, 4)
    )

    bars = ax_a.bar(
        GROUPS,
        [means[g] for g in GROUPS],
        color=["#174a67", "#a43b28"]
    )

    ax_a.set_ylim(0, 22)
    ax_a.set_ylabel(
        "Mean (synthetic units)"
    )

    for patch, group in zip(bars, GROUPS):
        np.testing.assert_allclose(
            patch.get_height(),
            means[group],
            rtol=0,
            atol=1e-12
        )

    fig_a.tight_layout()

    bar_path = OUTPUT / "mean-bars.png"
    fig_a.savefig(bar_path, dpi=180)
    plt.close(fig_a)

    # Chart B: dot plot of the same means.
    fig_b, ax_b = plt.subplots(
        figsize=(6, 4)
    )

    for index, group in enumerate(GROUPS):
        ax_b.plot(
            means[group],
            index,
            marker="o" if index == 0 else "s",
            markersize=9,
            linestyle="None",
            color=(
                "#174a67"
                if index == 0
                else "#a43b28"
            )
        )

    ax_b.set_yticks(
        list(range(len(GROUPS))),
        GROUPS
    )

    ax_b.set_xlim(8, 22)
    ax_b.set_xlabel(
        "Mean (synthetic units)"
    )

    fig_b.tight_layout()

    dot_path = OUTPUT / "mean-dots.png"
    fig_b.savefig(dot_path, dpi=180)
    plt.close(fig_b)

    # Chart C: show the individual records.
    fig_c, ax_c = plt.subplots(
        figsize=(6, 4)
    )

    for index, group in enumerate(GROUPS):
        observations = VALUES[group]

        ax_c.scatter(
            np.full(
                observations.size,
                index
            ),
            observations,
            marker="o" if index == 0 else "s",
            label=group
        )

    ax_c.set_xticks(
        list(range(len(GROUPS))),
        GROUPS
    )

    ax_c.set_ylabel(
        "Individual observations "
        "(synthetic units)"
    )

    ax_c.set_ylim(0, 23)

    fig_c.tight_layout()

    raw_path = OUTPUT / "raw-observations.png"
    fig_c.savefig(raw_path, dpi=180)
    plt.close(fig_c)

    report = {
        "dataset": "synthetic_group_comparison",
        "group_counts": {
            g: len(VALUES[g])
            for g in GROUPS
        },
        "means": means,
        "descriptive_difference": (
            means["Treatment"]
            - means["Control"]
        ),
        "bar_specification": bar_spec,
        "dot_specification": dot_spec,
        "artifacts": {
            "bar_sha256": sha256(bar_path),
            "dot_sha256": sha256(dot_path),
            "raw_sha256": sha256(raw_path)
        },
        "numerical_checks": "pass",
        "visual_review": "not_tested",
        "accessibility_review": "not_tested",
        "scientific_review": "not_tested"
    }

    (OUTPUT / "report.json").write_text(
        json.dumps(report, indent=2),
        encoding="utf-8"
    )

    return report


if __name__ == "__main__":
    report = render_comparison(VALUES)

    print("Control mean:", report["means"]["Control"])
    print(
        "Treatment mean:",
        report["means"]["Treatment"]
    )
    print(
        "Difference:",
        report["descriptive_difference"]
    )

8.3 Execute the example

python chart_validation.py

Expected numerical output:

Control mean: 12.0
Treatment mean: 18.0
Difference: 6.0

Generated artifacts:

chart-output/
  mean-bars.png
  mean-dots.png
  raw-observations.png
  report.json

These outputs provide three representations of the same synthetic data.

The bar chart emphasizes aggregate magnitude; the dot plot emphasizes the relative positions of two estimates; the raw-observation chart preserves the individual values.

No single chart automatically communicates every aspect of the dataset.

The script validates numerical properties of the Matplotlib objects. It does not establish pixel-level accuracy, accessibility, or scientific suitability without independent inspection.

9. Compare alternative chart types scientifically

Chart selection should be evaluated against the specific analytical question.

Table 4. Comparison of reference chart alternatives
Chart Strength Limitation
Mean bar chart Communicates aggregate values from a common zero baseline Conceals individual observations and dispersion
Mean dot plot Supports direct comparison of estimate positions Does not show source variation by itself
Raw-observation plot Reveals individual measurements and small-sample variation Can become crowded for large datasets
Box plot Summarizes distribution features Can be unstable or uninformative for very small samples
Violin plot Shows an estimated density shape Density smoothing can overstate structure in small samples

For the six-record synthetic dataset, a raw-observation plot combined with a numerical summary may communicate more of the evidence than a bar chart alone.

However, the appropriate representation should be selected according to the intended claim, not a universal chart preference.

10. Implement automated chart-selection checks

Validation should detect invalid source values and known high-risk chart configurations.

Save as test_chart_validation.py.

import numpy as np
import pytest

from chart_validation import (
    VALUES,
    validate_data,
    group_means,
    validate_chart_spec
)


def valid_bar_spec():
    return {
        "chart_type": "bar",
        "y_min": 0,
        "units": "synthetic units",
        "question": "Compare group means"
    }


def test_valid_source():
    assert validate_data(VALUES)


def test_expected_means():
    means = group_means(VALUES)

    assert means["Control"] == 12.0
    assert means["Treatment"] == 18.0


def test_valid_bar_spec():
    assert validate_chart_spec(
        valid_bar_spec()
    )


def test_truncated_bar_rejected():
    spec = valid_bar_spec()
    spec["y_min"] = 9

    with pytest.raises(ValueError):
        validate_chart_spec(spec)


def test_missing_units_rejected():
    spec = valid_bar_spec()
    spec["units"] = ""

    with pytest.raises(ValueError):
        validate_chart_spec(spec)


def test_unknown_chart_type_rejected():
    spec = valid_bar_spec()
    spec["chart_type"] = "unknown"

    with pytest.raises(ValueError):
        validate_chart_spec(spec)


def test_empty_group_rejected():
    broken = {
        "Control": np.array([]),
        "Treatment": np.array([15., 18.])
    }

    with pytest.raises(ValueError):
        validate_data(broken)


@pytest.mark.parametrize(
    "invalid",
    [np.nan, np.inf, -np.inf]
)
def test_nonfinite_values_rejected(invalid):
    broken = {
        "Control": np.array(
            [10., invalid, 14.]
        ),
        "Treatment": np.array(
            [15., 18., 21.]
        )
    }

    with pytest.raises(ValueError):
        validate_data(broken)


def test_wrong_group_set_rejected():
    broken = {
        "Control": np.array([10., 12.]),
        "Other": np.array([15., 18.])
    }

    with pytest.raises(ValueError):
        validate_data(broken)


def test_missing_question_rejected():
    spec = valid_bar_spec()
    spec["question"] = ""

    with pytest.raises(ValueError):
        validate_chart_spec(spec)

Execute:

python -m pytest -v test_chart_validation.py

The reference suite defines twelve test cases after expanding the parameterized non-finite-value test.

It checks known configuration constraints and numerical fixtures. It does not implement a general scientific chart recommender, nor does a passing configuration test prove that the selected chart is scientifically optimal.

11. Validate uncertainty and statistical representations

Chart types that display uncertainty require additional evidence.

For an interval:

[Lower, Upper]

validate:

  • The statistical definition.
  • The source observations.
  • The estimator and method.
  • Sample size and weighting.
  • Measurement units.
  • Confidence or probability level, where relevant.
  • The numerical lower and upper bounds.
  • The graphical mapping of those bounds.

Error bars may represent standard deviation, standard error, confidence intervals, prediction intervals, or other quantities.

Do not interpret them as equivalent.

Vega-Lite supports composite error bars and error bands and provides different interval calculation modes (Vega-Lite Developers, n.d.). The selected computation must be recorded rather than inferred from the appearance of the graphic.

12. Validate time-series and spatial chart selection

12.1 Temporal visualization

A time-series chart should preserve actual observation timestamps and relevant temporal spacing.

Validate:

  • Observation timestamp definitions.
  • Time zones and calendar conventions.
  • Sampling frequency.
  • Missing intervals.
  • Aggregation periods.
  • Interpolation or smoothing methods.
  • Observation versus forecast status.

Connecting two observations with a line should not automatically be interpreted as evidence that intermediate values were measured.

12.2 Spatial visualization

A geographic representation should identify the spatial variables and their coordinate reference systems.

Validate:

  • Coordinate reference systems and projection.
  • Spatial extent and resolution.
  • Data acquisition dates.
  • Spatial aggregation and interpolation.
  • No-data masks.
  • Classification boundaries.
  • Area-based or population-based normalization.

In choropleth maps, raw totals may be misleading when geographic areas differ in population or other relevant exposure measures.

Select and explain an appropriate denominator when the scientific question concerns a rate or concentration rather than a total.

12.3 Three-dimensional and animated charts

Three-dimensional graphics require clear definitions of the represented dimensions.

Do not infer an additional scientific dimension from perspective, shading, rotation, animation, or decorative depth.

For animations, document the time variable, frame sequence, interpolation, and relationship between observed and simulated states.

The availability of a 3D or 4D visualization engine does not establish that the representation is scientifically justified.

13. Accessibility and scientific communication

A chart type must be usable by the intended audience, including readers who cannot perceive the graphic in its original form.

Provide:

  • Descriptive captions explaining the scientific question.
  • Axis labels and units.
  • Accessible numerical tables.
  • Non-color-only series distinctions.
  • Extended descriptions of complex comparisons.
  • Accessible interaction controls where applicable.
  • Explicit uncertainty and missing-data definitions.

WCAG 2.2 requires appropriate alternatives for non-text content and prohibits using color as the sole means of conveying essential information (W3C, 2024).

For a complex scientific chart, alternative text alone may not provide enough information. Use a concise description together with an extended explanation and numerical equivalent as appropriate.

A chart that is numerically correct but inaccessible to its intended readers has not satisfied the full communication objective.

14. Independent scientific review

An independent reviewer should evaluate both the proposed chart and plausible alternatives.

The review should answer:

  1. Does the chart match the scientific question?
  2. Are the observational units and variables represented correctly?
  3. Does the chart preserve relevant variation or uncertainty?
  4. Are aggregated and modeled results properly identified?
  5. Are scale limits and graphical encodings justified?
  6. Could the selected chart encourage an unsupported inference?
  7. Would an alternative chart reveal evidence hidden by the selected representation?
  8. Is the caption accurate and sufficiently informative?

Where the interpretation changes materially under a reasonable alternative chart or scale, document that sensitivity and evaluate whether the original representation should be revised.

Do not automatically prefer the chart that produces the largest apparent effect.

15. Scientific acceptance matrix

Table 5. Chart-selection validation requirements
Criterion Pass condition Evidence
Research question Analytical purpose explicitly defined Figure specification
Variable compatibility Chart supports the actual variable types Schema and method review
Observation unit Marks represent intended observations or statistics Data-to-mark reconciliation
Numerical fidelity Plotted values agree with authoritative data Numerical tests
Scale integrity Axis and mark geometry do not distort the intended comparison Visual and configuration review
Aggregation Summaries use documented methods and groups Independent computation
Missingness Missing data and exclusions handled transparently Missing-data test evidence
Uncertainty Intervals and estimates correctly defined and displayed Statistical validation
Temporal accuracy Time references, ordering, and continuity appropriate Temporal validation
Spatial accuracy Geographic representation and normalization appropriate Geospatial review
Accessibility Essential information is available through suitable alternatives Accessibility review
Reproducibility Data and rendering configuration regenerate the required properties Independent execution
Caption accuracy Meaning, transformations, and limitations explained Editorial review
Scientific interpretation Chart supports claims without overstatement Independent scientific review

Acceptance rule: Record each applicable criterion as Pass, Fail, or Not Tested. A chart type should not be accepted merely because the renderer generates a visually attractive image.

16. Reproducibility and evidence package

A complete validation package should retain:

  • Authoritative dataset or immutable source reference.
  • Source identity, version, rights, and checksum.
  • Original and processed numerical tables.
  • Research question and chart-selection rationale.
  • Chart type and graphical mark definitions.
  • Variable mappings and measurement units.
  • Statistical estimators and uncertainty definitions.
  • Scale limits, sorting rules, and color encoding.
  • Rendering software and dependency versions.
  • Accessible description and numerical equivalent.
  • Generated figure artifacts and hashes.
  • Alternative-chart inspection findings.
  • Automated test outcomes.
  • Scientific reviewer and acceptance decision.

Exact file hashes are valuable for artifact integrity, but equivalent numerical results may produce different image bytes across rendering environments.

Validate numerical values and graphical properties independently from byte-level output identity.

16.1 Illustrative acceptance manifest

{
  "schema_version": "example-1.0",
  "figure_id": "synthetic-group-comparison",
  "source": {
    "dataset_id": "synthetic-groups",
    "revision": "1.0",
    "classification": "synthetic",
    "sha256": null
  },
  "scientific_question": "Compare group responses",
  "variables": {
    "group": "nominal",
    "response": "quantitative"
  },
  "selected_chart": {
    "type": "dot_plot",
    "statistic": "arithmetic_mean",
    "units": "synthetic_units",
    "axis_limits": [8, 22]
  },
  "alternatives_considered": [
    "bar_chart",
    "raw_observation_plot"
  ],
  "validation": {
    "source_integrity": "not_tested",
    "numerical_fidelity": "not_tested",
    "mark_encoding": "not_tested",
    "scale_review": "not_tested",
    "uncertainty": "not_tested",
    "accessibility": "not_tested",
    "scientific_review": "not_tested"
  },
  "release_decision": "NO_GO"
}

The values and chart alternatives in this manifest are illustrative. Actual approval requires recorded review and executed acceptance evidence.

17. Sustainable Catalyst research integration

Chart-selection validation is relevant to Sustainable Catalyst’s intended research and scientific visualization infrastructure.

The following responsibilities are proposed and must be verified against implemented application contracts.

Table 6. Proposed cross-application responsibilities
Application Intended responsibility
Library Provide authoritative source data, metadata, versioning, and rights
Workbench Generate reproducible numerical summaries and scientific figures where implemented
Research Lab Validate statistical methods and scientific assumptions
Visualization & Graphing Implement chart types, graphical encodings, and export verification
Site Intelligence Validate geographic representations and spatial comparisons where supported
Decision Studio Evaluate charts used in scenario and decision analysis where implemented
Workspace Track figure revisions, validation evidence, and review decisions
Research Publish approved figures, numerical evidence, methods, and source citations

17.1 Renderer-specific source audit

Before certifying chart-selection functionality in Sustainable Catalyst, identify:

  • Owning repository and exact source-code revision.
  • Implemented chart types and renderer adapters.
  • Actual input and output schemas.
  • Data-to-mark mapping behavior.
  • Supported statistical transformations.
  • Axis and color-scale configuration rules.
  • Missing-data and uncertainty handling.
  • Accessible descriptions and export capabilities.
  • Executed numerical and graphical tests.
  • Runtime screenshots and independently inspected artifacts.
  • Known limitations and unsupported chart selections.

The presence of Matplotlib, Plotly, Vega-Lite, or another graphics library does not establish that a scientifically governed chart-selection workflow has been implemented.

18. Limitations and escalation criteria

Escalate for scientific or engineering review when:

  • The chart geometry does not support the intended comparison.
  • Plotted values cannot be reconciled to source data.
  • Variable dimensions or measurement units are mismatched.
  • Temporal or spatial relationships are misrepresented.
  • Aggregation conceals scientifically important observations.
  • Uncertainty is omitted or incorrectly labeled.
  • Axis truncation or scaling materially exaggerates differences.
  • Graphic encodings imply unsupported continuity or dimensionality.
  • Accessibility requirements are not satisfied.
  • Published scientific conclusions depend on a misleading chart.

Correct rendering is not equivalent to scientifically valid inference.

A chart may faithfully reproduce an inappropriate analysis. Scientific validation must examine the source data, study design, statistical assumptions, and claims independently.

19. Technical references

  1. Vega-Lite Developers (n.d.). Mark. Available at: Vega-Lite mark documentation.
  2. Vega-Lite Developers (n.d.). Error Bar. Available at: Vega-Lite error-bar documentation.
  3. Vega-Lite Developers (n.d.). Error Band. Available at: Vega-Lite error-band documentation.
  4. Cleveland, W.S. and McGill, R. (1984). ‘Graphical perception: Theory, experimentation, and application to the development of graphical methods’, Journal of the American Statistical Association, 79(387), pp. 531–554.
  5. Wilkinson, L. (2005). The Grammar of Graphics. 2nd ed. New York: Springer.
  6. Harris, C.R. et al. (2020). ‘Array programming with NumPy’, Nature, 585, pp. 357–362. Available at: https://doi.org/10.1038/s41586-020-2649-2.
  7. Matplotlib Development Team (n.d.). Matplotlib Documentation. Available at: https://matplotlib.org/stable/.
  8. NumPy Developers (n.d.). numpy.testing.assert_allclose. Available at: NumPy documentation.
  9. pytest Development Team (n.d.). pytest Documentation. Available at: https://docs.pytest.org/en/stable/.
  10. World Wide Web Consortium (W3C) (2024). Web Content Accessibility Guidelines (WCAG) 2.2. Available at: https://www.w3.org/TR/WCAG22/.
  11. W3C Web Accessibility Initiative (n.d.). Complex Images. Available at: W3C guidance for complex charts and diagrams.

20. Completion and verification record

Table 7. Required chart-selection validation record
Field Required record
Figure identifier Figure and revision
Scientific question Intended analytical relationship or comparison
Source artifact Dataset, revision, and checksum
Variable compatibility Pass, Fail, or Not Tested
Chart appropriateness Pass, Fail, or Not Tested
Numerical fidelity Pass, Fail, or Not Tested
Scale and encoding Pass, Fail, or Not Tested
Aggregation validity Pass, Fail, or Not Tested
Uncertainty Pass, Fail, or Not Tested
Missingness Pass, Fail, or Not Tested
Accessibility Pass, Fail, or Not Tested
Reproducibility Pass, Fail, or Not Tested
Alternative-chart review Pass, Fail, or Not Tested
Scientific review Pass, Fail, or Not Tested
Reviewer Actual reviewer and review date
Evidence Source data, numerical tests, chart specifications, figures, and hashes
Outstanding limitations Unresolved scientific or implementation issues

Completion criterion: A chart type is accepted when its graphical marks, numerical encodings, scales, and statistical representations are appropriate to the research question; the displayed values reconcile to authoritative data; relevant uncertainty and limitations are communicated; and independent review supports the intended interpretation.

Scientific limitation: Choosing an appropriate chart improves scientific communication but cannot correct invalid source measurements, biased sampling, inappropriate statistical models, or unsupported causal interpretations.

Current implementation status: Chart-selection validation methodology, reproducible synthetic fixture, alternative rendering examples, numerical checks, and proposed acceptance requirements documented. No particular Sustainable Catalyst chart-selection service or production renderer is certified without source-code audit, executed tests, actual rendering inspection, and release-specific acceptance evidence.

Scroll to Top