> ## Documentation Index
> Fetch the complete documentation index at: https://chart-spec.enchor.us/llms.txt
> Use this file to discover all available pages before exploring further.

# analyzeChart()

```ts theme={null}
function analyzeChart(chart, options?): {
  issues: readonly Issue[];
  stats: ChartStats;
};
```

A gameplay chart's issues and statistics. The issues include the chart file's nonstandard spellings: compatibility
issues always, and style notes when `styleNotes` asks for them. A check with a charting recommendation also reports,
at the `recommendation` severity, what misses the recommendation but passes the check.

## Parameters

| Parameter | Type |
| - | - |
| `chart` | [`GameplayChart`](https://chart-spec.enchor.us/scan-chart/api/index/interfaces/GameplayChart) |
| `options?` | \{ `styleNotes?`: `boolean`; } |
| `options.styleNotes?` | `boolean` |

## Returns

```ts theme={null}
{
  issues: readonly Issue[];
  stats: ChartStats;
}
```

| Name | Type |
| - | - |
| `issues` | readonly [`Issue`](https://chart-spec.enchor.us/scan-chart/api/index/interfaces/Issue)\[] |
| `stats` | [`ChartStats`](https://chart-spec.enchor.us/scan-chart/api/index/interfaces/ChartStats) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.