plot.ts hinzugefügt
							parent
							
								
									b0f1a49375
								
							
						
					
					
						commit
						715a3d0f4d
					
				|  | @ -0,0 +1,9 @@ | |||
| import * as Plot from "npm:@observablehq/plot"; | ||||
| import { DOMParser, SVGElement } from "npm:linkedom"; | ||||
| export const document = new DOMParser().parseFromString( | ||||
|   `<!DOCTYPE html><html></html>`, | ||||
| ); | ||||
| 
 | ||||
| export const plot = (data) => { | ||||
|     return Plot.line(data, {x: "x", y: "y"}).plot({y: {grid: true}, document}) | ||||
| } | ||||
		Loading…
	
		Reference in New Issue