Important version information!

You are browsing a class reference for deprecated Version 2 of the JavaScript Charts.

Documentation for other versions: amCharts 4 (current) or amCharts 3.


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.


backgroundAlphaNumber1Opacity of bullet background.
backgroundColorString#DADADAColor of bullet background.
borderAlphaNumber1Opacity of bullet border.
borderColorString#888888Bullet border color.
colorString#000000The color of the event text.
dateDate Date of an event. Must be Date object, not a string.
descriptionStringA description that will be shown in a balloon when user rolls over mouse cursor over event icon.
graphStockGraph graph on which event will be displayed.
rollOverColorString#CC0000Roll-over background color.
showOnAxisBooleanfalseSpecifies if the event should be displayed on category axis
textString Letter which will be displayed on the event. Not all types can display letters. "text" type can display longer texts.
typeStringsignType of bullet. Possible values are: "flag", "sign", "pin", "triangleUp", "triangleDown", "triangleLeft", "triangleRight", "text", "arrowUp", "arrowDown".
urlString A URL to go to when user clicks the event.
urlTargetString target of url, "_blank" for example.


StockEvent class does not have any methods.


StockEvent class does not have any events.