iterating over undefined map #3656
-
Beta Was this translation helpful? Give feedback.
Answered by
mbostock
Jun 1, 2023
Replies: 1 comment 1 reply
-
I think the error is because you’re calling PieChart with no arguments in the template: 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 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Karljoy973
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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