-
Notifications
You must be signed in to change notification settings - Fork 85
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
Different height of charts in grid #194
Comments
You haven't shown any code? @pshemass |
You are right :) Here is the code
|
The extra space is being allocated to display titles or legends or something like that. You could see this be setting titles on the charts. But I don't think you want to use grid to combine related charts vertically. It gives no guarantees that the elements of the charts (eg the vertical axes) will be lined up. For this you should use https://github.com/timbod7/haskell-chart/blob/master/chart-tests/tests/Tests.hs#L223 |
@timbod7 yeah I figured that the space is for title and legend. I tried to use StackedLayout but I don't see any option to change proportion between charts. I would like to make upper chart twice as height as lower one. Do you have any idea how to do that? |
hi @timbod7 any update on that? if this functionality is missing I could add that if you guide me a little bit. |
One thing you could try to eliminate the gaps would be to expose |
sorry for slow response. I made the change you mentioned and then code below produce what I want:
but I would like to somehow avoid using this magic number (300) and make this just 2 * (height bottom) but when I try to use is there other way to make that works? |
I'm trying to build stock chart with price and volume. I'm able to create both charts and put them in the grid however I have a problem with set proportion between them 2:1.
i tried to use weights but I cannot get rid of space between charts. Could you please help me with that?
The text was updated successfully, but these errors were encountered: