Skip to main content
Public

Share visualization

Loading preview…

Fork of Vega-Lite API Template 8

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Vega-Lite API Template 8

0
RRobert Johnson
Last edited Nov 3, 2021
Created on Nov 3, 2021

This visualization uses a Vega-Lite API spec to render two scatter plots of UCI Auto MPG data, with points colored by vehicle class. The main chart (drawn via vega-lite-api) maps the fields "8" and "10" to axes, while a second, smaller repeat-plot cycles through columns and rows for facet exploration. The interface includes a config for dark axis labels and a tooltip handler from vega-tooltip. Data is loaded asynchronously via `d3.csv`, and both charts are embedded in a wrapper using SVG rendering.

AI-generated description

A visualization constructed using the vega-lite-api.

The data shown here comes from the UCI Machine Learning Repository: Auto MPG Data Set, via Gist: Scatter Plot with Menus.

Comments

Sign in to join the discussion.

MIT Licensed