.. This document is auto-generated by the gosling-gallery extension. Do not modify directly. .. _gallery_bar_chart: Bar 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, ) track = gos.Track(data).mark_bar().encode( x="start:G", xe="end:G", y="peak:Q", stroke=gos.value("white"), strokeWidth=gos.value(0.5), ).properties(layout="linear", width=725, height=180) track.view(title="Basic Marks: Bar", subtitle="Tutorial Examples")