[DynamicGetLegendGraphics]: supporting number of digits