trash-and-fire / svelte-lightweight-charts

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

fill between two prices #44

Closed MuslemRahimi closed 1 year ago

MuslemRahimi commented 1 year ago

Is it possible to fill the area between two prices. Here is an example of what i am looking for.

grafik

I would appreciate it alot if you can help me out on this

trash-and-fire commented 1 year ago

As far as I know this is not possible with the basic version of the lightweight-charts package.

MuslemRahimi commented 1 year ago

is there no way to overcome this... Maybe playing around with AreaSeries

trash-and-fire commented 1 year ago

I don't think so. AreaSeries accept SingleValueData which contains only one value. As I see in your picture, you need to provide at least two values for each time point and fill in the space between them.

https://github.com/tradingview/lightweight-charts/issues/140