Skip to content

iterating over undefined map #3656

Closed Answered by mbostock
Karljoy973 asked this question in Q&A
Discussion options

You must be logged in to vote

I think the error is because you’re calling PieChart with no arguments in the template: {{ PieChart() }}.

I believe the way to do this with Vue is to use the mounted directive. You can see an example D3 Vue component here in our in-development new documentation site #3654:

https://github.com/d3/d3/blob/mbostock/vitepress/docs/components/ExampleBarChart.vue

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Karljoy973
Comment options

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