We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 189e313 commit a320f29Copy full SHA for a320f29
src/components/modebar/index.js
@@ -495,3 +495,22 @@ proto.sendDataToCloud = function() {
495
};
496
497
module.exports = ModeBar;
498
+function createModebar(gd, buttons) {
499
+ var fullLayout = gd._fullLayout;
500
+
501
+ var modebar = new ModeBar({
502
+ graphInfo: gd,
503
+ container: fullLayout._paperdiv.node(),
504
+ buttons: buttons
505
+ });
506
507
+ if(fullLayout._privateplot) {
508
+ d3.select(modebar.element).append('span')
509
+ .classed('badge-private float--left', true)
510
+ .text('PRIVATE');
511
+ }
512
513
+ return modebar;
514
+}
515
516
+module.exports = createModebar;
0 commit comments