# Dies ist eine Überschrift

## A Button
<lively-script><script>var button = <button click={evt =>{ lively.notify("hi") }}>Hello</button></script> </lively-script>
## A Text Editor
<lively-script><script>var comp; (async () => { comp = await (<lively-code-mirror></lively-code-mirror>) comp.value = "// this is some text" lively.setExtent(comp, lively.pt(800,300)) return comp })()</script> </lively-script>

## A Bar Chart
<lively-script><script>import d3 from "src/external/d3.v5.js" var bar; (async () => { var div = bar = await (<d3-barchart position="absolute"></d3-barchart>) lively.setExtent(bar, lively.pt(300,400)) bar.config({ color(d) { if (!this.colorGen) { this.colorGen = d3.scaleOrdinal(d3.schemeCategory10); } return this.colorGen(d.label) } }); bar.setData([ {label: "a", x0: 0, x1: 14, children: [ {label: "a1", x0: 4, x1: 8}, {label: "a2", x0: 8, x1: 12}, ]}, {label: "b", x0: 3, x1: 8}, {label: "c", x0: 5, x1: 15}, {label: "d", x0: 2, x1: 16}, {label: "e", x0: 0, x1: 23}, {label: "f", x0: 10, x1: 42, children: [ {label: "f1", x0: 11, x1: 16}, {label: "f2", x0: 18, x1: 40}, ]} ]) bar.updateViz() // css hack return <div style="position:relative">{bar}</div> })()</script> </lively-script>
