1

I'd like to set decimal places with I create visulization in Kibana 7.12. The visualization could be TSVB, Gauge, aggregation, or lens. I want to show the average of a field for example. So I can't change the index pattern. I found that might be using Markdown helps in TSVB aggregation, but the solution doesn't work.

{{ avg.v.last.formatted }}
 Handlebars.registerHelper('function', function(v) {
 return v.toFixed(2);
 });
YNR
  • 867
  • 2
  • 13
  • 28

2 Answers2

0

You can use Kibana > Stack Management > Advanced Settings > Number Format to set decimals. For example, picture 1 shows the decimals after the point. When adjustments are made from the Advanced Settings section as in picture 2, the decimal part after the point disappears picture.

Also, you can adjust Byte, Currency, Number, Percent formats. In addition, you can set how many digits these formats appear, and which punctuation mark you want to use in the thousands place. additional info

Number Format: 0,0.[000]
New Number Format: 0,0
Musab Dogan
  • 1,811
  • 1
  • 6
  • 8
  • 1
    Thank you for your response. I'm aware of advanced setting, but I'd like to define decimal points for an individual dashboard/panel. – YNR Aug 06 '21 at 09:14
0

Look at the Options tab for the Gage or Metric. Choose "Custom" for the Data Formatter and use a numeral.js format string (eg "0." specifies nothing after the decimal).

enter image description here

Ed MacDonald
  • 406
  • 4
  • 7