Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3644e78

Browse files
authored
Merge pull request plotly#1363 from plotly/michaelbabyn-patch-3
hovertemplate js add .text to *axis.title accounts for plotly title obj
2 parents 9b8e97a + 2169645 commit 3644e78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/plotly_js/chart-events/hover/2019-05-15-advanced-hovertemplate.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
transforms: [{ type: "groupby", groups: c }],
3939
hovertemplate:
4040
"<b>%{text}</b><br><br>" +
41-
"%{yaxis.title}: %{y:$,.0f}<br>" +
42-
"%{xaxis.title}: %{x:.0%}<br>" +
41+
"%{yaxis.title.text}: %{y:$,.0f}<br>" +
42+
"%{xaxis.title.text}: %{x:.0%}<br>" +
4343
"Number Employed: %{marker.size:,}" +
4444
"<extra></extra>"
4545
}

0 commit comments

Comments
 (0)