-
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
Width problem and persian prices #1380
Comments
Could you please share some screenshots / videos, or a code example for the issue you are experiencing with the widths? The price format for a series can be specified using the Here is an explaination of that option: Setting a Additionally, a custom price formatter can be specified within the chart options: |
Thanks for sharing the code and screenshots. I'll have a look at reproducing this later this afternoon (without the React and dynamic With respect to the React code, it is recommended that the chart is only created once ( Additionally, the |
Thank you Mark for your response. I will consider your suggestions in my code. Actually I have copied this code from lightweight chart documentation. So in documentation example, |
Apologies, we will update the example in the documentation so it is a bit more performant. |
I'm unable to replicate the issue on a basic page. Test case with price scale on the left: FYI: an upcoming fix will change the behaviour of the chart when |
I would suggest that instead of having a resize handler and setting the width using https://tradingview.github.io/lightweight-charts/docs/api/interfaces/ChartOptions#autosize |
Lightweight Charts™ Version: 4.0.1
Steps/code to reproduce:
Issue 1:
When price gets higher leftPriceScale or rightPriceScale width get wider. but at the same time the main chart region width doesn't follow and can't accommodate itself accordingly. so I noticed that the overall width of chart gets bigger than its parent container.
even if leftPriceScale or rightPriceScale had an id I could handle it somehow myself.
Issue 2:
PriceFormat type "price" is what I need but by default it adds decimal points. there is no way for "price" type to not add decimal point
for currency types other than dollar. Please add an option for price type to omit decimal points.
Thanks in advance.
The text was updated successfully, but these errors were encountered: