Skip to content

Commit 23519f0

Browse files
committed
Require pie trace module directly
1 parent 46b83d8 commit 23519f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/legend/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
var Plotly = require('../../plotly');
1313
var d3 = require('d3');
1414

15+
var Pie = require('../../traces/pie');
16+
1517
var legend = module.exports = {};
1618

1719
legend.layoutAttributes = require('./attributes');
@@ -233,7 +235,7 @@ legend.pie = function(d) {
233235
.attr('transform', 'translate(20,0)');
234236
pts.exit().remove();
235237

236-
if(pts.size()) pts.call(Plotly.Pie.styleOne, d[0], trace);
238+
if(pts.size()) pts.call(Pie.styleOne, d[0], trace);
237239
};
238240

239241
legend.style = function(s) {

0 commit comments

Comments
 (0)