telegram-charts
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Tooltip
Vertical
constructor
_is
Visible
has
Summary
model
options
points
With
Data
Sets
state
tooltip
Interaction
ctx
is
Visible
compute
Left
Top
Corner
compute
Model
create
Box
Path
draw
draw
Body
draw
Box
draw
Header
draw
Line
draw
Point
draw
Row
find
Top
Data
Set
Point
OnScreen
get
MaxY
hide
highlight
Bar
highlight
Data
Sets
measure
Body
measure
Header
set
Data
And
Show
update
Height
update
Position
Hierarchy
TooltipVertical
Implements
Tooltip
Index
Constructors
constructor
Properties
_is
Visible
has
Summary
model
options
points
With
Data
Sets
state
tooltip
Interaction
Accessors
ctx
is
Visible
Methods
compute
Left
Top
Corner
compute
Model
create
Box
Path
draw
draw
Body
draw
Box
draw
Header
draw
Line
draw
Point
draw
Row
find
Top
Data
Set
Point
OnScreen
get
MaxY
hide
highlight
Bar
highlight
Data
Sets
measure
Body
measure
Header
set
Data
And
Show
update
Height
update
Position
Constructors
constructor
new
Tooltip
Vertical
(
state
:
ChartState
, chart
:
Chart
)
:
TooltipVertical
Parameters
state:
ChartState
chart:
Chart
Returns
TooltipVertical
Properties
Private
_is
Visible
_is
Visible
:
boolean
= false
Private
has
Summary
has
Summary
:
boolean
Private
model
model
:
TooltipModelWithBB
|
undefined
Private
options
options
:
TooltipOptions
Private
points
With
Data
Sets
points
With
Data
Sets
:
PointWithDataSet
[]
|
undefined
Private
state
state
:
ChartState
Private
tooltip
Interaction
tooltip
Interaction
:
TooltipInteraction
Accessors
ctx
ctx
:
is
Visible
is
Visible
:
Methods
Private
compute
Left
Top
Corner
compute
Left
Top
Corner
(
topPoint
:
PointTuple
, dimension
:
Dimensions
)
:
PointTuple
Logic: p - top dataset point, we try to put tooltip in order A->B->C A C p B
Parameters
topPoint:
PointTuple
dimension:
Dimensions
Returns
PointTuple
Private
compute
Model
compute
Model
(
pointsWithDataSets
:
PointWithDataSet
[]
)
:
TooltipModelWithBB
Parameters
pointsWithDataSets:
PointWithDataSet
[]
Returns
TooltipModelWithBB
Private
create
Box
Path
create
Box
Path
(
model
:
TooltipModelWithBB
, height
:
number
)
:
Path2D
Parameters
model:
TooltipModelWithBB
height:
number
Returns
Path2D
draw
draw
(
)
:
void
Returns
void
Private
draw
Body
draw
Body
(
model
:
TooltipModelWithBB
, pointsWithDataSet
:
PointWithDataSet
[]
)
:
void
Parameters
model:
TooltipModelWithBB
pointsWithDataSet:
PointWithDataSet
[]
Returns
void
Private
draw
Box
draw
Box
(
model
:
TooltipModelWithBB
)
:
void
Parameters
model:
TooltipModelWithBB
Returns
void
Private
draw
Header
draw
Header
(
model
:
TooltipModelWithBB
, xData
:
number
)
:
void
Parameters
model:
TooltipModelWithBB
xData:
number
Returns
void
Private
draw
Line
draw
Line
(
x
:
number
, yFrom
:
number
)
:
void
Parameters
x:
number
yFrom:
number
Returns
void
Private
draw
Point
draw
Point
(
ctx
:
CanvasRenderingContext2D
, point
:
PointWithDataSet
)
:
void
Parameters
ctx:
CanvasRenderingContext2D
point:
PointWithDataSet
Returns
void
Private
draw
Row
draw
Row
(
ctx
:
CanvasRenderingContext2D
, model
:
TooltipModelWithBB
, label
:
string
, valueColor
:
string
, yValue
:
number
, sum
:
number
)
:
void
Parameters
ctx:
CanvasRenderingContext2D
model:
TooltipModelWithBB
label:
string
valueColor:
string
yValue:
number
sum:
number
Returns
void
Private
find
Top
Data
Set
Point
OnScreen
find
Top
Data
Set
Point
OnScreen
(
pointsWithDataSets
:
PointWithDataSet
[]
)
:
number
Parameters
pointsWithDataSets:
PointWithDataSet
[]
Returns
number
Private
get
MaxY
get
MaxY
(
)
:
number
Returns
number
hide
hide
(
)
:
void
Returns
void
Private
highlight
Bar
highlight
Bar
(
ctx
:
CanvasRenderingContext2D
, point
:
PointWithDataSet
, bottom
:
number
)
:
number
Parameters
ctx:
CanvasRenderingContext2D
point:
PointWithDataSet
bottom:
number
Returns
number
Private
highlight
Data
Sets
highlight
Data
Sets
(
pointWithDataSets
:
PointWithDataSet
[]
)
:
void
Parameters
pointWithDataSets:
PointWithDataSet
[]
Returns
void
Private
measure
Body
measure
Body
(
pointsWithDataSets
:
PointWithDataSet
[]
)
:
TooltipBodyModel
Parameters
pointsWithDataSets:
PointWithDataSet
[]
Returns
TooltipBodyModel
Private
measure
Header
measure
Header
(
pointsWithDataSets
:
PointWithDataSet
[]
)
:
Dimensions
Parameters
pointsWithDataSets:
PointWithDataSet
[]
Returns
Dimensions
set
Data
And
Show
set
Data
And
Show
(
pointsWithName
:
PointWithDataSet
[]
|
undefined
)
:
void
Parameters
pointsWithName:
PointWithDataSet
[]
|
undefined
Returns
void
Private
update
Height
update
Height
(
model
:
TooltipModelWithBB
, pointsWithDataSets
:
PointWithDataSet
[]
)
:
void
Parameters
model:
TooltipModelWithBB
pointsWithDataSets:
PointWithDataSet
[]
Returns
void
Private
update
Position
update
Position
(
topPoint
:
PointTuple
, model
:
TooltipModelWithBB
)
:
void
Parameters
topPoint:
PointTuple
model:
TooltipModelWithBB
Returns
void
Generated using
TypeDoc
Logic: p - top dataset point, we try to put tooltip in order A->B->C A C p B