Skip to content

Provide guidelines on validation testing of vega charts #4515

Open
@ohltyler

Description

@ohltyler

Currently vega charts are all rendered using vega view, which when rendered on a page, just produces a single canvas html element. This limits being able to validate what is actually being rendered and if certain datapoints are visible as expected or not. vislib-implemented charts do not have this problem as each datapoint / legend / axis are separate elements and can be validated by a test runner (cypress).

A few potential options are:

  1. introduce an image comparison testing framework in the functional-test repo to compare generated chart canvas images with persisted ones and find any mismatches
  2. explore if validation on the source datatable can be relied upon as enough sufficient validation
  3. explore different ways to render vega charts and if the individual datapoints can be surfaced in html

Ideally we can come up with a final plan and have it documented, then begin adding consistent validation testing on all existing tests that are generating vega-implemented charts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    visualizationsIssues and PRs related to visualizations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions