Skip to content

Commit e700fc2

Browse files
committed
texttemplate: fix style
1 parent 4ef8392 commit e700fc2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/plots/template_attributes.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ function describeVariables(extra) {
3939
return descPart;
4040
}
4141

42-
module.exports = {};
43-
module.exports.hovertemplateAttrs = function(opts, extra) {
42+
exports.hovertemplateAttrs = function(opts, extra) {
4443
opts = opts || {};
4544
extra = extra || {};
4645

@@ -70,7 +69,7 @@ module.exports.hovertemplateAttrs = function(opts, extra) {
7069
return hovertemplate;
7170
};
7271

73-
module.exports.texttemplateAttrs = function(opts, extra) {
72+
exports.texttemplateAttrs = function(opts, extra) {
7473
opts = opts || {};
7574
extra = extra || {};
7675

src/traces/bar/plot.js

-1
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,6 @@ function calcTexttemplate(fullLayout, calcTrace, index, xa, ya) {
619619
return Lib.texttemplateString(texttemplate, obj, fullLayout._d3locale, pt, obj, trace._meta || {});
620620
}
621621

622-
// TODO: calcTextinfo should build a texttemplate pass it to calcTexttemplate()
623622
function calcTextinfo(calcTrace, index, xa, ya) {
624623
var trace = calcTrace[0].trace;
625624
var isHorizontal = (trace.orientation === 'h');

0 commit comments

Comments
 (0)