Skip to content

Commit c4ceccb

Browse files
Filmbostock
andauthored
facet requires the data to be specified (#938)
* facet requires the data to be specified * wording * Update src/plot.js Co-authored-by: Mike Bostock <[email protected]> Co-authored-by: Mike Bostock <[email protected]>
1 parent 0a38a58 commit c4ceccb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plot.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export function plot(options = {}) {
5151
const {x, y} = facet;
5252
if (x != null || y != null) {
5353
const facetData = arrayify(facet.data);
54+
if (facetData == null) throw new Error("missing facet data");
5455
facetChannels = {};
5556
if (x != null) {
5657
const fx = Channel(facetData, {value: x, scale: "fx"});

0 commit comments

Comments
 (0)