Basic CartoDB Layer in D3
✓ Published0🌍 Public
Aandrewxhill
Last edited Jan 4, 2013
Created on Jan 4, 2013
This example displays geographic features from a CartoDB table as violet polygons on a map. It uses D3.js with a GeoJSON data format to load the geometry through the CartoDB SQL API. The code applies `d3.geoPath` with a projection to convert GeoJSON coordinates into SVG path data, appending `path` elements to a selected layer. The map relies on the `d3.json` method to fetch the data asynchronously and render it directly into the SVG.
AI-generated description