Reincharts
Preparing search index...
packages/annotations/src
Label
Class Label
Hierarchy
Component
<
LabelProps
>
Label
Index
Constructors
constructor
Properties
default
Props
Methods
draw
On
Canvas
helper
render
Constructors
constructor
new
Label
(
props
:
LabelProps
)
:
Label
Parameters
props
:
LabelProps
Returns
Label
new
Label
(
props
:
LabelProps
,
context
:
any
)
:
Label
Parameters
props
:
LabelProps
context
:
any
value of the parent
Context
specified in
contextType
.
Returns
Label
Properties
Static
default
Props
defaultProps
:
{
fillStyle
:
string
;
fontFamily
:
string
;
fontSize
:
number
;
fontWeight
:
string
;
rotate
:
number
;
selectCanvas
:
(
canvases
:
any
)
=>
any
;
text
:
string
;
textAlign
:
string
;
x
:
(
__namedParameters
:
any
)
=>
any
;
}
= ...
Methods
Private
Readonly
draw
On
Canvas
drawOnCanvas
(
ctx
:
CanvasRenderingContext2D
,
moreProps
:
any
)
:
void
Parameters
ctx
:
CanvasRenderingContext2D
moreProps
:
any
Returns
void
Private
Readonly
helper
helper
(
moreProps
:
any
,
xAccessor
:
any
,
xScale
:
ScaleContinuousNumeric
<
number
,
number
>
,
yScale
:
ScaleContinuousNumeric
<
number
,
number
>
,
)
:
{
fillStyle
:
any
;
text
:
any
;
xPos
:
any
;
yPos
:
any
}
Parameters
moreProps
:
any
xAccessor
:
any
xScale
:
ScaleContinuousNumeric
<
number
,
number
>
yScale
:
ScaleContinuousNumeric
<
number
,
number
>
Returns
{
fillStyle
:
any
;
text
:
any
;
xPos
:
any
;
yPos
:
any
}
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
On
Canvas
helper
render
Reincharts
Loading...
value of the parent Context specified in
contextType
.