shadcn-vue/apps/www/src/content/docs/charts/bar.md
Saeid Zareie 63732f1c47
docs: adding changelog page (#617)
* chore: adding changelog page

* docs: cleanup

---------

Co-authored-by: zernonia <zernonia@gmail.com>
2024-06-18 09:18:04 +08:00

1008 B

title description source label
Bar A line chart visually represents data using rectangular bars of varying lengths to compare quantities across different categories or groups. apps/www/src/lib/registry/default/ui/chart-bar Alpha

Installation

Only works with Vue >3.3

Run the following command

npx shadcn-vue@latest add chart-bar

Setup

Follow the guide to complete the setup.

API

Example

Stacked

You can stack the bar chart by settings prop type to stacked.

Rounded

Custom Tooltip

If you want to render custom tooltip, you can easily pass in a custom component. Refer to prop definition here.