Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
YYu Wang
Last edited Aug 14, 2024
Created on Aug 14, 2024

This example uses the Vega-Lite API to render a diamond dataset as a scatterplot, mapping carat to the x-axis, cut to the y-axis, and color to the diamond’s color grade, with tooltips showing cut details. The visualization is built programmatically via `vl.markPoint` and `vl.x`, `vl.y`, and `vl.color` encodings, with data loaded asynchronously using D3’s `csv` function. The chart fills the browser window and applies custom axis and label styling from a separate config module, while the Vega-Lite renderer is configured to use SVG output.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes