mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
parent
6f87309395
commit
74f4f45875
2 changed files with 4 additions and 3 deletions
|
@ -27,8 +27,10 @@ export function VislibVisTypeProvider(Private) {
|
|||
this.vis.refreshLegend = 0;
|
||||
}
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!this._response) return reject();
|
||||
return new Promise((resolve) => {
|
||||
if (this.el.clientWidth === 0 || this.el.clientHeight === 0) {
|
||||
return resolve();
|
||||
}
|
||||
this.vis.vislibVis = new vislib.Vis(this.el, this.vis.params);
|
||||
this.vis.vislibVis.on('brush', this.vis.API.events.brush);
|
||||
this.vis.vislibVis.on('click', this.vis.API.events.filter);
|
||||
|
|
|
@ -17,7 +17,6 @@ uiModules
|
|||
|
||||
return {
|
||||
restrict: 'E',
|
||||
require: '?renderCounter',
|
||||
scope: {
|
||||
showSpyPanel: '=?',
|
||||
vis: '=',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue