Skip to content

Commit 8c339df

Browse files
committed
funnel(area): fix description of variables for (hover|text)template
1 parent b2df623 commit 8c339df

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: src/traces/funnel/attributes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = {
2727

2828
hovertext: barAttrs.hovertext,
2929
hovertemplate: hovertemplateAttrs({}, {
30-
keys: constants.eventDataKeys
30+
keys: constants.eventDataKeys.concat(['label', 'value', 'text'])
3131
}),
3232

3333
hoverinfo: extendFlat({}, plotAttrs.hoverinfo, {
@@ -48,7 +48,7 @@ module.exports = {
4848
].join(' ')
4949
},
5050
texttemplate: texttemplateAttrs({editType: 'plot'}, {
51-
keys: constants.eventDataKeys
51+
keys: constants.eventDataKeys.concat(['label', 'value', 'text'])
5252
}),
5353

5454
text: barAttrs.text,

Diff for: src/traces/funnelarea/attributes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ module.exports = {
5555
}),
5656

5757
texttemplate: texttemplateAttrs({editType: 'plot'}, {
58-
keys: ['label', 'color', 'value', 'text', 'percentInitial', 'percentTotal', 'percentPrevious']
58+
keys: ['label', 'color', 'value', 'text', 'percent']
5959
}),
6060

6161
hoverinfo: extendFlat({}, plotAttrs.hoverinfo, {
6262
flags: ['label', 'text', 'value', 'percent', 'name']
6363
}),
6464

6565
hovertemplate: hovertemplateAttrs({}, {
66-
keys: ['label', 'color', 'value', 'text', 'percentInitial', 'percentTotal', 'percentPrevious']
66+
keys: ['label', 'color', 'value', 'text', 'percent']
6767
}),
6868

6969
textposition: extendFlat({}, pieAttrs.textposition, {

0 commit comments

Comments
 (0)