value_formatを分岐させる
from
value_format
value_formatを分岐させる
value_format
は、条件に応じてフォーマットを分岐させることができる
code: 記述例.js
named_value_format: billion_million_thousand {
value_format: "0.000,,,\" B\"
>999999999
;0.000, \" K\"
<1000000
;0.000,,\" M\"
<999999999
"
##
IMPORTANT: to use in a viz, copy this string: 0.000,," B"
>999999999
;0.000, " K"
<1000000
;0.000,," M"
<999999999
}
桁数に応じてB、M、Kの表記を使い分ける例
参考ページ
注意点
分岐は3つまで。4つ以上には対応していない
Excel Style formatingの仕様とのこと