February 2019
Beginner to intermediate
284 pages
6h 20m
English
Graphical elements are the primitives used to render visualizations of datasets in different types of charts. You can define defaults for them configuring the four objects in the Chart.defaults.global.elements context, listed as follows. Some of these properties are overridden in the defaults for certain charts, so changing them at this level may not cause any effect:
|
Object |
Description |
Default properties |
|
arc
|
The default properties for Canvas arcs, which are used in pie, doughnut, and polar area charts. |
backgroundColor:"rgba(0,0,0,0.1)"borderColor:"#fff"borderWidth:2 |
|
line |
The default properties for Canvas lines, which are used in line and radar charts. See Chapter 2, Technology Fundamentals, for Canvas ... |
Read now
Unlock full access