Skip to content

Commit

Permalink
fixes error when no data is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Oct 31, 2016
1 parent 20b50d1 commit 9ffa7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Priestley.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class Priestley extends Viz {
});

const axisConfig = {
domain: [min(data, d => d.start), max(data, d => d.end)],
domain: [min(data, d => d.start) || 0, max(data, d => d.end) || 0],
height: this._height - this._margin.top - this._margin.bottom,
width: this._width - this._margin.left - this._margin.right
};
Expand Down

0 comments on commit 9ffa7ad

Please sign in to comment.