Skip to main content

NewsComponent

NewsComponent API

NewsComponent.doActivate
NewsComponent.doActivate(): void

This method is used to activate a protected feature. It does not take any arguments and does not return anything.

Returns
void
NewsComponent.getNewsCoordinate
NewsComponent.getNewsCoordinate(news: NewsPerCandle): Point

Parameters
news: NewsPerCandle
Returns
Point
NewsComponent.onHover
NewsComponent.onHover(news: NewsPerCandle): void

Parameters
news: NewsPerCandle
Returns
void
NewsComponent.onTouchStart
NewsComponent.onTouchStart(news: NewsPerCandle): void

Parameters
news: NewsPerCandle
Returns
void
NewsComponent.getIdRange
NewsComponent.getIdRange(): [number, number]

Returns
[number, number]
NewsComponent.lookup
NewsComponent.lookup(id: number): NewsPerCandle

Parameters
id: number
Returns
NewsPerCandle
NewsComponent.setNews
NewsComponent.setNews(news: News[]): void

Sets news to the chart

Parameters
news: News[]
Returns
void
NewsComponent.setVisible
NewsComponent.setVisible(visible: boolean): void

Changes the component visibility.

Parameters
visible: boolean
Returns
void
NewsComponent.getNewsPerCandle
NewsComponent.getNewsPerCandle(): NewsPerCandle[]

Returns
NewsPerCandle[]
;