public getLabel(): string {
if (this.config.label) {
return this.config.label;
}
if (this.indicatorType) {
return indicatorLabelById[this.indicatorType];
}
return this.id;
}
public getSeriesLabel(serieName: string): string | undefined {
if (this.config.seriesLabels?.[serieName]) {
return this.config.seriesLabels[serieName];
}
if (this.indicatorType) {
return indicatorSeriesLabelById[this.indicatorType]?.[serieName];
}
return undefined;
}