Best Colleges: Rank vs Cost
This example plots 650 colleges from the Forbes Best Colleges 2019 list, with rank on the x-axis and net price on the y-axis, using a circle mark colored by public or private status. It shows that while public schools tend to cost less, there is no strong correlation between rank and price. The visualization is built with the Vega-Lite API, which registers vega and vega-lite, and loads CSV data via d3.csv. Axis labels and titles are customized through a config object, and tooltips display the college name.
AI-generated descriptionA program that loads and parses some CSV data from the Forbes Best Colleges of 2019 list.
The visualization shows the distribution of colleges plotted by rank along the X axis and net price along the Y Axis. Color indicates the university is either private or public.
It's unsurprising that public schools are generally less expensive, but it is interesting that the cost isn't highly correlated with rank.