diff --git a/src/chart/inputhandlers/hover-producer.component.ts b/src/chart/inputhandlers/hover-producer.component.ts index 835c213f..f5cedcac 100644 --- a/src/chart/inputhandlers/hover-producer.component.ts +++ b/src/chart/inputhandlers/hover-producer.component.ts @@ -35,7 +35,7 @@ export interface HoverParts { export interface Hover extends BaseHover, HoverParts {} export interface HoverProducerPart { - getData(hover: BaseHover): T; + getData(hover: BaseHover): T | undefined; } export interface HoverProducerParts { diff --git a/src/chart/model/compare-series-hover.ts b/src/chart/model/compare-series-hover.ts index babd3881..e8042bf3 100644 --- a/src/chart/model/compare-series-hover.ts +++ b/src/chart/model/compare-series-hover.ts @@ -5,6 +5,7 @@ */ import { ChartModel } from '../components/chart/chart.model'; import { BaseHover, HoverProducerPart } from '../inputhandlers/hover-producer.component'; +import { MainCandleSeriesModel } from './main-candle-series.model'; export interface CompareSeriesHover { instrument: string; @@ -21,7 +22,14 @@ export class CompareSeriesHoverProducerPart implements HoverProducerPart