Documentation / @finchart/core / SeriesSample
Interface: SeriesSample
Defined in: packages/core/src/plot/pane.ts:155
Pane.probe가 등록 하나에 대해 답하는 것 — 툴팁·레전드의 재료다.
Properties
color
color:
string|null
Defined in: packages/core/src/plot/pane.ts:159
index
index:
number
Defined in: packages/core/src/plot/pane.ts:177
고른 점이 그리는 점 배열에서 몇 번째인가. 소비자가 원본을 되찾는 열쇠다 — 코어는 점 타입을 봉인하므로 OHLC를 돌려줄 수 없지만, 자리는 줄 수 있다: bars[sample.index]. 이걸 안 주면 소비자가 이진 탐색을 손으로 짜야 하는데, 그러면 툴팁과 헤더가 서로 다른 봉을 말할 수 있다.
max
max:
number|null
Defined in: packages/core/src/plot/pane.ts:170
min
min:
number|null
Defined in: packages/core/src/plot/pane.ts:169
그 점의 데이터 값 폭 (CoordinateAccessor.getYRange) — 캔들이면 저가·고가. 접근자가 생략한 시리즈(라인·파생)는 null — 점의 값은 value 하나다. 스냅(자석)의 후보가 이 셋이다.
name
name:
string|null
Defined in: packages/core/src/plot/pane.ts:158
등록 메타. 없으면 null.
series
series:
unknown
Defined in: packages/core/src/plot/pane.ts:156
value
value:
number|null
Defined in: packages/core/src/plot/pane.ts:163
그 점의 값 (접근자 기준 — 캔들이면 close). 구멍이면 null.
x
x:
number
Defined in: packages/core/src/plot/pane.ts:161
실제로 찍힌 점의 x — 물은 x가 아니다. 봉 사이에선 이웃 봉의 것이다.