Skip to content

Commit

Permalink
example
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Apr 11, 2022
1 parent c59aec2 commit e74e22a
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
52 changes: 52 additions & 0 deletions test/output/greekGods.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions test/plots/greek-gods.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import * as Plot from "@observablehq/plot";

export default async function() {
const gods = `Chaos Gaia Mountains
Chaos Gaia Pontus
Chaos Gaia Uranus
Chaos Eros
Chaos Erebus
Chaos Tartarus`.split("\n").map(d => d.split(" "));
return Plot.tree(gods).plot();
}
1 change: 1 addition & 0 deletions test/plots/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export {default as gistempAnomaly} from "./gistemp-anomaly.js";
export {default as gistempAnomalyMoving} from "./gistemp-anomaly-moving.js";
export {default as gistempAnomalyTransform} from "./gistemp-anomaly-transform.js";
export {default as googleTrendsRidgeline} from "./google-trends-ridgeline.js";
export {default as greekGods} from "./greek-gods.js";
export {default as gridChoropleth} from "./grid-choropleth.js";
export {default as groupedRects} from "./grouped-rects.js";
export {default as hadcrutWarmingStripes} from "./hadcrut-warming-stripes.js";
Expand Down

0 comments on commit e74e22a

Please sign in to comment.