tly.js spec. That means you can identify trace attribute(s) that contain relevant info (<strong>note:</strong> the <code>plotly_json()</code> function is incredibly for helping to find that information), then use that info to populate a <code>text</code> attribute. Figure <a href="controlling-tooltips.html#fig:custom-predict-text">25.10</a> applies this technique to customize the text that appears when hovering over a <code>geom_smooth()</code> line.</p>
<div class="sourceCode" id="cb220"><pre class="source