Skip to content

Latest commit

 

History

History
49 lines (26 loc) · 1.6 KB

File metadata and controls

49 lines (26 loc) · 1.6 KB

Chart.js, Canvas :

Why using Charts?

Chart are far better for displaying data visually than tables and have the added benefit that no one is ever going to press-gang them into use as a layout tool.

They’re easier to look at and convey data quickly, but they’re not always easy to create.

Charts Types :

  • <line chart>
  • <pie chart>
  • <bar chart>

Example :

  1. Line Cart:

  1. Pie Chart:

  1. Bar Chart:

What is<canvas> element ?

The HTML <canvas> element is used to draw graphics, on the fly, via JavaScript.

The <canvas> element is only a container for graphics. You must use JavaScript to actually draw the graphics.

Canvas has several methods for drawing paths, boxes, circles, text, and adding images.

Examples output as using canvas:

For more information 🙂

© 2021