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/visualmap

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

selectDataRange action - example

myChart.dispatchAction({type: 'selectDataRange', selected: [20, 40]}) selects a value range between 20 and 40. myChart.dispatchAction({type: 'selectDataRange', selected: {1: false}}) cancels selecting the second range. myChart.dispatchAction({type: 'selectDataRange', selected: {'excellent': false}}) cancels selecting 'excellent' category.

visualMap component for visual encoding

The visualMap component supports configuring rules that map data values to visual channels such as color and size. This enables visual encoding of data based on specified mapping rules.

selectDataRange action - select visualMap range

The selectDataRange action selects a value range for visual mapping. Parameters: visualMapIndex (number, optional, default 0), selected (Object | Array). For continuous visualMap, selected is an array [min, max]. For discrete visualMap, selected is an object with keys as category/segment indices and boolean values. Example: selected [20, 40] selects 20-40 range; selected {1: false} deselects second segment; selected {'优': false} deselects category '优'. Triggers datarangeselected event. Requires visualMap component to be enabled.

Give your agent this brain