* @return {object[]}
*/
chartOptionScopes() {
+ const controllerDefaults = defaults.controllers[this.type] || {};
return [
this.options,
- defaults.controllers[this.type] || {},
+ controllerDefaults,
+ controllerDefaults.datasets || {},
{type: this.type},
defaults,
defaults.descriptors
defaults.controllers.line.spanGaps = false;
});
+ it('should initialize config with default dataset options', function() {
+ var defaults = Chart.defaults.controllers.pie.datasets;
+
+ var chart = acquireChart({
+ type: 'pie'
+ });
+
+ var options = chart.options;
+ expect(options.circumference).toBe(defaults.circumference);
+ });
+
it('should override axis positions that are incorrect', function() {
var chart = acquireChart({
type: 'line',