Skip to main content
100%

Cylinders relation to Horsepower

✓ Published1🌍 Public
Kkfhujosefsson@dons.usfca.edu
Last edited Feb 3, 2025
Created on Feb 3, 2025

This example displays the relationship between engine cylinders and horsepower as a scatter plot, with horsepower on the x-axis and cylinder count on the y-axis. Each data point represents a car from a CSV file loaded via p5.js’s `loadTable` function, sourced from a gist by karldif01. The visualization is rendered using Plotly’s JavaScript API, specifically `Plotly.newPlot`, within a p5.js sketch, with axes labeled "Power (hp)" and "Cylinders" and a title "Cylinders vs Horsepower."

AI-generated description
MIT Licensed

Similar vizzes