Reincharts
Preparing search index...
packages/series/src
OHLCSeries
Class OHLCSeries
Hierarchy
Component
<
OHLCSeriesProps
>
OHLCSeries
Index
Constructors
constructor
Properties
default
Props
Methods
draw
Bar
Data
On
Canvas
draw
On
Canvas
get
OHLC
Bars
render
Constructors
constructor
new
OHLCSeries
(
props
:
OHLCSeriesProps
)
:
OHLCSeries
Parameters
props
:
OHLCSeriesProps
Returns
OHLCSeries
new
OHLCSeries
(
props
:
OHLCSeriesProps
,
context
:
any
)
:
OHLCSeries
Parameters
props
:
OHLCSeriesProps
context
:
any
value of the parent
Context
specified in
contextType
.
Returns
OHLCSeries
Properties
Static
default
Props
defaultProps
:
{
classNames
:
(
d
:
any
)
=>
"up"
|
"down"
|
"firstbar"
;
clip
:
boolean
;
stroke
:
(
d
:
any
)
=>
"#000000"
|
"#26a675ff"
|
"#e93b3bff"
;
strokeWidth
:
number
;
yAccessor
:
(
d
:
any
)
=>
{
close
:
any
;
high
:
any
;
low
:
any
;
open
:
any
}
;
}
= ...
Methods
Private
Readonly
draw
Bar
Data
On
Canvas
drawBarDataOnCanvas
(
ctx
:
CanvasRenderingContext2D
,
barData
:
any
)
:
void
Parameters
ctx
:
CanvasRenderingContext2D
barData
:
any
Returns
void
Private
Readonly
draw
On
Canvas
drawOnCanvas
(
ctx
:
CanvasRenderingContext2D
,
moreProps
:
any
)
:
void
Parameters
ctx
:
CanvasRenderingContext2D
moreProps
:
any
Returns
void
Private
Readonly
get
OHLC
Bars
getOHLCBars
(
props
:
OHLCSeriesProps
,
xAccessor
:
any
,
xScale
:
any
,
yScale
:
any
,
plotData
:
any
,
)
:
{
bars
:
any
;
barWidth
:
number
;
strokeWidth
:
number
}
Parameters
props
:
OHLCSeriesProps
xAccessor
:
any
xScale
:
any
yScale
:
any
plotData
:
any
Returns
{
bars
:
any
;
barWidth
:
number
;
strokeWidth
:
number
}
render
render
()
:
Element
Returns
Element
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
default
Props
Methods
draw
Bar
Data
On
Canvas
draw
On
Canvas
get
OHLC
Bars
render
Reincharts
Loading...
value of the parent Context specified in
contextType
.