ted values displayed in the tooltip to two decimal places.
</p>
</div>
<p>Computed values that don‚Äôt have a corresponding axis likely have a <code>*hoverformat</code> trace attribute. Probably the most common example is the <code>z</code> attribute in a <code>heatmap</code> or <code>histogram2d</code> chart. Figure <a href="controlling-tooltips.html#fig:tooltip-format-heatmap">25.4</a> shows how to format <code>z</code> values to have one decimal.</p>
<p>
</p>
<div class="sourceCode" id="cb214"><pre c