Understanding gas consumption vs weight and number of cylinders

Dataset: mtcars

Objective: understand the relationship of various factors to gas mileage (mpg).

I plot weight (wt) in “x” vs. mileage per gallon (mpg) in “y”.

I grouped by cylinders (cyl) as colors.

Visualizing the Data with plotly