🌍 Public
Viewing a saved revision (read-only)
e4c70276084849b99405bf89297bc0ed
Line chart
This line chart example visualizes the diverging value of a dataset, highlighting where it crosses a threshold line. Built with D3.js, it uses a red background and white grid lines to emphasize the black bars and the dashed limit. The chart reads data from an embedded source and renders text labels for the title, axis, and individual values. The code leverages D3’s SVG construction and styling via CSS, with a custom grid and path configuration to present the data clearly.
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.