# XYZチャート

## 描画タイプ

XYZチャートには、以下の描画タイプがあります。

| <p>散布図 </p><p><picture><source srcset="/files/4TI5QQefz553TUlpEn3Q" media="(prefers-color-scheme: dark)"><img src="/files/dInhJtmryVbPTtXHNzx6" alt="XYZ Scatter"></picture></p> | <p>バブル </p><p><picture><source srcset="/files/IalhyKtE4iI3xBb5zdcg" media="(prefers-color-scheme: dark)"><img src="/files/Q2X4wR3PiXCPdvl6zWQB" alt="XYZ Bubble"></picture></p> | <p>ヒートマップ </p><p><picture><source srcset="/files/cWTpnV7Hw5k0JQqpwW2j" media="(prefers-color-scheme: dark)"><img src="/files/VOsb0eKUVyj9ACWwmih0" alt="XYZ Heatmap"></picture></p> |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

## 仕様

### 集計の仕様

XYZチャートでは、[X軸とY軸がディメンション、Z軸がメトリクス](/data-exploration/chart/chart-common.md#dimension-metric)となり、X軸とY軸の組み合わせごとにZ軸の値が集計されます。（[XYチャート](/data-exploration/chart/xy-chart.md)では、X軸がディメンション、Y軸がメトリクスとなり、X軸ごとにY軸の値が集計される点が異なります）

| 項目    | 役割      | 補足               |
| ----- | ------- | ---------------- |
| X軸    | ディメンション | Xの値が軸になります       |
| Y軸    | ディメンション | Yの値が軸になります       |
| Z軸    | メトリクス   | バブル・ヒートマップで指定    |
| グループ化 | ディメンション | 散布図・バブルのみ（系列が分割） |

#### 使用例

* 「商品カテゴリ × 地域ごとの売上合計」をヒートマップで表示
  * X軸（ディメンション）: 商品カテゴリ
  * Y軸（ディメンション）: 地域
  * Z軸（メトリクス）: 売上の合計値
* 「広告費と売上の関係」をバブルで表示
  * X軸（ディメンション）: 広告費
  * Y軸（ディメンション）: 売上
  * Z軸（メトリクス）: 利益

### X軸の仕様

XYZチャートでは描画タイプによってX軸・Y軸の扱いが変わります。

* ヒートマップではX軸・Y軸ともにカテゴリ軸になります
* 散布図・バブルではX軸はデータ型に応じてカテゴリ/日時/数値のいずれか、Y軸は数値軸になります

各軸の挙動（カテゴリ軸・日時軸・数値軸の表示ルール）はXYチャートの [カテゴリ軸、日時軸、数値軸](/data-exploration/chart/xy-chart.md#x-axis) を参照ください。

## Tips

### フレーム機能

XYZチャートはフレーム機能に対応しています。詳細は[フレーム機能](/data-exploration/chart/chart-common.md#frame-feature)を参照ください。

### 基準線

XYZチャートでも基準線を表示できます。詳細はXYチャートの[基準線](/data-exploration/chart/xy-chart.md#reference-line)を参照ください。

### トレンド

XYZチャートでもトレンドを表示できます。詳細はXYチャートの[トレンド](/data-exploration/chart/xy-chart.md#trend)を参照ください。

### 統計

XYZチャートでも統計を表示できます。詳細はXYチャートの[統計](/data-exploration/chart/xy-chart.md#statistics)を参照ください。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codatum.jp/data-exploration/chart/xyz-chart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
