I would like to know how automatic decimal works on graphs.

Why on the picture below the GB unit has 3 decimals and on MB unit has 0?

Is it something about the unit itself?

Is it possible to create a rule that has a certain number of decimals for some unit and another number of decimals to others units?

Also, is it possible to create the same rule to the table panel?

Thank you!

Yes, in the panelâ€™s â€śVisualizationâ€ť tab there is an option which is called â€śDecimalsâ€ť that can be used to set the number of decimals that should be displayed. Those options are available for panels for the y-axis and for tables per column (itâ€™s a little below where youâ€™ve set the unit).

I see. But I would like to set a rule to like 2 decimals for GB and 1 decimal for MB for example.

Is there a way to create this rule on this field?

Ok.

Is there any logic to explain why on the first picture the GB has 3 decimals and the MB has nothing?

The configuration is set to auto

Iâ€™m not familiar with how the automatic decimal expansion works, I took a quick look at the `valueFormats.ts`

file where itâ€™s defined but that ultimately didnâ€™t help me much.