Closed kamranshalilian closed 1 year ago
To draw a price line with Lightweight Charts you should use the createPriceLine
method which is part of the ISeriesAPI.
It appears that you are trying to use createOrderLine()
which is part of the API for Charting Library. Please note that Charting Library is a different library to Lightweight Charts.
Can you help me more with an example because I used this method but it says it doesn't exist @SlicedSilver
Sure, here is an example: https://tradingview.github.io/lightweight-charts/tutorials/how_to/price-line
@SlicedSilver is there a way to include a color filler overlay in-between two price line ?
Sample Image:
Not directly with the library, but you could use a Plugin which draws rectangles to add this to your chart.
The create-lwc-plugin wizard will create a rectangle plugin as it's scaffold example (for a drawing primitive) so I would suggest using that as a starting point.
I need draw line, text, shape and... in chart with javascript code but I can't find anyway for this I find all setting in for chenge backcolor in website (https://www.tradingview.com) but I can't find draw shape in chart
this image is example
this my code
and another code