-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add the ability to drag custom price line and change its price #1086
Comments
That's amazing how I can help? |
Maybe push the maintainers to approve this feature? |
@randalhsu hi and tnx for ur work tnx and sorry for the stupid question I have asked, Im new to this part of github and tweeking library files |
@shaunbeh
You need to use this file: |
Thanks for your work, was thinking to implement this, but you already did it. thanks. |
Thanks so much I appreciate a lot. |
Is there an existing pull request with this change? I couldn't find any. If not, I'd be happy to put one together since I need this change as well |
Code is here huskly/lightweight-charts@master...felipecsl:lightweight-charts:feat--drag-price-line |
@felipecsl There's no pull request yet. Thanks for helping, hope it gets merged soon. |
@felipecsl #1214 is now merged :) |
I just tried the latest version (4.0.7) of your fork but chart.subscribeCustomPriceLineDragged seems to be missing. Am I looking at the right version? |
@kevinkga yeah that's not the right version. You'll have to grab an older version to pick up that change, but those will be a bit outdated. I can probably sync it with the latest and publish a new version with it |
@SlicedSilver can you please consider this in one of the future releases? This would be great for order placement mechanisms. |
thank you for this amazing feature. I confirm that version 4.0.4 is working fine. 4.0.5 and 4.0.6 are not |
…al lines and it seemed to fail some graphical tests pertaining to gradients and or transparency. I dont know why. Someone is already working on implementing it to V4 here tradingview/lightweight-charts#1086 So i am deferring to that.
Thank you for your feature request for Lightweight Charts. In order to keep the library lightweight and maintain a narrow focus, we strive to include only strictly required features in the core library. As a result, we have decided that this requested feature should be implemented as a plugin instead, and will be closing this issue as a result. We recently introduced the ability to write plugins for Lightweight Charts, allowing users like you to extend the functionality of the library without adding it to the core. We highly recommend implementing your feature request as a plugin to achieve the desired functionality while keeping the core bundle size smaller for all users. To get started with plugins, please refer to our Plugins Documentation for a better understanding of what is possible and how plugins work. You can also explore our collection of plugin examples (with a preview hosted here) for inspiration and guidance on implementing specific functionality. For your particular feature request, we suggest taking a look at the following examples (see above links):
To help you get started quickly, we have created an NPM package called create-lwc-plugin, which sets up a plugin project for you. This way, you can hit the ground running with your plugin development. If you do create a plugin based on your feature request, we would appreciate it if you could publish it on GitHub or NPM and let us know. This way, we can share it with the rest of the community. It would be helpful if you could prefix your NPM package name with Thank you for your understanding and support. We believe implementing your feature request as a plugin will greatly benefit both you and the Lightweight Charts community. |
Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
Able to drag custom price line.
Demo (The orders can be dragged in the price scale.)
I already have a patch implementing this.
Might take some efforts to rebase and write test case etc. if this feature request is approved.
Additional context
Proposal:
draggable
to createPriceLine().The text was updated successfully, but these errors were encountered: