Skip to main content
100%

Drop shadow on text in v6

✓ Published0🌍 Public
Dd3noob
Last edited Sep 12, 2020
Created on Sep 12, 2020

This chart displays a time series of stock closing prices over a month, rendered as both a light blue area graph and a steel-blue line. A title with a white drop-shadow effect is created by duplicating the text element, with the underlying copy styled using a thick white stroke. The visualization uses d3.js v6, leveraging `d3.csv`, `d3.scaleTime`, `d3.area`, `d3.line`, and `d3.axisBottom`/`d3.axisLeft` to build the SVG output from the CSV data.

AI-generated description

This is a simple graph demonstrating the addition of text with a drop shadow in conjunction with an area graph.

This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 6 of d3.js.

mit Licensed

Similar vizzes