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.
Property | Type | Default | Description |
---|---|---|---|
backgroundAlpha | Number | 1 | Opacity of bullet background. |
backgroundColor | Color | #DADADA | Color of bullet background. |
borderAlpha | Number | 1 | Opacity of bullet border. |
borderColor | Color | #888888 | Bullet border color. |
color | Color | #000000 | The color of the event text. |
date | Date | Date of an event. Can be a string of date (using chart.dataDateFormat format) or Date object. | |
description | String | A description that will be shown in a balloon when user rolls over mouse cursor over event icon. | |
fontSize | Number | Specifies font size of a event bullet. Will use graph's or chart font size if not set. | |
graph | StockGraph | graph on which event will be displayed. You can use a reference to the stock graph object or id of the graph. | |
rollOverColor | String | #CC0000 | Roll-over background color. |
showAt | String | Allows placing event bullets at open/close/low/high values. | |
showBullet | Boolean | false | If you set it to true, the data point will display both event and regular (if set) bullet. |
showOnAxis | Boolean | false | Specifies if the event should be displayed on category axis |
text | String | Letter which will be displayed on the event. Not all types can display letters. "text" type can display longer texts. | |
type | String | sign | Type of bullet. Possible values are: "flag", "sign", "pin", "triangleUp", "triangleDown", "triangleLeft", "triangleRight", "text", "arrowUp", "arrowDown". |
url | String | A URL to go to when user clicks the event. | |
urlTarget | String | target of url, "_blank" for example. | |
value | Number | Allows placing event bullets at specified value. |