Task8_Question4
✓ Published0🌍 Public
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 descriptionMIT Licensed