I am using Kibana vega visualization to show metrics. I would like to achieve the right align five-digit padding. What can be the property name to achieve the same?
My vega code :
marks: [
{
type: text
from: {data: "latestTotalBalance"}
encode: {
update: {
text: {signal: "format(datum.totalUnitAmount, ',')"}
align: {value: "center"}
baseline: {value: "middle"}
xc: {signal: "width/2"}
yc: {signal: "height/2"}
fontSize: {signal: "min(width/20, height)/1.3"}
"fill": {"value": "white"}
"fontWeight":{"value": "bold"}
}
}
}
]
The result with above code is :
Expected result :