### Install pnpm
Source: https://github.com/adyen/lume/blob/main/packages/vue3/README.md
Install `pnpm` globally using npm if it's not already available in your environment.
```shell
npm i -g pnpm
```
--------------------------------
### Start Storybook
Source: https://github.com/adyen/lume/blob/main/README.md
Launch Storybook to develop and preview chart components. Ensure all chart components have a corresponding .stories file.
```shell
$ pnpm run storybook
```
--------------------------------
### Run Storybook
Source: https://github.com/adyen/lume/blob/main/packages/vue3/README.md
Start Storybook to develop and preview Lume's chart components. Ensure each component has a corresponding `.stories` file.
```shell
pnpm run storybook
```
--------------------------------
### Start Docker Container
Source: https://github.com/adyen/lume/blob/main/packages/vue3/README.md
Use `docker compose up -d` to start your Lume development environment in a detached Docker container.
```shell
docker compose up -d
```
--------------------------------
### Basic Bar Group Usage
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/groups/lume-bar-group/README.md
Render a simple bar group with default settings by passing the 'data' prop. This example demonstrates basic setup using Vue.js.
```html
```
--------------------------------
### Install Lume for Vue 3
Source: https://github.com/adyen/lume/blob/main/README.md
Use this command to install the Lume package specifically for Vue 3 applications.
```shell
$ npm install @adyen/lume-vue3
```
--------------------------------
### Install Lume for Vue 2.7+
Source: https://github.com/adyen/lume/blob/main/README.md
Use this command to install the Lume package for Vue 2.7 and later versions.
```shell
$ npm install @adyen/lume
```
--------------------------------
### Run Docker Container
Source: https://github.com/adyen/lume/blob/main/README.md
Start the Lume application within a Docker container, mapping necessary ports and mounting the current directory for development.
```shell
$ docker run -it -v ./:/home/node/lume -p 9002:9002 -p 9003:9003 lume
```
--------------------------------
### Install Lume as a Vue Plugin
Source: https://github.com/adyen/lume/blob/main/README.md
Integrate Lume into your global Vue application setup by using the LumePlugin.
```typescript
import Vue from 'vue';
import LumePlugin from '@adyen/lume/plugin';
import App from './my-app.vue';
Vue.use(LumePlugin);
const app = new Vue(App).$mount('#root');
```
--------------------------------
### Import LumeBarChart in Composition API
Source: https://github.com/adyen/lume/blob/main/README.md
Import the LumeBarChart component for use with Vue's Composition API in a script setup block.
```typescript
// Composition
```
--------------------------------
### Basic Usage of LumeTooltipSummary
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-tooltip/components/lume-tooltip-summary/README.md
Use the LumeTooltipSummary component within the 'summary' slot of a LumeTooltip to provide custom summary content. This allows for overwriting the default summary item.
```html
My custom summary
```
--------------------------------
### Tooltip Options Interface
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-tooltip/README.md
Interface for configuring tooltip options.
```APIDOC
## Tooltip Options
### `offset`
- **Type**: `number`
- **Description**: Distance between the tooltip and its target element.
### `position`
- **Type**: `string`
- **Description**: Where the tooltip should be positioned relative to its target.
### `showTitle`
- **Type**: `boolean`
- **Description**: Controls if the tooltip title should be displayed.
### `targetElement`
- **Type**: `Element`
- **Description**: A DOM element to attach to.
### `fixedPositioning`
- **Type**: `boolean`
- **Description**: If true, it will use fixed positioning instead of absolute.
### `valueFormat`
- **Type**: `string | (tick: number | string) => number | string`
- **Description**: A format specifier string for d3-format or a formatting function.
### `summary`
- **Type**: `string`
- **Description**: Descriptive text shown above the tooltip items. If a tooltip item is marked with `isSummary`, it will have precedence over this option.
### `withPointerEvents`
- **Type**: `boolean`
- **Description**: If true, it will listen to the attached events on elements in the tooltip content.
### `inverse`
- **Type**: `boolean`
- **Description**: If true, the tooltip items will be in inverse order.
```
--------------------------------
### Basic LumeBar Usage
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-bar/README.md
Render a basic LumeBar component with required width and height properties.
```html
```
--------------------------------
### Basic Usage of LumeTooltipTitle
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-tooltip/components/lume-tooltip-title/README.md
Demonstrates how to use the LumeTooltipTitle component by placing it within the 'title' slot of a LumeTooltip. This allows for custom content in the tooltip's title area.
```html
My custom title
```
--------------------------------
### Basic LumeLine Usage
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-line/README.md
Render a LumeLine component by providing a path definition. This is the most basic way to display a line.
```html
```
--------------------------------
### Import LumeOverlayGroup
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/groups/lume-overlay-group/README.md
Import the LumeOverlayGroup component from the Adyen Lume library.
```typescript
import { LumeOverlayGroup } from '@adyen/lume';
```
--------------------------------
### Basic LumeChartContainer Usage
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-chart-container/README.md
Set up a basic chart structure using lume-chart-container with slots for header, axes, data groups, and extra elements like tooltips.
```html
My chart title
```
--------------------------------
### Basic Lume Line Chart Usage
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/charts/lume-line-chart/README.md
Render a basic line chart by providing the 'data' and 'labels' props. The 'data' prop expects an array of objects, each defining a dataset with a label, color, and values. The 'labels' prop is an array of strings or numbers representing the x-axis labels.
```html
```
--------------------------------
### Import LumeBar Component
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-bar/README.md
Import the LumeBar component from the Adyen Lume library.
```typescript
import { LumeBar } from '@adyen/lume';
```
--------------------------------
### LumeTooltipItem Component API
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-tooltip/components/lume-tooltip-item/README.md
Documentation for the LumeTooltipItem component, including its props and slot props.
```APIDOC
## LumeTooltipItem Component
### Description
A simple wrapper component for tooltip list items.
### Props
| Name | Type | Default | Description |
| ------- | -------- | ------- | ------------------------------------------------------------------------------------ |
| `color` | `string` | `null` | The color for the item symbol. If not provided, the item will not render the symbol. |
### Slot Props
#### `label`
Slot for the label part of the item.
No props.
#### `value`
Slot for the value part of the item.
No props.
```
--------------------------------
### Basic Stacked Bar Chart Usage
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/charts/lume-stacked-bar-chart/README.md
Render a basic stacked bar chart by providing data and labels. The data prop accepts an array of objects, each with a label, color, and an array of values. The labels prop provides the categories for the x-axis.
```html
```
--------------------------------
### Import LumeBarGroup
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/groups/lume-bar-group/README.md
Import the LumeBarGroup component from the '@adyen/lume' package.
```typescript
import { LumeBarGroup } from '@adyen/lume';
```
--------------------------------
### Import LumeAxis Component
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-axis/README.md
Import the LumeAxis component from the Adyen Lume library.
```typescript
import { LumeAxis } from '@adyen/lume';
```
--------------------------------
### Import LumeAlluvialNodeLabel
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/README.md
Import the LumeAlluvialNodeLabel component from the Adyen Lume library. This is the first step to using the component in your project.
```typescript
import { LumeAlluvialNodeLabel } from '@adyen/lume';
```
--------------------------------
### Import LumeLine Component
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-line/README.md
Import the LumeLine component from the Adyen Lume library.
```typescript
import { LumeLine } from '@adyen/lume';
```
--------------------------------
### Import LumeChart Component
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-chart/README.md
Import the LumeChart component from the '@adyen/lume' package.
```typescript
import { LumeChart } from '@adyen/lume';
```
--------------------------------
### Import Global CSS Styles for Lume
Source: https://github.com/adyen/lume/blob/main/README.md
Include Lume's main CSS styles and optional font globally in your application's main entry point.
```typescript
// app/index/main.ts
import Vue from 'vue';
import App from './my-app.vue';
// Main styles
import '@adyen/lume/styles';
// (Optional) Lume font
import '@adyen/lume/font';
const app = new Vue(App).$mount('#root');
```
--------------------------------
### Basic Lume Bar Chart Usage
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/charts/lume-bar-chart/README.md
Render a basic bar chart by providing the 'data' and 'labels' props. For charts with multiple datasets, specify the 'type' as 'grouped' or 'stacked'.
```html
```
--------------------------------
### Import LumeAlluvialNodeHeader
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/groups/lume-alluvial-group/components/lume-alluvial-node-header/README.md
Import the LumeAlluvialNodeHeader component for use in your project.
```typescript
import { LumeAlluvialNodeHeader } from '@adyen/lume';
```
--------------------------------
### Import LumeSparklineChart
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/charts/lume-sparkline-chart/README.md
Import the LumeSparklineChart component from the @adyen/lume package.
```typescript
import { LumeSparklineChart } from '@adyen/lume';
```
--------------------------------
### Import LumeBarChart Component
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/charts/lume-bar-chart/README.md
Import the LumeBarChart component from the Adyen Lume library. This is the first step to using the component in your project.
```typescript
import { LumeBarChart } from '@adyen/lume';
```
--------------------------------
### Import LumeStackedBarChart
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/charts/lume-stacked-bar-chart/README.md
Import the LumeStackedBarChart component from the Adyen Lume library.
```typescript
import { LumeStackedBarChart } from '@adyen/lume';
```
--------------------------------
### Import LumeChartLegend Component
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-chart-legend/README.md
Import the LumeChartLegend component from the '@adyen/lume' package. This is necessary before using the component in your application.
```typescript
import { LumeChartLegend } from '@adyen/lume';
```
--------------------------------
### Attach to Docker Container
Source: https://github.com/adyen/lume/blob/main/packages/vue3/README.md
Attach your terminal to the running Lume Docker container using `docker attach`.
```shell
docker attach lume
```
--------------------------------
### Default Axis Options
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-axis/README.md
Default configurations for X and Y axes.
```APIDOC
#### Default options for X axis
```ts
{
gridLines: false,
withTitle: false,
showTicks: true,
tickCount: 10,
tickFormat: null,
tickPadding: 8,
skip: true,
}
```
#### Default options for Y axis
```ts
{
gridLines: true,
withTitle: true,
showTicks: true,
tickCount: 10,
tickFormat: null,
tickPadding: 8,
}
```
```
--------------------------------
### Basic LumeOverlayGroup Usage
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/groups/lume-overlay-group/README.md
Render a basic overlay group by passing the data prop. This component is typically used within a Vue template.
```html
```
--------------------------------
### rendered
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-chart/README.md
Fired upon the chart's initial render. This event has no payload.
```APIDOC
## rendered
### Description
Fired upon chart initial render.
### Payload
None.
```
--------------------------------
### Import LumeChartContainer
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-chart-container/README.md
Import the LumeChartContainer component from the @adyen/lume library.
```typescript
import { LumeChartContainer } from '@adyen/lume';
```
--------------------------------
### Import Global Sass Styles for Lume
Source: https://github.com/adyen/lume/blob/main/README.md
Include Lume's main Sass styles and optional font globally in your application's main entry point.
```typescript
// app/index/main.ts
import Vue from 'vue';
import App from './my-app.vue';
// Main styles
import '@adyen/lume/scss';
// (Optional) Lume font
import '@adyen/lume/font';
const app = new Vue(App).$mount('#root');
```
--------------------------------
### Import LumeGroupedBarChart
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/charts/lume-grouped-bar-chart/README.md
Import the LumeGroupedBarChart component from the Adyen Lume library.
```typescript
import { LumeGroupedBarChart } from '@adyen/lume';
```
--------------------------------
### Import LumeAlluvialNodeValue
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/README.md
Import the LumeAlluvialNodeValue component from the Adyen Lume library.
```typescript
import { LumeAlluvialNodeValue } from '@adyen/lume';
```
--------------------------------
### Import CSS Styles in SFC
Source: https://github.com/adyen/lume/blob/main/README.md
Import Lume's main CSS styles and optional font directly within a Vue Single File Component.
```vue
...
```
--------------------------------
### Import LumeAlluvialGroup Component
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/groups/lume-alluvial-group/README.md
Import the LumeAlluvialGroup component from the '@adyen/lume' package.
```typescript
import { LumeAlluvialGroup } from '@adyen/lume';
```
--------------------------------
### Basic LumePoint Usage
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-point/README.md
Render a LumePoint by providing its x and y coordinates, color, and active state. The color is typically an index to predefined Lume colors, and the active state can be determined by a function.
```html
```
--------------------------------
### Import LumePoint Component
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-point/README.md
Import the LumePoint component from the Adyen Lume library. This is necessary before using the component in your application.
```typescript
import { LumePoint } from '@adyen/lume';
```
--------------------------------
### Tooltip Slots
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-tooltip/README.md
Available slots for customizing tooltip content.
```APIDOC
## Slots
### `title`
Slot for the tooltip header section.
No props.
### `summary`
Slot for the tooltip summary item. Content of this slot should have a `
` element at its root.
No props.
### `items`
Slot for the tooltip items. Content of this slot should be one or more `
` elements.
No props.
```
--------------------------------
### Basic Usage of LumeLineGroup
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/groups/lume-line-group/README.md
Render a simple line group by passing your data to the `data` prop. Ensure the data is reactive using `ref` if you are using Vue's Composition API.
```html
```
--------------------------------
### Basic Sparkline Chart Usage
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/charts/lume-sparkline-chart/README.md
Render a basic sparkline chart by passing data and labels. The data prop expects an array of objects, each with a label, color, and an array of values.
```html
```
--------------------------------
### Basic Usage of LumeChartLegend
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-chart-legend/README.md
Render the LumeChartLegend component by providing a `data` property. The `data` property should be an array of objects, each with `color` and `label` properties.
```html
```
--------------------------------
### Basic Grouped Bar Chart Usage
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/charts/lume-grouped-bar-chart/README.md
Render a basic grouped bar chart by providing data and labels. Ensure the data is structured with labels, colors, and values for each dataset.
```html
```
--------------------------------
### Basic LumeAxis Usage
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-axis/README.md
Render a basic axis component by providing a d3 scale and specifying the axis type.
```html
```
--------------------------------
### ChartOptions Interface
Source: https://github.com/adyen/lume/blob/main/packages/lib/src/components/core/lume-chart/README.md
Defines the configuration options available for customizing the appearance and behavior of a Lume Chart.
```APIDOC
## Interface: ChartOptions
| Name | Type | Description |
|---|---|---|
| margins | `Margins | "auto"` | Space around the chart. If provided with "auto", calculates margins according to the axis labels' size. |
| xAxisOptions | `AxisOptions` | Set of options for the X axis. |
| yAxisOptions | `AxisOptions` | Set of options for the Y axis. |
| tooltipOptions | `TooltipOptions` | Set of options for the tooltip component. |
| colorPalette | `ColorPalette` | Which color sequence to use for rendering the datasets. |
| startOnZero | `boolean` | Controls if the Y scale should start on `0`. Always `true` for Bar charts. |
| withAxes | `boolean` | Displays chart axes. |
| withTooltip | `boolean` | Displays the chart tooltip. |
| withLegend | `boolean` | Displays the chart legend in the header. |
| legendPosition | `'top' | 'bottom'` | Where to display the chart legend. |
| withTransition | `boolean` | Toggles the chart transition animations. |
| noBaseScales | `boolean` | Controls if `LumeChart` should generate general-purpose scales or not. |
| noMinSize | `boolean` | If true, the chart container will not have minimum width/height. |
| transparentBackground | `boolean` | If true, the `