---
title: Charts and dashboard
project: UI Builder
version: 1.0
section: components
language: en
license: MIT
url: https://totaljs.es/docs/uibuilder/1-0/components/charts-and-dashboard/
updated: 2026-11-20T06:51:57.969Z
---

# Charts and dashboard

> Charts and values for dashboards.

Charts and values for dashboards. This page holds the catalogue groups **Charts** and **Dashboard**.

![A Line chart that shows four temperature values from a Data generator](/files/Jaq7Ho20s61f.webp)

Each entry gives the folder name and version of the component, its inputs and outputs, notes, its readme and its main settings: the key in the configuration, its default value and the field in the settings form. Every component also has **Name** and **Read value from**, described in [Component settings](/uibuilder/1-0/guides/component-settings/). To add a component to a design, see [Import components](/uibuilder/1-0/guides/import-components/).

## API

### barchart · version 1

Type: `component`

Shows series of values as horizontal bars.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `datetype` | `String` | no | `full` | **Date type** in the settings form. One of `full` (Full date), `years` (Years), `months` (Months), `days` (Days), `hours` (Hours). |
| `unit` | `String` | no |  | **Unit** in the settings form. |
| `decimals` | `Number` | no | `0` | **Decimals** in the settings form. |
| `min` | `Number` | no |  | **Min value** in the settings form. |
| `max` | `Number` | no |  | **Max value** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

- Offered in **Import components** for designs of type `app`, `dashboard`.
- Loads the external library apexcharts from cdnjs.cloudflare.com.

__Barchart data-source needs to contain__:

```js
[
	{
		name: 'name', // name of the serie
		data: [{ x: 'DATE', y: 'value' }, { x: 'DATE', y: 'value' }, ...], // series
		decimals: 2, // optional, number of decimal places
		unit: '°C' // optional
	}
]
```

### columnchart · version 1

Type: `component`

Shows series of values as vertical columns.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `datetype` | `String` | no | `full` | **Date type** in the settings form. One of `full` (Full date), `years` (Years), `months` (Months), `days` (Days), `hours` (Hours). |
| `unit` | `String` | no |  | **Unit** in the settings form. |
| `decimals` | `Number` | no | `0` | **Decimals** in the settings form. |
| `min` | `Number` | no |  | **Min value** in the settings form. |
| `max` | `Number` | no |  | **Max value** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

- Loads the external library apexcharts from cdnjs.cloudflare.com.

__Columnchart data-source needs to contain__:

```js
[
	{
		name: 'name', // name of the serie
		data: [{ x: 'DATE', y: 'value' }, { x: 'DATE', y: 'value' }, ...], // series
		decimals: 2, // optional, number of decimal places
		unit: '°C' // optional
	}
]
```

### donutchart · version 1

Type: `component`

Shows values as parts of a ring.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `datasource` | `String` | no |  | **Datasource** in the settings form. A component (`@id`), a code list or a data view. |
| `unit` | `String` | no |  | **Unit** in the settings form. |
| `decimals` | `Number` | no | `0` | **Decimals** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

- Loads the external library apexcharts from cdnjs.cloudflare.com.

__Donutchart data-source needs to contain__:

```js
[
	{
		data: 44,
		name: 'Apple',
		unit: '',
		decimals: 1
	},
	{
		data: 55,
		name: 'Mango',
		unit: '',
		decimals: 1
	}
]
```

### lastvalue · version 1

Type: `component`

Shows one value with a note and an icon, for example the latest reading on a dashboard.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `icon` | `String` | no | `ti ti-dashboard` | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. |
| `color` | `String` | no |  | **Icon color** in the settings form. A colour. |
| `iconpos` | `String` | no | `overlay` | **Icon position** in the settings form. One of `top` (Top), `overlay` (Overlay). |
| `isnullable` | `Boolean` | no |  | **Render nullable value** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

This component displays text value and icon according to your styles in settings.

### linechart · version 1

Type: `component`

Shows series of values as lines over time.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `datetype` | `String` | no | `full` | **Date type** in the settings form. One of `full` (Full date), `years` (Years), `months` (Months), `days` (Days), `hours` (Hours). |
| `unit` | `String` | no |  | **Unit** in the settings form. |
| `decimals` | `Number` | no | `0` | **Decimals** in the settings form. |
| `min` | `Number` | no |  | **Min value** in the settings form. |
| `max` | `Number` | no |  | **Max value** in the settings form. |
| `stroke` | `String` | no | `smooth` | **Line type** in the settings form. One of `smooth` (Smooth), `straight` (Straight), `stepline` (Stepline). |

**Inputs:** none.  
**Outputs:** none.

- Loads the external library apexcharts from cdnjs.cloudflare.com.

__Linechart data-source needs to contain__:

```js
[
	{
		name: 'name', // name of the serie
		data: [{ x: 'DATE', y: 'value' }, { x: 'DATE', y: 'value' }, ...], // series
		decimals: 2, // optional, number of decimal places
		unit: '°C' // optional
	}
]
```

### piechart · version 1

Type: `component`

Shows values as slices of a circle.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `datasource` | `String` | no |  | **Datasource** in the settings form. A component (`@id`), a code list or a data view. |
| `unit` | `String` | no |  | **Unit** in the settings form. |
| `decimals` | `Number` | no | `0` | **Decimals** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

- Loads the external library apexcharts from cdnjs.cloudflare.com.

__Piechart data-source needs to contain__:

```js
[
	{
		data: 44,
		name: 'Apple',
		unit: '',
		decimals: 1
	},
	{
		data: 55,
		name: 'Mango',
		unit: '',
		decimals: 1
	}
]
```
