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

visualmap/piecewise

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

visualMap.piecewise type identifier

The type option for piecewise visualMap component is 'piecewise', used to determine it is a piecewise visualMap component.

Piecewise visualMap three operating modes

Piecewise visualMap component works in three modes: CONTINUOUS-AVERAGE (series data is continuous and divided into pieces averagely according to splitNumber), CONTINUOUS-CUSTOMIZED (series data is continuous and divided according to rules defined in pieces), and CATEGORY (series data is discrete and categorized according to categories).

visualMap.piecewise splitNumber default and behavior

splitNumber has a default value of 5 and determines how many pieces continuous data is divided into averagely. If splitNumber is 5, data will be sliced into 5 pieces. The range of continuous data should be defined by min and max. If pieces or categories is set up, splitNumber will not be used anymore.

visualMap.piecewise pieces array structure and visual customization

pieces is an array used to customize how to slice continuous data. Each piece object can specify min and max properties (where missing min defaults to -Infinity and missing max defaults to Infinity), a label property for custom labels, and a color property for custom colors. These visual channels can be customized in each piece: color, colorAlpha, opacity, colorLightness, colorSaturation, colorHue. In ECharts2, pieces was called splitList, which is retained in ECharts3 for compatibility but pieces is recommended.

visualMap.piecewise categories array for discrete data

categories is an array used when dataValues in series.data are discrete (category data or enumerable data), and you want to perform table mapping from dataValue to visual channels. The categories array describes the entire enumeration of data, for example: ['Demon Hunter', 'Blademaster', 'Death Knight', 'Warden', 'Paladin']. The sequence of items in categories determines their visual representation; see visualMap.inverse for detailed rules.

visualMap.piecewise min and max behavior by mode

min and max specify the min and max dataValue for the visualMap component, which make up the domain of visual mapping. In CONTINUOUS-CUSTOMIZED mode (pieces used) or CATEGORY mode (categories used), max and min don't need to be specified. In CONTINUOUS-AVERAGE mode (splitNumber used), they should be specified explicitly with defaults of [0, 200], not dataMin and dataMax from series.data.

visualMap.piecewise minOpen and maxOpen options

minOpen and maxOpen are boolean options that work when type is piecewise and min/max/splitNumber are set. If minOpen is set as true, an extra piece labeled with '< min' will show. If maxOpen is set as true, an extra piece labeled with '> max' will show.

visualMap.piecewise selectedMode default and options

selectedMode has a default value of 'multiple' and can be set to: 'multiple' (multiple selection), 'single' (single selection), true (single selection, since version 5.3.3), or false (no selection, since version 5.3.3).

visualMap.piecewise inverse default and behavior

inverse has a default value of false and controls whether to inverse the layout of visualMap component. In CONTINUOUS-AVERAGE mode, the rule of data layout is the same as visualMap-continuous.inverse. In CONTINUOUS-CUSTOMIZED mode (pieces used) or CATEGORY mode (categories used), the layout of each piece is determined by their order in the definition. When inverse is false: in vertical orient, pieces[0] or categories[0] correspond to upward side; in horizontal orient, pieces[0] or categories[0] correspond to left side. When inverse is true, the results are opposite.

visualMap.piecewise precision default and behavior

precision has a default value of null and specifies the decimal precision of label, defaulting to 0 (no decimals). In CONTINUOUS-AVERAGE mode (splitNumber used), decimal precision auto adapts to series.data. In CONTINUOUS-CUSTOMIZED mode (pieces used) or CATEGORY mode (categories used), decimal precision defaults to 0 (no decimals).

visualMap.piecewise itemWidth default

itemWidth has a default value of 20 and specifies the width of each graphical element that represents a piece, with unit px.

visualMap.piecewise itemHeight default

itemHeight has a default value of 14 and specifies the height of each graphical element that represents a piece, with unit px.

visualMap.piecewise align default and options

align has a default value of 'auto' and specifies the layout relationship between graphical elements for pieces and their labels. Possible values are: 'auto' (decide automatically), 'left' (graphical elements on left and labels on right), 'right' (graphical elements on right and labels on left).

visualMap.piecewise text array option

text is an array with default value null that specifies label text on both ends, such as ['High', 'Low']. The order of items in the text array is determined by the visualMap.inverse setting. When text is used, labels will not show for compatibility with ECharts2.

visualMap.piecewise textGap default

textGap has a default value of 10 and specifies the distance between the ends of graphical elements for pieces and the labels, with unit px. See visualMap-piecewise.text for details on how text affects label display.

visualMap.piecewise showLabel option

showLabel is a boolean option that controls whether to show label of each item. By default, label will not be shown when visualMap-piecewise.text is used, otherwise label will be shown.

visualMap.piecewise itemGap default

itemGap has a default value of 10 and specifies the distance between each two graphical elements for pieces, with unit px.

visualMap.piecewise itemSymbol default

itemSymbol has a default value of 'roundRect' and specifies the default symbol (the shape of graphical element). The setting of visual channel symbol can refer to visualMap-piecewise.inRange and visualMap-piecewise.outOfRange. When they are not specified, itemSymbol is adopted as the default value, but just used in visualMap component itself, not in chart.

visualMap.piecewise formatter string or function

formatter is a string or function that formats the label. If set as a string, it refers to a template, for instance: 'aaaa{value}bbbb{value2}', where {value} and {value2} represents the current selected range of dataValues. If set as a function, it refers to a callback function, for example: formatter: function (value, value2) { return 'aaaa' + value + 'bbbb' + value2; }

Give your agent this brain