# マルチメトリックゲージチャート

デバイス、ユーザー、またはイベントの良い状態と悪い状態の比率を表示するための複合メトリックゲージチャートを作成します。

<figure><img src="/files/P3B8KEIE54lMRC3Z9KFy" alt="Gauge widget" width="268"><figcaption></figcaption></figure>

## データの形状 <a href="#multi-metricgaugechart-datashape" id="multi-metricgaugechart-datashape"></a>

`<kpi for good state>, <kpi for bad state>`

## NQL構造 <a href="#multi-metricgaugechart-nqlstructure" id="multi-metricgaugechart-nqlstructure"></a>

{% hint style="info" %}
NQLウィジェットのクエリ例については、[Live Dashboards NQL例](/platform/ja/user-guide/live-dashboards/live-dashboards-nql-examples.md#livedashboardsnqlexamples-multi-metricgaugechart)ドキュメントを参照してください。
{% endhint %}

NQL構造は、設定した複合メトリックゲージの変数状態比較（良い値対悪い値）に依存します。

例えば、以下のNQL構造は、悪いイベントを持つデバイスまたはユーザーの比率を、悪いイベントのないオブジェクトと比較して返します。

```
<devices|users>
| include <event table>
| compute temp_bad_number = <device|user>.count()
| summarize 
   <good_label> = count() - temp_bad_number.sum(), 
   <bad_label> = temp_bad_number.sum()
```

以下の画像は、上記のNQL構造を使用したゲージを表示しています。 良い値と悪い値の凡例ラベルは、NQLクエリで対応する変数名から取得されます。

<figure><img src="/files/dMP3hagty6cRMPSsozg3" alt="Multi-metric gauge chart labels" width="442"><figcaption></figcaption></figure>

変数名は次のヒューリスティックでフォーマットされます：

* アンダースコアはスペースに置き換えられます。
* 変数の最初の文字は大文字に変更されます。

## 複合メトリックゲージ固有の視覚フィールドを設定する <a href="#linechart-linechartspecificsettings" id="linechart-linechartspecificsettings"></a>

{% hint style="info" %}
このウィジェットに固有でない残りの設定フィールドの入力方法を知るには、[リアルタイムダッシュボードの管理](/platform/ja/user-guide/live-dashboards/managing-live-dashboards.md#filling-in-widget-visualization-fields)ドキュメントを参照してください。
{% endhint %}

[ウィジェットを追加する](/platform/ja/user-guide/live-dashboards/managing-live-dashboards.md#adding-widgets)/[ウィジェットを編集する](/platform/ja/user-guide/live-dashboards/managing-live-dashboards.md#managing-widgets)ポップアップで**複合メトリックゲージチャート**オプションを**チャートの種類**ドロップダウンから選択した後：

1. **ラベル（オプション）** フィールドを使用して、メインゲージの見える名前を作成します。 \&#x20
   * テキストには特殊文字を含めることができます。 **ラベル** フィールドには50文字の制限があります。
   * クエリ内の良い値と悪い値の凡例ラベルを定義する方法を理解するには、[NQL構造](#multi-metricgaugechart-nqlstructure)の画像を参照してください。
2. 指標がどのように解釈されるべきか、計算されるべきか、または指標に関する微妙な点を説明するために、\*\*ウィジェットの説明（オプション）\*\*を入力します。
   * ウィジェットの説明は、dashboard内の複合メトリックゲージウィジェットの横にある情報アイコンにカーソルを合わせると表示されます。

***

関連トピック

* [KPI](/platform/ja/user-guide/live-dashboards/widget-types/kpi.md)
* [折れ線グラフ](/platform/ja/user-guide/live-dashboards/widget-types/line-chart.md)
* [棒グラフ](/platform/ja/user-guide/live-dashboards/widget-types/bar-chart.md)
* [単一メトリックゲージチャート](/platform/ja/user-guide/live-dashboards/widget-types/single-metric-gauge-chart.md)
* [テーブル](/platform/ja/user-guide/live-dashboards/widget-types/table.md)
* [見出し](/platform/ja/user-guide/live-dashboards/widget-types/heading.md)
* [フィルターウィジェット](/platform/ja/user-guide/live-dashboards/widget-types/filter-widget.md)
* [期間セレクター](/platform/ja/user-guide/live-dashboards/widget-types/timeframe-picker.md)


---

# 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.nexthink.com/platform/ja/user-guide/live-dashboards/widget-types/multi-metric-gauge-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.
