Skip to content

Commit 2f38a9d

Browse files
committed
prohibit tex interpretation in sankey for now
1 parent 91e61da commit 2f38a9d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/traces/sankey/render.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,7 @@ module.exports = function(gd, svg, calcData, layout, callbacks) {
970970
.style('cursor', 'default');
971971

972972
nodeLabel
973+
.attr('data-notex', 1) // prohibit tex interpretation until we can handle tex and regular text together
973974
.text(function(d) { return d.node.label; })
974975
.each(function(d) {
975976
var e = d3.select(this);
@@ -988,8 +989,6 @@ module.exports = function(gd, svg, calcData, layout, callbacks) {
988989
(nLines - 1) * LINE_SPACING - CAP_SHIFT
989990
);
990991

991-
// TODO: handle MathJax
992-
993992
var posX = d.nodeLineWidth / 2 + TEXTPAD;
994993
var posY = ((d.horizontal ? d.visibleHeight : d.visibleWidth) - blockHeight) / 2;
995994
if(d.horizontal) {

0 commit comments

Comments
 (0)