0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Grafanaで数値を「¥123,456」のようにSI接頭語なしで表示する方法

Posted at

結論

GrafanaのPanel設定で、Unitに currency:financial:¥ を入力する。
これで「K」「M」などのSI接頭語を付けずにカンマ区切りで金額が表示される。

動作確認環境: Grafana v12.2.1

はじめに

Grafanaで金額を表示するとき、Unitで「Currency → Yen (¥)」を選択すると、デフォルトでは「¥123K」「¥12.3M」のようにSI接頭語付きで表示されます。

with_SI_prefixes.png

これだと下の方の桁が省略されてしまうし、ぱっと見どちらの数値が大きいのかわかりにくかったりするので、全ての桁を表示させたいことがあります。

解決策

そんなときは、カスタム・ユニットを使用しましょう。

  1. 該当のパネルを開く。
  2. 右側の設定メニューで「Standard options → Unit」を開く。
  3. Unit欄に以下を入力:
currency:financial:¥

すると「K」や「M」などの省略表記がなくなり、カンマ区切り付きのフル金額表示になります。

without_SI_prefixes.png

おまけ

カンマも表示したくない場合

prefix:¥  →  ¥123456

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?