Skip to content

Commit 273e22c

Browse files
committed
fixed attributes - plotschema pass
1 parent 28cf945 commit 273e22c

File tree

19 files changed

+250
-5030
lines changed

19 files changed

+250
-5030
lines changed

src/traces/bar/attributes.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,11 @@ module.exports = {
220220
editType: 'style'
221221
},
222222

223-
tooltip: annotationAttrs,
223+
tooltip: {
224+
type: 'object',
225+
description: 'Accepts any properties typically used in annotations. This flexible structure allows for customization according to specific needs.',
226+
editType: 'plot'
227+
},
224228
tooltiptemplate: tooltiptemplateAttrs({}, {
225229
keys: constants.eventDataKeys
226230
}),

src/traces/box/attributes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,9 @@ module.exports = {
442442
].join(' ')
443443
}),
444444

445+
tooltip: scatterAttrs.tooltip,
446+
tooltiptemplate: scatterAttrs.tooltiptemplate,
447+
445448
hoveron: {
446449
valType: 'flaglist',
447450
flags: ['boxes', 'points'],

src/traces/candlestick/attributes.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ module.exports = {
5656

5757
hoverlabel: OHLCattrs.hoverlabel,
5858

59-
tooltip: annotationAttrs,
59+
tooltip: {
60+
type: 'object',
61+
description: 'Accepts any properties typically used in annotations. This flexible structure allows for customization according to specific needs.',
62+
editType: 'plot'
63+
},
6064
tooltiptemplate: tooltiptemplateAttrs(),
6165

6266
zorder: boxAttrs.zorder

src/traces/contour/attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ module.exports = extendFlat({
4242
yhoverformat: axisHoverFormat('y'),
4343
zhoverformat: axisHoverFormat('z', 1),
4444
hovertemplate: heatmapAttrs.hovertemplate,
45+
tooltip: heatmapAttrs.tooltip,
46+
tooltiptemplate: heatmapAttrs.tooltiptemplate,
4547
texttemplate: extendFlat({}, heatmapAttrs.texttemplate, {
4648
description: [
4749
'For this trace it only has an effect if `coloring` is set to *heatmap*.',

src/traces/funnel/attributes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ module.exports = {
3636
flags: ['name', 'x', 'y', 'text', 'percent initial', 'percent previous', 'percent total']
3737
}),
3838

39+
tooltip: barAttrs.tooltip,
40+
tooltiptemplate: barAttrs.tooltiptemplate,
41+
3942
textinfo: {
4043
valType: 'flaglist',
4144
flags: ['label', 'text', 'percent initial', 'percent previous', 'percent total', 'value'],

src/traces/heatmap/attributes.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,11 @@ module.exports = extendFlat({
136136

137137
showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false}),
138138

139-
tooltip: annotationAttrs,
139+
tooltip: {
140+
type: 'object',
141+
description: 'Accepts any properties typically used in annotations. This flexible structure allows for customization according to specific needs.',
142+
editType: 'plot'
143+
},
140144
tooltiptemplate: tooltiptemplateAttrs(),
141145

142146
zorder: scatterAttrs.zorder

src/traces/heatmapgl/attributes.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ var commonList = [
1111
'x', 'x0', 'dx',
1212
'y', 'y0', 'dy',
1313
'text', 'transpose',
14-
'xtype', 'ytype'
14+
'xtype', 'ytype',
15+
'tooltip','tooltiptemplate'
1516
];
1617

1718
var attrs = {};

src/traces/histogram/attributes.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,11 @@ module.exports = {
252252
bardir: barAttrs._deprecated.bardir
253253
},
254254

255-
tooltip: annotationAttrs,
255+
tooltip: {
256+
type: 'object',
257+
description: 'Accepts any properties typically used in annotations. This flexible structure allows for customization according to specific needs.',
258+
editType: 'plot'
259+
},
256260
tooltiptemplate: tooltiptemplateAttrs({}, {
257261
keys: constants.eventDataKeys
258262
}),

src/traces/histogram2d/attributes.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ module.exports = extendFlat(
7979
keys: 'z'
8080
}),
8181
textfont: heatmapAttrs.textfont,
82-
tooltip: annotationAttrs,
82+
tooltip: {
83+
type: 'object',
84+
description: 'Accepts any properties typically used in annotations. This flexible structure allows for customization according to specific needs.',
85+
editType: 'plot'
86+
},
8387
tooltiptemplate: tooltiptemplateAttrs({}, {keys: 'z'}),
8488
showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})
8589
},

src/traces/histogram2dcontour/attributes.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ module.exports = extendFlat({
4545
hovertemplate: histogram2dAttrs.hovertemplate,
4646
texttemplate: contourAttrs.texttemplate,
4747
textfont: contourAttrs.textfont,
48-
tooltip: histogram2dAttrs.tooltip,
48+
tooltip: {
49+
type: 'object',
50+
description: 'Accepts any properties typically used in annotations. This flexible structure allows for customization according to specific needs.',
51+
editType: 'plot'
52+
},
4953
tooltiptemplate: histogram2dAttrs.tooltiptemplate
5054
},
5155
colorScaleAttrs('', {

0 commit comments

Comments
 (0)