Skip to content

Commit

Permalink
fix(scatter): 修复因 line 返回 false 引起的问题
Browse files Browse the repository at this point in the history
fix #246
  • Loading branch information
quietcoder committed Apr 19, 2018
1 parent 947e0b1 commit 679dc49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/packages/scatter/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ const scatter = (columns, rows, settings, extra) => {
dimension: dimension ? [dimension] : undefined
})
const options = line(columns, rows, lineSettings, extra)
if (!options || !options.series) return {}
options.series.forEach(item => {
Object.assign(item, {
type: 'scatter',
Expand Down

0 comments on commit 679dc49

Please sign in to comment.