Can't set sig figs on Mapbox color scale

Is it possible? I would like to specify the tickformat. I am able to do this with the axis of a chart under layout: ie ‘tickformat’: “.1f”
However I don’t see any documentation for how its done for Mapbox.

You can try using the new hovertemplate attribute: