Map
This example demonstrates the flexibility of D3 and React by rendering an interactive world map with adjustable projections. Users can switch between various projection types, such as mercator, orthographic, and equirectangular, while modifying scale, rotation, center, and other properties. The map displays country boundaries alongside a graticule, with controls for border width, dash pattern, background color, and an invert toggle. The visualization uses `topojson` for country data, `d3-geo` for projections and geographic shapes, and React to manage the user interface.