# How to have data rich documents with charts and tables?
## Data previews
- If you want to have data previews, you can use the `
` component

- It can be used with raw data
```
```
- It can be used by passing a raw csv string

```
```
- It can be used by passing a URL string

```
```
- More info on the [storybook page](https://storybook.portaljs.org/?path=/docs/components-table--docs)
## Charts
### Linecharts
- You can add simple line charts with the `` component
- Here is an example passing in a array of data

```
```
- And here passing an url

```
```
- More info on the [storybook page](https://storybook.portaljs.org/?path=/docs/components-linechart--docs)
### Vega Charts
You can add Vega charts with the `` component like this, it supports all the Vega specification:

```
```
- More info on the [storybook page](https://storybook.portaljs.org/?path=/docs/components-vega--docs)
### VegaLite Charts
- You can add VegaLite charts with the `` component like this, it supports all the VegaLite specification:

```
```
- More info on the [storybook page](https://storybook.portaljs.org/?path=/docs/components-vegalite--docs)
## Catalog
- You can add a `` component that takes a list of dataset and will provide you with a searchable interface.

- The dataset object requires the following structure
```
_id //A unique identifique for the item in the catalog
metadata //The dataset metadata
url_path //The url for the dataset showcase page
```
- You can also add facets that are going to act as filters for your metadata

- More info on the [storybook page](https://storybook.portaljs.org/?path=/docs/components-catalog--docs)