Skip to content

Latest commit

 

History

History
41 lines (21 loc) · 1.48 KB

201Read12.md

File metadata and controls

41 lines (21 loc) · 1.48 KB

Reading 12 - Chart.js, Canvas

Source: JavaScript Canvas

Q1 What does the allow a developer to acheive?

It allows you to make 2D graphics using JavaScript.

Q2 What is the importance of the closing ` tag?

The canvas element requires the closing tag canvas. Any content between the opening and closing tags is fallback content that will display only if the browser doesn’t support the canvas element.

Q3 Explain what the getContext() method does.

The getContext() method returns a render context object.

Source: Chart.js

Q4 What is Chart.js and how it can be brought into your project?

Chart.js the most popular charting library for JavaScript developers. It can be used in the odd-duck project to create charts and graphs of the number of clicks each item received.

Q5 List 3 different Chart types you can create using Chart.js.

  • Bar Chart

  • Line Chart

  • Pie/Donut Chart

Q6 What are some advantages to displaying data via a chart over a table?

Source: Web Designer Depot

Q7 How could Chart.js aid your previously created applications visually?

Chart.js could be used for the salmon-cookies project to make a bar chart displaying how many cookies were sold each hour.

Things I want to know more about

  • How to integrate Chart.js with HTML/JavaScript