Загрузка данных


const formattedValue =
  source.role === 'volume'
    ? formatCompactNumber(price)
    : this.formatValue(source.series, price);

const symbolTicker =
  source.role === 'compare'
    ? source.series.options().title?.trim()
    : '';

return {
  id: source.id,
  desiredCoordinate: coordinate,
  text: symbolTicker
    ? `${symbolTicker} ${formattedValue}`
    : formattedValue,
  color: getSeriesColor(source.series, data),
  style: this.isHistoryMode
    ? 'outlined'
    : 'filled',
  priority: source.priority,
};