Class: SelectionMarker

StockChartX. SelectionMarker


new SelectionMarker()

Represents object's selection marker.

Members


actualTheme :SelectionMarkerTheme

Returns actual theme.
Type:
  • SelectionMarkerTheme

<readonly> chart :object

Returns parent chart.
Type:
  • object

theme :SelectionMarkerTheme

Gets/Sets theme.
Type:
  • SelectionMarkerTheme

width :number

Gets/Sets marker's width.
Type:
  • number

Methods


draw(context, point)

Draws marker at a given position(s).
Parameters:
Name Type Description
context CanvasRenderingContext2D The drawing context.
point StockChartX.Point | Array.<StockChartX.Point>
Example
// draw marker at a given position
marker.draw(context, {x: 10, y: 20});

// draw 2 markers at a given positions.
marker.draw(context, [{x: 10, y: 20}, {x: 100, y: 100}]);