Skip to content

D3 candlestick example error #3614

Answered by Fil
curtispaullithia asked this question in Q&A
Dec 19, 2022 · 2 comments · 10 replies
Discussion options

You must be logged in to vote

In this notebook the cell that reads the data converts the date field from a string to a javascript Date, thanks to the typed: true option

aapl = FileAttachment("aapl-2.csv").csv({typed: true}).then(data => data.slice(-120))

In a typical use of D3 you might use d3.csv("url of the file", d3.autyType) instead.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@curtispaullithia
Comment options

@curtispaullithia
Comment options

@curtispaullithia
Comment options

@mbostock
Comment options

@curtispaullithia
Comment options

Answer selected by Fil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants