Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
100pah committed Mar 20, 2018
1 parent cf6dadc commit de58767
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/chart/lines/LinesSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ var LinesSeries = SeriesModel.extend({
visualColorAccessPath: 'lineStyle.color',

init: function (option) {
// The input data may be null/undefined.
option.data = option.data || [];

// Not using preprocessor because mergeOption may not have series.type
compatEc2(option);

Expand All @@ -56,6 +59,9 @@ var LinesSeries = SeriesModel.extend({
},

mergeOption: function (option) {
// The input data may be null/undefined.
option.data = option.data || [];

compatEc2(option);

if (option.data) {
Expand Down

0 comments on commit de58767

Please sign in to comment.