new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Apache ECharts · all subjects

events & actions

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

on method for event binding

on(eventName: string, handler: Function, context?: Object) or on(eventName: string, query: string|Object, handler: Function, context?: Object) binds event handlers. eventName is lowercase like 'click', 'mousemove', 'legendselected'. The optional query parameter filters events to specific components or elements. The context parameter sets 'this' inside the handler.

on event query string format

The query string parameter in on() can be 'mainType' or 'mainType.subType' format. Examples: 'series' for any series, 'series.line' for line series, 'xAxis.category' for category x-axis.

on event query object properties

The query object in on() can contain: <mainType>Index (number), <mainType>Name (string), <mainType>Id (string), dataIndex (number), name (string), dataType (string like 'node' or 'edge' in graph series), element (string for custom series element name). All properties are optional.

off method for event unbinding

off(eventName?: string, handler?: Function) unbinds event handlers. If eventName is omitted, all events are unlistened. If handler is omitted, all handlers for that eventName are removed.

Give your agent this brain