Reincharts
Preparing search index...
packages/interactive/src
TrendLine
Class TrendLine
Hierarchy
Component
<
TrendLineProps
,
TrendLineState
>
TrendLine
Index
Constructors
constructor
Properties
get
Selection
State
mouse
Moved
save
Node
Type
terminate
default
Props
display
Name
Methods
handle
Drag
Line
handle
Drag
Line
Complete
handle
Draw
Line
handle
End
handle
Start
render
Constructors
constructor
new
TrendLine
(
props
:
TrendLineProps
)
:
TrendLine
Parameters
props
:
TrendLineProps
Returns
TrendLine
Properties
Private
get
Selection
State
getSelectionState
:
any
Private
mouse
Moved
mouseMoved
:
any
Private
save
Node
Type
saveNodeType
:
any
Private
terminate
terminate
:
any
Static
default
Props
defaultProps
:
{
appearance
:
{
edgeFill
:
string
;
edgeStroke
:
string
;
edgeStrokeWidth
:
number
;
r
:
number
;
strokeDasharray
:
string
;
strokeStyle
:
string
;
strokeWidth
:
number
;
}
;
currentPositionOpacity
:
number
;
currentPositionRadius
:
number
;
currentPositionStroke
:
string
;
currentPositionStrokeWidth
:
number
;
enabled
:
boolean
;
hoverText
:
{
bgFill
:
string
;
bgHeight
:
string
;
bgWidth
:
string
;
enable
:
boolean
;
fill
:
string
;
fontFamily
:
string
;
fontSize
:
number
;
selectedText
:
string
;
text
:
string
;
}
;
onComplete
:
()
=>
void
;
onStart
:
()
=>
void
;
shouldDisableSnap
:
(
e
:
MouseEvent
)
=>
boolean
;
snap
:
boolean
;
trends
:
never
[]
;
type
:
string
;
}
= ...
Static
display
Name
displayName
:
string
= "TrendLine"
Methods
Private
Readonly
handle
Drag
Line
handleDragLine
(
_
:
MouseEvent
,
index
:
undefined
|
number
,
newXYValue
:
any
)
:
void
Parameters
_
:
MouseEvent
index
:
undefined
|
number
newXYValue
:
any
Returns
void
Private
Readonly
handle
Drag
Line
Complete
handleDragLineComplete
(
e
:
MouseEvent
,
moreProps
:
any
)
:
void
Parameters
e
:
MouseEvent
moreProps
:
any
Returns
void
Private
Readonly
handle
Draw
Line
handleDrawLine
(
_
:
MouseEvent
,
xyValue
:
any
)
:
void
Parameters
_
:
MouseEvent
xyValue
:
any
Returns
void
Private
Readonly
handle
End
handleEnd
(
e
:
MouseEvent
,
xyValue
:
any
,
moreProps
:
any
)
:
void
Parameters
e
:
MouseEvent
xyValue
:
any
moreProps
:
any
Returns
void
Private
Readonly
handle
Start
handleStart
(
e
:
MouseEvent
,
xyValue
:
any
,
moreProps
:
any
)
:
void
Parameters
e
:
MouseEvent
xyValue
:
any
moreProps
:
any
Returns
void
render
render
()
:
Element
Returns
Element
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
get
Selection
State
mouse
Moved
save
Node
Type
terminate
default
Props
display
Name
Methods
handle
Drag
Line
handle
Drag
Line
Complete
handle
Draw
Line
handle
End
handle
Start
render
Reincharts
Loading...