Ayush - First Visual (EV Data)
This scatter plot shows the relationship between driving range and price for electric vehicles in Germany, using color saturation to encode efficiency and revealing a general trend where longer-range vehicles tend to cost more in euros. Built with D3.js, the visualization uses `scaleLinear` for both axes, `axisBottom` and `axisLeft` for ticks, and `circle` elements with `colorScale` mapping efficiency from teal to purple. The data comes from a Kaggle dataset on electric vehicle specifications and prices, with missing "NA" values appearing as points outside the main plot margins.
AI-generated descriptionThe data visualized is from dataset "EV_Data" which was used in the 2nd assignment. [Source]: "https://www.kaggle.com/datasets/fatihilhan/electric-vehicle-specifications-and-prices"
The graph represents a scatter plot of electric vehicles, where the driving range is plotted against price. X-axis represents the driving range of the vehicle on a single charge in kilometers. Y-axis represents the price of the electric vehicle in Germany. I have used color saturation to visualize the circles across the graph.
Note: there are a few "NA" values in the dataset which is the reason why we see those points outside the margin of graph.