万本电子书0元读

万本电子书0元读

顶部广告

Learn Chart.js电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Helder da Rocha

出  版  社:Packt Publishing

出版时间:2019-02-28

字       数:28.9万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Design interactive graphics and visuals for your data-driven applications using the popular open-source Chart.js data visualization library. Key Features * Harness the power of JavaScript, HTML, and CSS to create interactive visualizations * Display quantitative information efficiently in the form of attractive charts by using Chart.js * A practical guide for creating data-driven applications using open-source JavaScript library Book Description 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 guides the reader through dozens of practical examples, complete with code you can run and modify as you wish. It is a practical hands-on introduction to Chart.js. If you have basic knowledge of HTML, CSS and JavaScript you can learn to create beautiful interactive Web Canvas-based visualizations for your data using Chart.js. This book will help you set up Chart.js in a Web page and show how to create each one of the eight Chart.js chart types. You will also learn how to configure most properties that override Chart’s default styles and behaviors. Practical applications of Chart.js are exemplified using real data files obtained from public data portals. You will learn how to load, parse, filter and select the data you wish to display from those files. You will also learn how to create visualizations that reveal patterns in the data. This book is based on Chart.js version 2.7.3 and ES2015 JavaScript. By the end of the book, you will be able to create beautiful, efficient and interactive data visualizations for the Web using Chart.js. What you will learn * 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 * Understand the benefits of using a data visualization framework Who this book is for 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.
目录展开

Title Page

Copyright and Credits

Learn Chart.js

About Packt

Why subscribe?

Packt.com

Contributors

About the author

About the reviewer

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Conventions used

Get in touch

Reviews

Introduction

Data visualization

Chart types

Choosing a chart

Web-based visualizations

Why use a data visualization library?

Creating data visualizations for the Web

How to use this book

Summary

References

Technology Fundamentals

Essential JavaScript for Chart.js

Browser tools

JavaScript types and variables

Data structures used in charts

Arrays

Strings

Functions

Objects

Other technologies

HTML Document Object Model(DOM)

Cascading Style Sheets

JQuery fundamentals

HTML5 Canvas

Data formats

CSV

XML

JSON

Loading and parsing external data files

Using a Web server

Loading files using standard JavaScript

Loading files using JQuery

Loading files using the standard Fetch API

Parsing JSON

Parsing CSV

Loading multiple files

Displaying a map

Extracting and transforming data

Online tools

Extracting data with XPath

Summary

Chart.js - Quick Start

Introduction to Chart.js

Installation and setup

Creating a simple bar chart

Setting up the graphics context

Creating a bar chart

Configuring colors, fonts, and responsiveness

Dataset configuration for bar charts

Options configuration

Text and fonts

Global defaults

Transitions, interactions, and tooltips

Transition duration

Updating charts

Tooltips

Working with larger and multiple datasets

Loading data

Horizontal bar chart

Adding extra datasets

Stacking bars

Summary

References

Creating Charts

Line and area charts

Creating a simple line chart

Dataset configuration

Options configuration for line charts

Line charts with more than one dataset

Loading data from external files

Stacked area charts

Radar charts

Pie and doughnut charts

Creating a simple pie chart

Dataset properties for pie charts

Configuration options

How to show values in the slices

Preparing data for pie and doughnut charts

Changing the circumference

Pie and doughnut charts with multiple datasets

Polar area charts

Scatter and bubble charts

Creating a scatter chart

Revealing correlations with scatter charts

Scatter charts with large quantities of data

Bubble charts

Summary

References

Scales and Grid Configuration

Configuring scales

Cartesian configuration options

Cartesian axes, ticks, and grid lines

Numeric Cartesian scales

Linear scales

Logarithmic scales

Configuring axis titles

Configuring ticks

Configuring grid lines

Category scales

Configuring the axes

Configuring ticks

Configuring grid lines

Time scales

Configuring the time format

Configuring the axes

Configuring ticks

Configuring grid lines

Radial scales

Configuring point labels

Configuring ticks

Configuring grids and angle lines

Configuring advanced scales

Multiple Cartesian axes

Callbacks

The scale service

Summary

References

Configuring Styles and Interactivity

Default configuration

Global defaults

Scale defaults

Graphical elements

Chart defaults

Fonts

Selecting standard fonts

Using Web fonts

Colors, gradients, patterns, and shadows

Configuring colors

Color schemes and palettes

Gradients

Patterns

Shadows and bevels

Adding text elements and labels

Legends and labels

Titles

Adding labels to lines, bars, and slices

Interactions, data updates, and animations

Data updates

Events

Configuring animations

Summary

References

Advanced Chart.js

Tooltip configuration

Hovering interactions

Scriptable properties

Tooltip callbacks

Custom HTML tooltips

Advanced legend configuration

Generating labels

HTML legends

Displaying multiple charts

Rendering many charts on one page

Mixed charts

Overlaying a canvas

Extending Chart.js

Prototype methods

Creating plugins

Chart.js extensions

Summary

References

Other Books You May Enjoy

Leave a review - let other readers know what you think

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部