Charts for Vue.js 3: Data Visualization with ChartJS
Plans from $25/month

This lesson is for members. Join us?

Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.

Vue.js Charts with Async Data

Most often you want to display charts for data that comes from an API endpoint. In this lesson, let’s cover a couple of issues you’ll run into when doing so and how to solve each of them.

  • Use computed props to adapt data from an API endpoint to the shape the chart component expects
  • Use v-if to display the chart only after the data is available