forked from observablehq/plot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[] is an empty facet (observablehq#1216)
* [] is an empty facet closes observablehq#1212 alternative to observablehq#1215 * consistent filtering Co-authored-by: Mike Bostock <[email protected]>
- Loading branch information
1 parent
d5be54e
commit 721df8e
Showing
8 changed files
with
68 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import * as Plot from "@observablehq/plot"; | ||
|
||
export default async function () { | ||
const data = [ | ||
{PERIOD: 1, VALUE: 3, TYPE: "c"}, | ||
{PERIOD: 2, VALUE: 4, TYPE: "c"} | ||
]; | ||
return Plot.plot({ | ||
facet: {data, x: "TYPE"}, | ||
fx: {domain: ["a", "b"]}, | ||
marks: [Plot.barY(data, {x: "PERIOD", y: "VALUE"})] | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters