interface ChartJs.Defaults
implements CoreChartOptions<ChartType>, ElementChartOptions<ChartType>, PluginChartOptions<ChartType>
import { type ChartJs } from "https://deno.land/x/fresh_charts@0.3.1/deps.ts";
const { Defaults } = ChartJs;
Properties
scale: ScaleOptionsByType
scales: [key in ScaleType]: ScaleOptionsByType<key>
Methods
Routes the named defaults to fallback to another scope/name. This routing is useful when those target values, like defaults.color, are changed runtime. If the values would be copied, the runtime change would not take effect. By routing, the fallback is evaluated at each access, so its always up to date.
Example:
defaults.route('elements.arc', 'backgroundColor', '', 'color')
- reads the backgroundColor from defaults.color when undefined locally