19 lines
312 B
JavaScript
Executable file
19 lines
312 B
JavaScript
Executable file
"use strict";
|
|
|
|
module.exports = function(Chart) {
|
|
|
|
var helpers = Chart.helpers;
|
|
|
|
var defaultConfig = {
|
|
aspectRatio: 1
|
|
};
|
|
|
|
Chart.Radar = function(context, config) {
|
|
config.options = helpers.configMerge(defaultConfig, config.options);
|
|
config.type = 'radar';
|
|
|
|
return new Chart(context, config);
|
|
};
|
|
|
|
};
|