Fix layer event to match documentation (chain).

* spec chaining for chart events
* spec chaining for layer events
* implement chaining for layer events.