project-nv / night-vision

Highly customizable charting library, created for professional traders
https://nightvision.dev
MIT License
250 stars 58 forks source link

sidebar problem with RTL Direction #29

Closed majid1605 closed 1 year ago

majid1605 commented 1 year ago

Describe the bug

Hi Does the sidebar have any settings for margins or padding? My chart doesn't display the sidebar very well. where is the problem from? Screenshot_20221211_225401 This problem can be solved by adding LTR style. But it seems that other settings are needed for the sidebar. Can we have the sidebar on both sides of the chart? Or create a custom sidebar ourselves?

Reproduction

https://stackblitz.com/edit/vitejs-night-vision-vp26bw?terminal=dev

Steps to reproduce

No response

Javascript Framework

vue

Logs

No response

Validations

C451 commented 1 year ago

Hello, yeah, that's weird. For now you'll have to wrap it into <span style="direction: ltr"> code. Somehow it affects only the canvas text.

About the sidebar on both sides, you've checked read the docs, haven't you? ; )

majid1605 commented 1 year ago

About the sidebar on both sides, you've checked read the docs, haven't you? ; ) Hello

I could not find anything about this.

I just got acquainted with this project. I'm glad that it has worked great for trading charts as an open source project. But the documentation is very weak, especially for beginners. For example, this part: Screenshot_20221212_183946

It is not specified that we should use 1 and -1 for the direction. I found this topic in the repository documentation. Almost for me, the document is largely incomprehensible and dumb. The use of many features should be explained with examples. I would be happy if you let me at least help you in completing the document wherever I understand this project. If you open the issues to ask questions about the project and allow asking questions, it will help many people.

C451 commented 1 year ago
Almost for me, the document is largely incomprehensible and dumb.

Little advice, If you want to get help from OS software developers, you shouldn't use this kind of language.

Yes, the docs are not perfect, but hey, it's called charts for PROs for a reason ; )