Untitled
✓ Published0🌍 Public
This example presents a static scatter plot that visualizes the relationship between engine horsepower and fuel efficiency (MPG) for a small set of car brands, including Ford and BMW. Built with React and D3.js (v7), the SVG visualization uses `d3.scaleLinear` to map data to axes and `d3.schemeCategory10` for color coding, with a legend identifying each brand. Mouse interactions trigger a tooltip that displays the brand, horsepower, and MPG values. The chart includes labeled axes and a title, all rendered through SVG elements.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed