Skip to content

Commit

Permalink
未加载图表类型输出控制台错误
Browse files Browse the repository at this point in the history
  • Loading branch information
kener committed Mar 31, 2014
1 parent fae88cc commit 534f71e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/echarts.js
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,7 @@ define(function(require) {
for (var i = 0, l = magicOption.series.length; i < l; i++) {
chartType = magicOption.series[i].type;
if (!chartType) {
console.error('series[' + i + '] chart type has not been defined.');
continue;
}
if (!chartMap[chartType]) {
Expand All @@ -793,6 +794,9 @@ define(function(require) {
self.chart[chartType] = chart;
}
}
else {
console.error(chartType + ' has not been required.');
}
}

_island.render(magicOption);
Expand Down

0 comments on commit 534f71e

Please sign in to comment.