Skip to content

Commit 442da95

Browse files
Joseph Villavicencionicolaskruchten
Joseph Villavicencio
authored andcommitted
Add hovertemplate attr to trace (#1567)
* Add hovertemplate attr to trace Added a hovertemplate attribute to the first trace so the number shown is equal to the base instead of 0 on hover. 'y' could be used in place of 'base' in the hovertemplate if user wants the number shown to be positive. Seems the user would want either 'y' or 'base' instead of 0 more often than not. * Update 2018-02-27-bar-base.html
1 parent 2ab8f52 commit 442da95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

_posts/plotly_js/basic/bar/2018-02-27-bar-base.html

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
x: ['2016','2017','2018'],
1414
y: [500,600,700],
1515
base: [-500,-600,-700],
16+
hovertemplate: '%{base}'
1617
marker: {
1718
color: 'red'
1819
},

0 commit comments

Comments
 (0)