- hovertemplate
Parent:data[type=scatter]
Type: string or array of strings
Default:""Template string used for rendering the information that appear on hover box. Note that this will overridehoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%xother}, {%xother}, {%xother}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. GitHub - d3/d3-format at v1.4.5 for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. GitHub - d3/d3-time-format at v2.2.3 for details on the date formatting syntax. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that arearrayOk: true) are available. Anything contained in tag<extra>is displayed in the secondary box, for example “{fullData.name}”. To hide the secondary box completely, use an empty tag<extra></extra>.