mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-10 10:16:50 +01:00
Default options can now be accessed by importing `core/core.defaults`. The returned object acts as a singleton and is populated when importing classes that expose their own default values (meaning that importing only `code.defaults` results in an empty object). Also make `Chart.Ticks` and `Chart.Interaction` importable since existing defaults rely on these values. Add the `defaults._set` method that make easier declaring new defaults by merging given values with existing ones for a specific scope (`global`, `scale`, `bar`, etc).
9 lines
166 B
JavaScript
9 lines
166 B
JavaScript
'use strict';
|
|
|
|
module.exports = function(Chart) {
|
|
Chart.Scatter = function(context, config) {
|
|
config.type = 'scatter';
|
|
return new Chart(context, config);
|
|
};
|
|
};
|