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

actions/tooltip

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

showTip action - three usages

The showTip action shows tooltip with three usages: (1) Display at position: dispatchAction({type: 'showTip', x: number, y: number, position?: number[] | string | Function}). (2) Specify series element: dispatchAction({type: 'showTip', seriesIndex?: number, dataIndex?: number, name?: string, position?: number[] | string | Function}). (3) Specify geo element (since v5.1.0): dispatchAction({type: 'showTip', geoIndex?: number | number[], geoId?: string | string[], geoName?: string | string[], name?: string, position?: number[] | string | Function}).

hideTip action

The hideTip action hides the tooltip. dispatchAction({type: 'hideTip'}).

Tooltip style improvements in ECharts 5

Apache ECharts 5 optimized the style of the tooltip by adjusting the font style, color, arrow pointing to the graph, and border color following the graph color. The rendering logic of rich text has been improved to ensure that the display is consistent with the HTML way. Additionally, the ability to sort the list in the tooltip by value size or category order has been added.

showTip action - display tooltip with three usage modes

The showTip action displays a tooltip with three modes: (1) Show at specific container position: x (number), y (number), position (number[] | string | Function); (2) Show for series data: seriesIndex (number, optional), dataIndex (number), name (string), position (number[] | string | Function); (3) Show for geo region (v5.1.0+): geoIndex/geoId/geoName, geo region name, position (number[] | string | Function). The position parameter overrides tooltip.position for this action only. Requires tooltip component to be enabled.

hideTip action - hide tooltip

The hideTip action hides the tooltip. No parameters required. Requires tooltip component to be enabled.

Give your agent this brain