Answers for "vuejs my chart load before fetch data"

0

vuejs my chart load before fetch data

Your issue is that API requests are async. So it happens that your chart will be rendered, before your API request finishes. A common pattern is to use a loading state and v-if.

There is an example in the docs: https://vue-chartjs.org/guide/#chart-with-api-data
Posted by: Guest on January-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language