February 2019
Beginner to intermediate
284 pages
6h 20m
English
The Chart.default context contains an object for each chart type supported in Chart.js. The types are in the following table, which also lists some of the properties previously configured in each one. These properties may override the global defaults for chart styles and elements (Chart.default.global) and the default properties for scales (Chart.default.scales). You can define new defaults by changing these properties in the Chart.default context, or locally inside an options object:
|
Object |
Description |
Default properties (selection) |
|
bar |
The default properties for bar charts |
hover.mode = 'label'scales.xAxes[0].type = 'category'scales.yAxes[0].type = 'linear' |
|
horizontalBar |
The default properties for horizontal ... |
Read now
Unlock full access