Skip to main content
100%

Drop shadow on text in v4

✓ Published0🌍 Public
Dd3noob
Last edited Jul 12, 2016
Created on Jul 12, 2016

This example shows a line and area chart of stock closing prices over time, with a title that includes a drop shadow effect. The chart uses a semi-transparent white stroke behind the main text to create the shadow, with the title duplicated in two text elements. The data is loaded from a CSV file and parsed with `d3.timeParse`, while the chart elements are built using `d3.area`, `d3.line`, and the axis functions `d3.axisBottom` and `d3.axisLeft`, all rendered as SVG.

AI-generated description

This is a simple graph demonstrating the addition of text with a drop shadow in conjunction with an area graph. This was written using d3.js v4 and is a follow on to the graph example here.

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

Similar vizzes