Skip to content
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

Candles and Vol overlape #1

Closed
shujaatak opened this issue Mar 16, 2025 · 2 comments
Closed

Candles and Vol overlape #1

shujaatak opened this issue Mar 16, 2025 · 2 comments

Comments

@shujaatak
Copy link

shujaatak commented Mar 16, 2025

Having both volume and candlesticks in the same place on the K-chart is nice, but I think it would look better and be less obstructive if the volume were drawn behind the candlesticks.

Additionally, it would be great to have an option to display the volume in a separate panel to reduce clutter.

Image

@cjjapan
Copy link
Owner

cjjapan commented Mar 16, 2025

@shujaatak
You can put volume in a separate "GPanel" see Panels demo for sample implementation.
or you can config the candlestick graph's viewport marginStart like this

          GValueViewPort(
            id: "price",
            valuePrecision: 2,
            autoScaleStrategy: GValueViewPortAutoScaleStrategyMinMax(
              dataKeys: [
                keyHigh,
                keyLow,
                keySMA,
                keyIchimokuSpanA,
                keyIchimokuSpanB,
              ],
              marginStart: GSize.viewHeightRatio(0.3), // while bar chart has marginEnd: GSize.viewHeightRatio(0.7) 
            ),
          ),
Image

I need to add more documentation regarding the available options.

@shujaatak
Copy link
Author

I need to add more documentation regarding the available options.

@cjjapan That would be awesome! 🚀

@cjjapan cjjapan closed this as completed Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants