File tree Expand file tree Collapse file tree 1 file changed +8
-63
lines changed Expand file tree Collapse file tree 1 file changed +8
-63
lines changed Original file line number Diff line number Diff line change @@ -2,67 +2,12 @@ import * as Plot from "@observablehq/plot";
2
2
import * as d3 from "d3" ;
3
3
4
4
export default async function ( ) {
5
- const plotsrc = `
6
- src/channel.js
7
- src/scales.js
8
- src/warnings.js
9
- src/format.js
10
- src/marks/line.js
11
- src/marks/cell.js
12
- src/marks/rect.js
13
- src/marks/arrow.js
14
- src/marks/box.js
15
- src/marks/tree.js
16
- src/marks/link.js
17
- src/marks/vector.js
18
- src/marks/dot.js
19
- src/marks/image.js
20
- src/marks/area.js
21
- src/marks/rule.js
22
- src/marks/marker.js
23
- src/marks/bar.js
24
- src/marks/tick.js
25
- src/marks/text.js
26
- src/marks/frame.js
27
- src/legends/swatches.js
28
- src/legends/ramp.js
29
- src/legends.js
30
- src/axis.js
31
- src/memoize.js
32
- src/options.js
33
- src/dimensions.js
34
- src/index.js
35
- src/style.js
36
- src/plot.js
37
- src/scales/quantitative.js
38
- src/scales/diverging.js
39
- src/scales/temporal.js
40
- src/scales/index.js
41
- src/scales/ordinal.js
42
- src/scales/schemes.js
43
- src/transforms/normalize.js
44
- src/transforms/inset.js
45
- src/transforms/bin.js
46
- src/transforms/tree.js
47
- src/transforms/interval.js
48
- src/transforms/window.js
49
- src/transforms/select.js
50
- src/transforms/identity.js
51
- src/transforms/basic.js
52
- src/transforms/map.js
53
- src/transforms/group.js
54
- src/transforms/stack.js
55
- src/defined.js
56
- src/math.js
57
- src/axes.js
58
- src/curve.js
59
- ` . trim ( ) . split ( "\n" ) . sort ( ) ;
60
- return Plot . plot ( {
61
- style : "padding: 1px; border: solid;" ,
62
- axis : null ,
63
- inset : 10 ,
64
- insetRight : 120 ,
65
- height : 500 ,
66
- marks : Plot . tree ( plotsrc , { markerEnd : "arrow" } )
67
- } ) ;
5
+ const flare = await d3 . csv ( "data/flare.csv" , d3 . autoType ) ;
6
+ return Plot . plot ( {
7
+ axis : null ,
8
+ inset : 10 ,
9
+ insetRight : 120 ,
10
+ height : 1800 ,
11
+ marks : Plot . tree ( flare , { markerEnd : "arrow" , path : "name" , delimiter : "." } )
12
+ } ) ;
68
13
}
You can’t perform that action at this time.
0 commit comments