@kumo-charts/core/chart-types
API 参考由源码注释生成,只有英文。
import { … } from '@kumo-charts/core/chart-types';
Functions
chartTypesfunction源码
function chartTypes(types: readonly ChartType[] = []): ChartTypesModule
The chart types module, with the chart types given, such as chartTypes(allChartTypes) or
chartTypes([heikinAshi, renko]): their transforms join chart.transforms, their series types
chart.series.
Interfaces
ChartTypeinterface源码
interface ChartType
A chart type: how its bars are built from the bars of the timeframe (transform, set with
chart.transforms.set()), how they are drawn (series, the main series' type), or both, as
Kagi lines are.
readonly transform?: BarTransformDefinitionreadonly series?: SeriesTypeDefinition<object>Types
ChartTypesModuletype源码
type ChartTypesModule = ChartModule
Adds nothing to the chart's API: its types join chart.transforms and chart.series.
PointFigureSourcetype源码
type PointFigureSource = 'close' | 'hl'
What a point & figure chart is plotted from: the closes, or the highs and lows.
RenkoSourcetype源码
type RenkoSource = 'close' | 'ohlc'
What Renko bricks are built from: the closes, or the open, high, low and close of each bar.
Variables
allChartTypesvariable源码
const allChartTypes: readonly ChartType[]
Every chart type of the library, for chartTypes(allChartTypes).
heikinAshivariable源码
const heikinAshi: ChartType
Heikin-Ashi candles, each from the average of its bar and the one before.
kagivariable源码
const kagi: ChartType
Kagi lines, thick where they pass the last shoulder and thin under the last waist.
lineBreakvariable源码
const lineBreak: ChartType
Line break: a line goes on until the closes break the lines before.
pointFigurevariable源码
const pointFigure: ChartType
Point & figure columns of X's and O's.
rangeBarsvariable源码
const rangeBars: ChartType
Range bars, each spanning the same range.
renkovariable源码
const renko: ChartType
Renko bricks on a grid of multiples of the box.
tickBarsvariable源码
const tickBars: ChartType
Bars of the same number of trades.
turnoverBarsvariable源码
const turnoverBars: ChartType
Bars of the same turnover.
volumeBarsvariable源码
const volumeBars: ChartType
Bars of the same volume.
volumeCandlesvariable源码
const volumeCandles: ChartType
Candles as wide as their volume.