mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
* Relocate chart type and dataset type defaults * Update types * Separate overrides and descriptors * Update derived sample, use merge for inherit * Don't merge overrides * Review update
10 lines
236 B
TypeScript
10 lines
236 B
TypeScript
import { Chart } from '../index.esm';
|
|
|
|
Chart.defaults.scales.time.time.minUnit = 'day';
|
|
|
|
Chart.defaults.plugins.title.display = false;
|
|
|
|
Chart.defaults.datasets.bar.backgroundColor = 'red';
|
|
|
|
Chart.defaults.animation = { duration: 500 };
|