1 |
var yAxisExtend = { 'title': { 'text': null } }; var options = {}; options.yAxis = [{ type: 'extra', bla: 'aaa' }, { bee: 'bbb' }];
if (options.yAxis instanceof Array) { var normalAxis, extraAxis; $.each(options.yAxis, function() { if (this.type === 'extra') { extraAxis = $.extend({}, yAxisExtend, this); } else { normalAxis = $.extend({}, yAxisExtend, this); } }); yAxisExtend = [normalAxis, extraAxis]; } else if (options.yAxis !== undefined) { yAxisExtend = $.extend({}, yAxisExtend, options.yAxis); }
var chartsOptions = { yAxis: $.extend(true, [], yAxisExtend), };
|
pending… |
2 |
var yAxisExtend = { 'title': { 'text': null } }; var options = {}; options.yAxis = [{type: 'extra', bla: 'aaa'},{bee : 'bbb'}];
if (options.yAxis instanceof Array) { var normalAxis, extraAxis; $.each(options.yAxis, function() { if (this.type === 'extra') { extraAxis = $.extend({}, yAxisExtend, this); } else { normalAxis = $.extend({}, yAxisExtend, this); } }); yAxisExtend = [normalAxis, extraAxis]; } else if (options.yAxis !== undefined) { yAxisExtend = $.extend({}, yAxisExtend, options.yAxis); }
var chartsOptions = { yAxis: $.extend(true, [], yAxisExtend), };
|
pending… |
0 comments