Website
Live demos
Guides
Source
Preparing search index...
The search index is not available
OpenAlgo Charts API - v2.3.2
OpenAlgo Charts API
draw
DrawContext
Interface DrawContext
interface
DrawContext
{
ctx
:
CanvasRenderingContext2D
;
drawing
:
Drawing
;
pts
:
ScreenPoint
[]
;
rc
:
PrimitiveRenderContext
;
selected
:
boolean
;
style
:
Required
<
Pick
<
DrawingStyle
,
"color"
|
"lineWidth"
>
>
&
DrawingStyle
;
formatPrice
(
price
:
number
)
:
string
;
}
Index
Properties
ctx
drawing
pts
rc
selected
style
Methods
format
Price
Properties
ctx
ctx
:
CanvasRenderingContext2D
drawing
drawing
:
Drawing
pts
pts
:
ScreenPoint
[]
Anchors in
device
px, ready to stroke.
rc
rc
:
PrimitiveRenderContext
selected
selected
:
boolean
style
style
:
Required
<
Pick
<
DrawingStyle
,
"color"
|
"lineWidth"
>
>
&
DrawingStyle
Methods
format
Price
formatPrice
(
price
:
number
)
:
string
Format a price the way the pane's axis does.
Parameters
price
:
number
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
ctx
drawing
pts
rc
selected
style
Methods
format
Price
Website
Live demos
Guides
Source
OpenAlgo Charts API - v2.3.2
Loading...
Anchors in device px, ready to stroke.