Skip to content

Commit e8f3287

Browse files
committed
no arrayOk texttemplate for heatmaps and histogram2ds
1 parent 2406789 commit e8f3287

File tree

3 files changed

+10
-26
lines changed

3 files changed

+10
-26
lines changed

src/traces/heatmap/attributes.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ module.exports = extendFlat({
118118
zhoverformat: axisHoverFormat('z', 1),
119119

120120
hovertemplate: hovertemplateAttrs(),
121-
texttemplate: texttemplateAttrs({editType: 'plot'}, {
121+
texttemplate: texttemplateAttrs({
122+
arrayOk: false,
123+
editType: 'plot'
124+
}, {
122125
keys: ['x', 'y', 'z', 'text']
123126
}),
124127
textfont: fontAttrs({

src/traces/histogram2d/attributes.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ module.exports = extendFlat(
7070
yhoverformat: axisHoverFormat('y'),
7171
zhoverformat: axisHoverFormat('z', 1),
7272
hovertemplate: hovertemplateAttrs({}, {keys: 'z'}),
73-
texttemplate: texttemplateAttrs({editType: 'plot'}, {keys: 'z'}),
73+
texttemplate: texttemplateAttrs({
74+
arrayOk: false,
75+
editType: 'plot'
76+
}, {
77+
keys: 'z'
78+
}),
7479
textfont: heatmapAttrs.textfont,
7580
showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})
7681
},

test/plot-schema.json

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21585,17 +21585,11 @@
2158521585
"valType": "string"
2158621586
},
2158721587
"texttemplate": {
21588-
"arrayOk": true,
2158921588
"description": "Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format 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}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `x`, `y`, `z` and `text`.",
2159021589
"dflt": "",
2159121590
"editType": "plot",
2159221591
"valType": "string"
2159321592
},
21594-
"texttemplatesrc": {
21595-
"description": "Sets the source reference on Chart Studio Cloud for `texttemplate`.",
21596-
"editType": "none",
21597-
"valType": "string"
21598-
},
2159921593
"transforms": {
2160021594
"items": {
2160121595
"transform": {
@@ -26690,17 +26684,11 @@
2669026684
"valType": "string"
2669126685
},
2669226686
"texttemplate": {
26693-
"arrayOk": true,
2669426687
"description": "Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format 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}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `x`, `y`, `z` and `text`.",
2669526688
"dflt": "",
2669626689
"editType": "plot",
2669726690
"valType": "string"
2669826691
},
26699-
"texttemplatesrc": {
26700-
"description": "Sets the source reference on Chart Studio Cloud for `texttemplate`.",
26701-
"editType": "none",
26702-
"valType": "string"
26703-
},
2670426692
"transforms": {
2670526693
"items": {
2670626694
"transform": {
@@ -30411,17 +30399,11 @@
3041130399
}
3041230400
},
3041330401
"texttemplate": {
30414-
"arrayOk": true,
3041530402
"description": "Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format 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}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `z`",
3041630403
"dflt": "",
3041730404
"editType": "plot",
3041830405
"valType": "string"
3041930406
},
30420-
"texttemplatesrc": {
30421-
"description": "Sets the source reference on Chart Studio Cloud for `texttemplate`.",
30422-
"editType": "none",
30423-
"valType": "string"
30424-
},
3042530407
"transforms": {
3042630408
"items": {
3042730409
"transform": {
@@ -31704,17 +31686,11 @@
3170431686
}
3170531687
},
3170631688
"texttemplate": {
31707-
"arrayOk": true,
3170831689
"description": "Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format 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}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `z`",
3170931690
"dflt": "",
3171031691
"editType": "plot",
3171131692
"valType": "string"
3171231693
},
31713-
"texttemplatesrc": {
31714-
"description": "Sets the source reference on Chart Studio Cloud for `texttemplate`.",
31715-
"editType": "none",
31716-
"valType": "string"
31717-
},
3171831694
"transforms": {
3171931695
"items": {
3172031696
"transform": {

0 commit comments

Comments
 (0)