Shapes with SVG and CSS
✓ Published1🌍 Public
This example shows how SVG shapes and CSS styling combine in a VizHub page. It draws a circle and a rectangle directly in the HTML markup, with a gray border around the SVG canvas. The page also demonstrates ES6 module imports, as `getCars` returns a promise that resolves after a delay to feed car data into `generateReport`, which filters by price and formats a text report. The report appears in a separate message element, while the SVG rendering stays static. The code uses native SVG elements and standard JavaScript promises, with no external visualization libraries.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed