tradingview / lightweight-charts

Performant financial charts built with HTML5 canvas
https://www.tradingview.com/lightweight-charts/
Apache License 2.0
9.66k stars 1.65k forks source link

Title doens't show up when creating priceline #569

Closed tghilardi closed 4 years ago

tghilardi commented 4 years ago

Tried with ver 3.0.1 and the latest release.

Chart price lines show up, but the title attribute is not showing up.

image


candleSeries.createPriceLine(
--
  | {
  | price: 6.58,
  | color: 'red',
  | lineWidth: 2,
  | lineStyle: LightweightCharts.LineStyle.Dotted,
  | axisLabelVisible: true,
  | title: 'SL: 6.58',
  | }        );
  |  
  | candleSeries.createPriceLine(
  | {
  | price: 6.34,
  | color: 'green',
  | lineWidth: 2,
  | lineStyle: LightweightCharts.LineStyle.Dotted,
  | axisLabelVisible: true,
  | title: 'TP: 6.34',
  | }        );
timocov commented 4 years ago

357 is assigned to 3.2 version, which isn't released yet.