Skip to content

Commit

Permalink
Reduce horizontal bar example data
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Oct 13, 2023
1 parent 464168a commit c93f8e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/routes/docs/examples/Bars/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import { createDateSeries, longData } from '$lib/utils/genData';
const data = createDateSeries({
count: 30,
count: 10,
min: 20,
max: 100,
value: 'integer',
Expand Down Expand Up @@ -162,7 +162,7 @@
<Axis placement="bottom" grid rule />
<Axis placement="left" format={(d) => formatDate(d, PeriodType.Day, 'short')} rule />
<Bars radius={4} strokeWidth={1} class="fill-gray-300" />
<Highlight area bar={{class: "fill-accent-500", strokeWidth: 1, radius: 4}} />
<Highlight area bar={{ class: 'fill-accent-500', strokeWidth: 1, radius: 4 }} />
</Svg>
<Tooltip header={(data) => format(data.date, 'eee, MMMM do')} let:data>
<TooltipItem label="value" value={data.value} />
Expand All @@ -171,7 +171,6 @@
</div>
</Preview>


<h2>with Labels and negative data</h2>

<Preview>
Expand Down

1 comment on commit c93f8e1

@vercel
Copy link

@vercel vercel bot commented on c93f8e1 Oct 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.