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

candlestick-series

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

Candlestick series type aliases

ECharts supports both 'candlestick' and 'k' as values for series.type. The 'k' alias automatically converts to 'candlestick'.

Candlestick default coordinate system

Candlestick series uses 'cartesian2d' (Cartesian 2D) as its default coordinate system.

Candlestick barWidth option

The barWidth option specifies the width of candlestick bars. It accepts absolute values (like 10) or percentage values (like '20%', relative to band width). Default is '70%'. The parameter auto-adapts by default.

Candlestick barMinWidth and barMaxWidth

barMinWidth specifies the minimum width of candlestick bars, and barMaxWidth specifies the maximum width. Both accept absolute values (like 10) or percentage values (like '20%', relative to band width). Both auto-adapt by default.

Default candlestick colors for increase and decrease

By default, ECharts uses red (#eb5454) for bullish candlesticks (increase) and green (#47b262) for bearish candlesticks (decrease). Border colors default to #eb5454 for bullish and #47b262 for bearish with a border width of 1.

Candlestick itemStyle color options

The itemStyle object for candlesticks contains the following color properties: - color: Fill color of bullish candlestick (increase), defaults to #eb5454 - color0: Fill color of bearish candlestick (decrease), defaults to #47b262 - borderColor: Border color of bullish candlestick, defaults to #eb5454 - borderColor0: Border color of bearish candlestick, defaults to #47b262 - borderColorDoji: Border color when open price equals close price (doji), introduced in version 5.4.1 - borderWidth: Border width of candlestick, defaults to 1, set to 0 to remove border

Candlestick emphasis state

The emphasis object defines styles for candlesticks in emphasis state (available in version 5.6.0+). It contains an itemStyle sub-object and supports focus and blur scope configuration. Border width defaults to 2 in emphasis state.

Candlestick blur state

The blur object defines configurations for candlesticks in blur state (available in version 5.6.0+). It is only available when emphasis.focus is set. It contains an itemStyle sub-object with default border width of 2.

Candlestick select state

The select object defines configurations for candlesticks in select state (available in version 5.0.0+). It is only available when selectedMode is set. It contains an itemStyle sub-object with default border width of 2.

Candlestick data format OCLH

Candlestick data must be a two-dimensional array where each data item represents one candlestick box containing 4 values in OCLH order: [open, close, lowest, highest]. Each data item can be either an array of 4 numbers or an object with a value property containing the array and optional itemStyle.

Candlestick data OHLC remapping

If source data is in OHLC order [open, high, low, close] instead of the default OCLH order, use the encode option to remap dimensions. Example: encode: { x: 0, y: [1, 4, 3, 2] } remaps OHLC to OCLH without reordering the source data.

Candlestick data item structure

Each candlestick data item can be either: 1. An array: [open, close, lowest, highest] 2. An object with properties: value (array), name (string), itemStyle (object), emphasis (object), blur (object), select (object), groupId (string), childGroupId (string)

Candlestick large mode default

Candlestick series enables large mode by default for better performance. The default threshold is 600 data points.

Candlestick progressive rendering defaults

Candlestick series supports progressive rendering with defaults: progressive is 3000, progressiveThreshold is 10000, and progressiveChunkMode is 'mod'. It supports progressive chunk mode.

Candlestick regional color conventions

Different regions use different candlestick color conventions: Chinese mainland, Taiwan, Japan, and South Korea typically use red for increase and green/blue for decrease. Europe, North America, Hong Kong, and Singapore typically use green for increase and red for decrease. ECharts uses red for increase and green for decrease by default.

Candlestick emphasis itemStyle border width

In the emphasis state, the itemStyle borderWidth defaults to 2 for candlesticks.

Give your agent this brain