Packets surround us. Although search engines and other applications prefer text-based representation of data, it is found that visualization is easier to understand. At the beginning of this year, SitePoint published Aurelio's article "Chart. js Introduction". After in-depth study of Chart. js functions, this article will explain some of the highlights of this introduction.
Basics
Chart. js is an open-source HTML5-based Chart library that allows you to easily and easily draw beautiful charts.
Main features include:
1. Six different table types are supported: graph, bar chart, pie chart, radar chart, polar region chart, and cycle chart.
2. HTML5-based development, supporting all browsers (including IE7/8 ).
3. It does not depend on any other database and is only 4.5k in size and can be customized.
Chart. js is a responsive, flexible, lightweight Chart Library Based on HTML5 canvas. The Library provides six different chart types, each with a series of custom options. If this is not enough, you can create your own chart type.
Chart. the code for the six chart types in js is only 11 kb in total, and gzip compression is performed. In addition, the Library is modular and you can only use the chart types you need, this further saves space. Below is the cdnjs link that contains the library.
JavaScript