-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto fitting to the height of pane1 histograms #1709
Comments
If i set priceScaleId: 'rightVolume', , I am not able to scale by dragging its pricescale.. also when i hover the volume its not displaying price label on right side. |
As I understand it, if you want to have full control over the volume, the best approach is to build a plugin, or you can use a secondary overlay canvas or a second price scale at the left |
sorry , I am not a professional to build plugin..Also i want both price and volume scale on the right, thats why using the pane. so can you tell me about secondary overlay canvas ? |
as i am a fan of pure js i created a plugin for lightweight chart. you can see the concept and use it : |
wow , thanks i was thinking to create volume profile for my project , but did u extend version 4 or 5 ..i need multi pane support. |
your welcome. i am expanding that plugin frequently. it's based on v 4.2.0 |
ok , then I want to build plugin for my v5 , can you guide me with any basic tutorials ? there is no documentation in TV how to create a plugin from scratch. I am coding vanilla js for past 8 years.. since there was no use for constructor , canvas I did not learn , but I am willing to learn now .. can you tell me what should I learn ? because I am new to constructor , canvas etc .. is there a skeleton or template that i must follow to create plugin from scratch and how it works. |
As i know the last version for lightweight charts is 4.2 |
ok there is another branch named 5 , you can use that to checkout multi pane feature - https://github.com/tradingview/lightweight-charts/tree/v5-candidate btw please tell me what should I learn , or any tutorials from scratch to create one simple plugin |
Official Library suggest to do that : |
Ok I am reading your code now. along with chatgpt help
…On Wed, 16 Oct, 2024, 4:17 pm Hassan Safari, ***@***.***> wrote:
ok there is another branch named 5 , you can use that to checkout multi
pane feature -
https://github.com/tradingview/lightweight-charts/tree/v5-candidate
btw please tell me what should I learn , or any tutorials from scratch to
create one simple plugin
Official Library suggest to do that :
https://github.com/tradingview/lightweight-charts/tree/master/packages/create-lwc-plugin
which i am working with pure js and its not fitting my requirements and im
using overlay canvas which i described in my Lightwight charts plugin. its
very simple when you read you will learn!. the main approach of mine is to
use another canvas over the lwc canvas and do every thing you want
—
Reply to this email directly, view it on GitHub
<#1709 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ5HCSFGTVALQBKU4NOK3TZ3Y75TAVCNFSM6AAAAABP4OUWBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJWGQ2DCNJUGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hey @safaritrader I saw plugin use fancy-canvas etc , how did u overcome all those things using vanilla js. |
Hi Dear @vishnuc |
hi , but I compiled and run your example.. its not fluid when i scale price axis .. native plugins are way smoother...also when time axis is scaled I think you redraw after certain interval. |
its depend on your data scale. for now its loop through all data but im replacing a simple algorithm to not loop through all data in next version and its depend on your browser also it take 5 sec to build a volume profile from 3m data (tested in firefox). other plugins are using lightweight chart built-in feature's which is great but not fit my requirements |
hi , i succeeded creating primitive with pure js , its smooth . now working on series , will update you.
|
ok series too works fine with pure js , why dont u use like this in ur plugin,.. so even when u scale it will look good.
|
that using for loop for redraw too which cant make a different for my current plugin. its executing redraw on resize and changing scales too it just using less code to attach custom shapes or series which is good |
No yours is not giving native feel , I am checking in my macbook retina..Its easy I think u can create lots of plugin with native way with vanilla js. also if i scale my pricescale up and down urs is hiding the volume profile etc |
hi , I am testing out v5-candidate with multpane , I added volume series to new pane via
now if i want to scale this volumeseries , it is also scaling the pane 0 price series.
Its expected to fit / scale only pane 1 as the series is in pane1
The text was updated successfully, but these errors were encountered: