Skip to main content
100%

Bike Rental DataViz using Vega-Lite API

✓ Published1🌍 Public
SStefanZhang
Last edited Sep 18, 2020
Created on Sep 12, 2020

This example visualizes daily bike rental counts across months, colored by weather condition, using a scatter plot with circle marks. It reveals higher rental volumes during warmer months (March–October) and notable drops during extreme weather events, especially in summer. The visualization is built with the Vega-Lite API, registered through Vega and Vega-Lite, and renders as SVG with tooltips powered by vega-tooltip. Data is loaded asynchronously from a CSV file via D3’s `csv` function, with custom axis and label styling defined in a separate configuration module.

AI-generated description

A visualization constructed using the vega-lite-api. The data shown here comes from the Bike retal data set

Findings:
It turns out warm days has the most numbers of rental per day(Mar - Oct). During cooler days not so much(Nov-Feb). Weather also plays a big factors, during normal days(1) tends to have more rentals, but during extream weather (3) in summer times, rental number tends to drop significantly.

MIT Licensed

Similar vizzes