Skip to main content
100%

fm viz - students vs ratios

✓ Published0🌍 Public
MMahesha999
Last edited Feb 8, 2022
Created on Feb 7, 2022

This visualization shows student-to-teacher ratios across different students using two overlaid line charts, comparing two quantitative variables (d and e) for each student name. The data comes from a CSV file referenced from the UCI Machine Learning Repository. Built with Vega-Lite API and d3, the code uses vega-lite-api’s `markLine` and `encode` methods to map the categorical student names to the x-axis and the quantitative values to the y-axis, with the second line layered on top using `vl.layer` to combine both series. The visualization is rendered as an SVG, with custom styling for axes and labels defined in a configuration object.

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.

My bookmarks:

MIT Licensed

Similar vizzes