Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task8_Question4

Public visualization

Viewing a saved revision (read-only)

b27177aeb95e460180f1bfe314d3c9c9

Task8_Question4

0 stars0🌍 Public
Nneerajreddyaluka@gmail.com
Last edited Apr 17, 2024
Created on Apr 17, 2024

This visualization displays the maximum price of electric vehicles for each brand as a bubble chart, with the y-axis and bubble size both encoding price. It uses a categorical x-axis for brand names, which are rotated for readability. The code loads CSV data with `d3.csv`, groups data by brand using `d3.group`, and finds the maximum price per brand. It renders SVG circles with position determined by `d3.scaleBand` and `d3.scaleLinear`, and encodes price through both the radius (`d3.scaleSqrt`) and color (`d3.scaleSequential` with `d3.interpolatePlasma`). Axes are added using `d3.axisBottom` and `d3.axisLeft`.

AI-generated description