-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding mapLoaded event to tile_map visualization #8372
Conversation
This isn't a blocker for 5.0.0 |
sorry ... its a blocker for the visualization detection in Reporting |
@@ -116,14 +116,22 @@ export default function HandlerBaseClass(Private) { | |||
}); | |||
|
|||
// render the chart(s) | |||
selection.selectAll('.chart') | |||
.each(function (chartData) { | |||
this.loadedCount = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to expose this on this
? I would rather it just be local variable.
chart.events.on('rendered', () => { | ||
self.loadedCount++; | ||
if (self.loadedCount === chartSelection.length) { | ||
charts[0].events.emit('renderComplete'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why this is using charts[0]
in a comment in the code? I would expect this to happen at a higher level.
LGTM |
--------- **Commit 1:** adding mapLoaded event to tile_map visualization * Original sha: e198f41 * Authored by ppisljar <[email protected]> on 2016-09-20T10:22:43Z **Commit 2:** adding rendered event to each chart and renderComplete to vis * Original sha: 8324f5a * Authored by ppisljar <[email protected]> on 2016-09-20T17:54:52Z **Commit 3:** fixing based on Spencers comments * Original sha: b4780fe * Authored by ppisljar <[email protected]> on 2016-09-22T07:24:19Z
--------- **Commit 1:** adding mapLoaded event to tile_map visualization * Original sha: e198f41 * Authored by ppisljar <[email protected]> on 2016-09-20T10:22:43Z **Commit 2:** adding rendered event to each chart and renderComplete to vis * Original sha: 8324f5a * Authored by ppisljar <[email protected]> on 2016-09-20T17:54:52Z **Commit 3:** fixing based on Spencers comments * Original sha: b4780fe * Authored by ppisljar <[email protected]> on 2016-09-22T07:24:19Z
--------- **Commit 1:** adding mapLoaded event to tile_map visualization * Original sha: 0f673d7c14ee9fa638b7f284f5254ef570f17c93 [formerly e198f41] * Authored by ppisljar <[email protected]> on 2016-09-20T10:22:43Z **Commit 2:** adding rendered event to each chart and renderComplete to vis * Original sha: 39530305081240930e33369de64db51fd68e7fc5 [formerly 8324f5a] * Authored by ppisljar <[email protected]> on 2016-09-20T17:54:52Z **Commit 3:** fixing based on Spencers comments * Original sha: fabc53d93bde22909ee696a5d18ce21434e0d638 [formerly b4780fe] * Authored by ppisljar <[email protected]> on 2016-09-22T07:24:19Z Former-commit-id: c064f87
[backport] PR elastic#8372 to 5.x Former-commit-id: 4752dbb
adding mapLoaded event to tile_map visualization.
update: i added rendered event to each chart and renderComplete event which is fired once all the charts have been rendered.
we can now attach listener to Vis