Skip to content

Conversation

@Fil
Copy link
Contributor

@Fil Fil commented Jan 26, 2022

TypeError: Cannot read properties of undefined (reading '0')

Plot.dot({ length: 1 }).plot()

The original use case was in a circlePacking layout where we would have Plot.dot({length:10}, circlePack({r: Math.random})).

However that use case is now solved by having the circlePack layout explicitly pass x: null, y: null. So maybe not worth the potential performance hit of checking each datum against null?

@Fil Fil requested a review from mbostock January 26, 2022 20:21
@mbostock mbostock merged commit 16dbbc9 into main Jan 26, 2022
@mbostock mbostock deleted the fil/crash-undefined-data branch January 26, 2022 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants