diff --git a/site/content/examples/12-svg/02-bar-chart/App.svelte b/site/content/examples/12-svg/02-bar-chart/App.svelte index d44c0e67cf..7ad21545ff 100644 --- a/site/content/examples/12-svg/02-bar-chart/App.svelte +++ b/site/content/examples/12-svg/02-bar-chart/App.svelte @@ -38,9 +38,9 @@
- + {#each yTicks as tick} - + {tick} {tick === 20 ? ' per 1,000 population' : ''} @@ -62,7 +62,7 @@ x="{xScale(i) + 2}" y="{yScale(point.birthrate)}" width="{barWidth - 4}" - height="{height - padding.bottom - yScale(point.birthrate)}" + height="{yScale(0) - yScale(point.birthrate)}" > {/each} @@ -115,4 +115,4 @@ stroke: none; opacity: 0.65; } - \ No newline at end of file +