Class StockEvent

StockEvent is object which holds information about event(bullet).Values from StockEventsSettings will be used if not set.Stock event bullet's size depends on it's graphs fontSize.When user rolls - over, clicks or rolls - out of the event bullet, AmStockChart dispatches events.

Index

Properties

Properties

public backgroundAlpha: number

Opacity of bullet background.

default

1

public backgroundColor: string

Color of bullet background. #DADADA

public borderAlpha: number

Opacity of bullet border.

default

1

public borderColor: string

Bullet border color. #888888

public color: string

The color of the event text. #000000

public date: Date

Date of an event. Must be Date object, not a string.

public graph: StockGraph

graph on which event will be displayed.

public rollOverColor: string

Roll-over background color. #CC0000

public showOnAxis: boolean

Specifies if the event should be displayed on category axis

public text: string

Letter which will be displayed on the event. Not all types can display letters. "text" type can display longer texts.

public type: string

Type of bullet. Possible values are: "flag", "sign", "pin", "triangleUp", "triangleDown", "triangleLeft", "triangleRight", "text", "arrowUp", "arrowDown". sign

public url: string

A URL to go to when user clicks the event.

public urlTarget: string

target of url, "_blank" for example.