# Chart

<Callout>
  Reports, Charts, Dashboards are intended to be created and modified through the
  user interface. The file representation is for checking errors during
  validation.
</Callout>

Each chart must be stored as **chart_name.chart** YAML file:

```yaml
chart: chart_name
tiles: # Chart must have exactly one tile
- title: 'tile title'
  description: ''
  model: model_name
  select:
  - field_path
  - field_path
  - field_path
  parameters:
  - apply_to: field_path
    conditions:
    - f\`> 100\`
  sorts: field_path desc, field_path, ...
  limit: 500
  type: chart_type
  data:
    x_field: field_path
    y_fields:
    - field_path
    - field_path
    multi_field: field_path
    size_field: field_path
    pivot_rows:
    - field_path
    pivot_columns:
    - field_path
    pivot_values:
    - field: field_path
  options:
    x_axis:
      scale: false
    y_axis:
    - scale: false
    - scale: false
    series:
    - data_field: field_path
      y_axis_index: 0
      type: chart_type
    first_column_width: 235
    value_columns_width: 181
```

## Reference

### Chart

| Name    | Type                                | Default | Description                                             |
| ------- | ----------------------------------- | ------- | ------------------------------------------------------- |
| chart\* | string                              | -       | Chart name                                              |
| tiles\* | [Tile []](/content/docs/reference/dashboard#tile) | -       | Chart tile has the same configuration as dashboard tile |
