.. This document is auto-generated by the gosling-gallery extension. Do not modify directly. .. _gallery_line_chart: Line Chart ========== .. gosling-plot:: :code-below: import gosling as gos data = gos.multivec( url="https://resgen.io/api/v1/tileset_info/?d=UvVPeLHuRDiYA3qwFlm7xQ", row="sample", column="position", value="peak", categories=["sample 1"], binSize=5, ) domain = gos.GenomicDomain(chromosome="chr1", interval=[1, 30005000]) track = gos.Track(data).mark_line().encode( x=gos.X("position:G", domain=domain, axis="bottom"), y="peak:Q", size=gos.value(2), ).properties(layout="linear", width=725, height=180) track.view(title="Basic Marks: Line", subtitle="Tutorial Examples")