trash-and-fire / svelte-lightweight-charts

Svelte wrapper for financial lightweight charts
MIT License
106 stars 13 forks source link

Vertical Price Line #69

Closed MuslemRahimi closed 11 months ago

MuslemRahimi commented 1 year ago

Is there a way to plot a vertical PriceLine similar to

<PriceLine
      price={filteredData.threeYearsAgo[0].value}
      lineWidth = {1.5}
      color="#d4d9d9"
    />

for a specific date let say "2023-02-02"?

trash-and-fire commented 1 year ago

Short answer is NO. Unfortunately it is not supported by LWC. Long answer you can find here https://github.com/tradingview/lightweight-charts/issues?q=is%3Aissue+vertical+line+is%3Aclosed .

MuslemRahimi commented 11 months ago

With the newest version of lightweight-charts 4.10 it is possible to add a vertical line: https://tradingview.github.io/lightweight-charts/plugin-examples/plugins/vertical-line/example/

Can you add the feature to your library please

trash-and-fire commented 11 months ago

https://github.com/trash-and-fire/svelte-lightweight-charts/issues/82#issuecomment-1763361593 Vertical Lines.