---
title: "Settings & Export"
description: "Configure sampling, display options, and export historical tag data"
source_url: https://ai-ops.com/docs/trends/settings-and-export
---

# Settings & Export

## Chart Settings

Click the **settings icon** in the toolbar to open the settings drawer. Changes apply immediately to the chart. On an existing trend, click **Save** in the drawer footer to persist them. On a trend you haven't saved yet, the drawer shows **Done** instead, and the settings are saved when you create the trend.

### Sampling

Sampling controls how raw data points are aggregated when viewing large time ranges.

**Window Period** determines the time bucket size:

- **Auto**: the system targets 100–5,000 data points on screen based on the visible range
- **Custom**: choose a fixed window: Raw (no aggregation), 1s, 5s, 10s, 30s, 1m, 5m, 15m, or 1h

**Aggregate Function** reduces each window to a single value:

- **Auto**: uses Mean
- **Custom**: choose from Mean, Median, Last, First, Min, Max, or Sum

**Fill Missing Values** carries the last known value forward to fill gaps and produce a continuous line. Disabled in Raw mode.

> [!WARNING] Raw mode on large time ranges
> Selecting **Raw** over days or weeks can result in very large data transfers and slow rendering. Use it for short, focused time windows.

### Display

| Setting | Range | Default |
|---------|-------|---------|
| **Show legend** | On / Off | Off |
| **Legend position** | Top, Bottom, Left, Right | Top |
| **Fill area under lines** | On / Off | Off |
| **Fill opacity** | 0 – 1.0 | 0.1 |
| **Line width** | 0.5 – 5.0 | 1 |
| **Point size** | 0 – 5.0 (0 hides points) | 1.5 |
| **Line smoothing** | 0 (sharp) – 0.5 (smooth) | 0.15 |
| **Show events** | On / Off | On |

---

## Exporting Data

Click the **export icon** in the toolbar to open the export drawer.

### Configuration

- **Date range**: defaults to the chart's visible range, or check **Export all data** to export complete history
- **Tag selection**: all plotted tags are included by default; uncheck any you don't need, or add tags that aren't in the trend
- **Mode**: **Raw** exports every data point as stored; **Resampled** aggregates to regular intervals (1s–1h) with a chosen aggregate function
- **Format**: CSV, JSON, or Parquet
- **Split into daily files**: creates one file per calendar day, packaged as a ZIP

### Size Limits

Koios estimates the export size before starting:

| Threshold | Behavior |
|-----------|----------|
| Under 200 MB | Proceeds normally |
| 200 MB – 1 GB | Warning: may temporarily impact system performance |
| Over 1 GB | Blocked: narrow the date range or reduce tags |

---

## What's Next

- [Trends](https://ai-ops.com/docs/trends/introduction.md): overview and chart navigation
- [Traces & Axes](https://ai-ops.com/docs/trends/traces-and-axes.md): add tags and configure multi-axis layouts
