Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Code associated with a research project for experimenting with different ways of surfacing stylistic, analytic, or visual discrepancies in visualizations.

License

Notifications You must be signed in to change notification settings

tableau/Visualization-Linting

Repository files navigation

Visualization Linting

As-Is

Code for experimenting with different ways of surfacing stylistic, analytic, or visual discrepancies in visualizations. This code is part of an academic project undertaken by Tableau Research as part of an academic paper, "Surfacing Visualization Mirages."

More details are available in the paper, but the core of the project is that a user can create a Vega-Lite JSON specification of a chart, along with the backing data, and we will perform a series of "lints" to test the robustness, fragility, or simple design of the chart. The results of these tests are listed underneath the chart. A test result in red represents a failure, and suggests that the analyst might have a data quality or chart design error worth investigating.

Note that this is a proof of concept testing platform for research. This application is meant to be a demo of potential functionality and has not been designed to scale to internet contexts. Future work will involve developing strategies and algorithms for improving the performance of this type of system.

Why Visualization Linting?

Many of these tests rely on a concept called "metamorphic testing," where we make changes to the underlying data and check to see how much the resulting chart changes. For instance, if we bootstrap the data underlying a chart, we would not expect huge variability in the resulting chart. A failure in this case (a large visual change after bootstrapping, or large inconsistencies after bootstrapping many times) would suggest small sample size, outliers, high variability, or any of a number of issues that might cast doubt on any insights derived from the chart.

Run the Linter

  1. Install yarn
  2. Install dependences by running:
yarn
  1. Run lint and image-gen server
yarn serve
  1. Run browser based demo
yarn start

This should open up a browser window showing a list of Vega-Lite specs. Select an existing Vega-Lite spec from our list of demos, or write your own. Linting a spec in the browser demo may take upwards of a minute.

Note that we support only a small subset of Vega-Lite specs, and that many features of Vega-Lite such as layering, concatenation, and maps are not linted. "SPEC NOT SUPPORTED" will appear in these cases.

Contributions

Code contributions and improvements by the community are welcomed! See the LICENSE file for current open-source licensing and use information.

Before we can accept pull requests from contributors, we require a signed Contributor License Agreement (CLA),

About

Code associated with a research project for experimenting with different ways of surfacing stylistic, analytic, or visual discrepancies in visualizations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages