Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/ui/public/vis/vis_types/vislib_vis_type.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ export function VislibVisTypeProvider(Private, $rootScope, $timeout, $compile) {
const legendHtml = $compile('<vislib-legend></vislib-legend>')($scope);
this.container.appendChild(legendHtml[0]);
$scope.$digest();
// We need to wait one digest cycle for the legend to render, before
// we want to render the chart, so it know about the legend size.
await new Promise(resolve => $timeout(resolve));
}

this.vis.vislibVis = new vislib.Vis(this.chartEl, this.vis.params);
Expand Down