Job of Listeners field in Kibana visualizations?

(hans) #1

What is the "listeners"-field inside of the "visState"-field in an Kibana visualization used for? (e.g. it is present in the JSON representation of a bar chart/area chart)

I would like to mention it very shortly in a paper at university, but couldn't find anything about this field. Any pointer to docu or short answer is highly appreciated :slight_smile:

(Spencer Alger) #2

It's actually a by product of liberally serializing the state of the visualizations. The listeners object can contain event listeners that should be bound to the rendered vis when it is created, but since the object just maps event names to functions they values within that object get dropped with JSON stringified.

(system) #3