Creating a chart is sometimes complicated with components.
Google has a Google-way to create charts with the simple to use Google Charts API.
The chart below is generated online with the API using the code:
Different chart types like line charts, bar charts, pie charts, venn diagrams, or scatter plots are supported. Looks can be configured with lots of style, color, label choices