Fork of Vega-Lite API Template
This example presents a scatter plot showing the relationship between conspiracy mentality and belief in the “China Corona Conspiracy” (both on 1-7 scales) using data from the UCI Machine Learning Repository’s Auto MPG dataset, despite the filename referencing `conspiracyStudy.csv`. Each circle is rendered semi-transparent to reveal overlapping points. The visualization is built with the Vega-Lite API, which registers Vega and Vega-Lite, and uses a custom configuration to style axes and labels. The chart is generated via D3’s `csv` loader and then rendered into an SVG, with tooltips enabled through Vega-Tooltip.
AI-generated descriptionA 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.