First, I'll create a Vue project.
We'll use hchs-vue-charts version 1.2.8.
We need to explicitly tell the version when we install it.
We'll create a doughnut chart.
We'll also need to install Chart.js.
Open your project in a text editor.
Now, install the packages.
Import and use them in main.js.
Serve the project then go to localhost:8080.
We'll create the chart in the HelloWorld component.
Use this tag to create the chart.
Let's add the labels.
Now, add the data and color.
Let's add the title below the chart.
Finally, bind the data.
There you go.
