mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-23 00:26:52 +01:00
Now that the aspect ratio is correctly handled, fix samples for charts with aspect ratio of 1 which was vertically too large. Also fix the default aspect ratio for radar charts which wasn't applied when creating a chart directly using new Chart(ctx, { type: 'radar' }).
12 lines
165 B
JavaScript
12 lines
165 B
JavaScript
'use strict';
|
|
|
|
module.exports = function(Chart) {
|
|
|
|
Chart.Radar = function(context, config) {
|
|
config.type = 'radar';
|
|
|
|
return new Chart(context, config);
|
|
};
|
|
|
|
};
|