This is the code repository for Learn Charts.js, published by Packt.
Create interactive visualizations for the Web with Chart.js 2
Chart.js is a free, open-source data visualization library, maintained by an active community of developers in GitHub, where it rates as the second most popular data visualization library. If you want to quickly create responsive Web-based data visualizations for the Web, Chart.js is a great choice.
This book covers the following exciting features:
- Learn how to create interactive and responsive data visualizations using Chart.js
- Learn how to create Canvas-based graphics without Canvas programming
- Create composite charts and configure animated data updates and transitions
- Efficiently display quantitative information using bar and line charts, scatterplots, and pie charts
- Learn how to load, parse, and filter external files in JSON and CSV formats
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
const chartObj = {…}; // the chart data is here
const context = canvas.getContext("2d");
new Chart(context, chartObj); // this will display the chart in the canvas
Following is what you need for this book: The ideal target audience of this book includes web developers and designers, data journalists, data scientists and artists who wish to create interactive data visualizations for the Web. Basic knowledge of HTML, CSS, and JavaScript is required. No Canvas knowledge is necessary.
With the following software and hardware list you can run all code files present in the book (Chapter 1-7).
Chapter | Software required | OS required |
---|---|---|
1-7 | Chart.js JavaScript library and plugins | Windows, MacOS, linux |
Helder da Rocha has taught, written, and developed applications with Java and web technologies since 1995. In 1996 he wrote one of the first books in Portuguese about HTML and JavaScript. Since then he has created hundreds of presentations, tutorials, and course materials on Java, Java EE, programming tools, patterns, techniques, methodologies, HTML, CSS, JavaScript, SVG, XML, data visualization, Arduino, and Internet of Things. He holds a master's degree in computer science. He also has a background in the visual arts and design and has some of his artwork in permanent museum exhibits. He lives in São Paulo, Brazil, where he works as an independent consultant, developer, and instructor, and is a frequent speaker at technological events.
Click here if you have any feedback or suggestions.