Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Chart.js

You're reading from   Learn Chart.js Create interactive visualizations for the Web with Chart.js 2

Arrow left icon
Product type Paperback
Published in Feb 2019
Publisher
ISBN-13 9781789342482
Length 284 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Helder da Rocha Helder da Rocha
Author Profile Icon Helder da Rocha
Helder da Rocha
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Introduction FREE CHAPTER 2. Technology Fundamentals 3. Chart.js - Quick Start 4. Creating Charts 5. Scales and Grid Configuration 6. Configuring Styles and Interactivity 7. Advanced Chart.js 8. Other Books You May Enjoy

Introduction to Chart.js


Chart.js is an open source community-maintained JavaScript data visualization library based on HTML5 Canvas. At the time of writing, it is available as version 2.7.3, and comes with eight customizable chart types. It's very easy to create a chart using Chart.js. It can be as simple as loading the JavaScript library into your page, choosing a chart type, and providing it with an array of data.

All charts are configured with a default look and feel, as well as basic interactive features. You can focus on the data and quickly create a simple responsive and interactive chart that fits nicely in your page. You don't have to worry about configuring padding or margins, fitting labels in axes, adding tooltips, or controlling transitions. But if you need to change something, there are many configuration options available.

Installation and setup

To set up a web page for Chart.js, you just need to load the library. If you already have a website set up, you can download Chart.js...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image