message: Add a method to format price on price scale
diff: @@ -49,7 +49,7 @@ export class CustomPriceLinePriceAxisView extends PriceAxisView {
  paneRendererData.borderColor = series.model().backgroundColorAtYPercentFromTop(y / series.priceScale().height());
  - axisRendererData.text = series.priceScale().formatPriceAbsolute(options.price);
  + axisRendererData.text = this._formatPrice(options.price);
  axisRendererData.visible = true;
  const colors = generateContrastColors(options.color);
  @@ -57,4 +57,13 @@ export class CustomPriceLinePriceAxisView extends PriceAxisView {
  commonData.color = colors.foreground;
  commonData.coordinate = y;
  }
  +
  + private _formatPrice(price: number): string {
  + const firstValue = this._series.firstValue();
  + if (firstValue === null) {
  + return '';
  + }
  +
  + return this._series.priceScale().formatPrice(price, firstValue.value);
  + }
  }
  